There's potentially a bug or RFE looming here to make this work a little
better.  Leaving a BE mounted and then rebooting to it seems like an
error thats prone to happen.

Something we can look at in libbe is to try to detect this case as
best we can when cloning a BE the already has faulty mountpoints so
that we don't perpetuate faulty mountpoints (e.g. like what happened
here where one /opt had a mountpoint of /mnt1/mnt/mnt/opt)

I'll muddle through this scenario some to see where we can improve.
Thanks for bearing with it.


-ethan


Evan Layton wrote:
> It appears that all of your BE's at one time or another have been manually 
> mounted but never unmounted using "beadm unmount <be_name>". Once you've 
> mounted 
> you must unmount before rebooting or you'll run into errors such as this.
> 
> Doing the "beadm unmount" should clean up the leftover mount points and 
> correct 
> the problem. However now that you've been running for awhile with your /opt 
> dataset not mounted you more than likely have data in /opt under your root 
> dataset that you'll have to clean out/move before the /opt dataset (such as 
> rpool/ROOT/opensolaris-1/opt) can be mounted correctly.
> 
> For example these steps may help get you past this problem:
> # beadm unmount opensolaris-b95
> # beadm destroy opensolaris-b95
> # zfs mount rpool/ROOT/opensolaris-2/opt (if it's not already mounted)
> # cp -R /opt/* /mnt/mnt/opt
> # rm -rf /opt/*
> # beadm unmount opensolaris-1 (to clean up it's mount points)
> # beadm activate opensolaris (this appears to be the only BE with correct 
> mount 
> points)
> 
> reboot into opensolaris
> 
> # beadm unmount opensolaris-2
> # beadm activate opensolaris-2
> 
> reboot into opensolaris-2
> At this point /opt should be mounted correctly. If there is an error booting 
> back up it probably means that the /opt mount point wasn't completely cleaned 
> up.
> 
> "zfs list" should look more like the following for opensolaris-2:
> rpool/ROOT/opensolaris-2                      8.63G   203G  5.99G  legacy
> rpool/ROOT/opensolaris-2/opt                  3.63M   203G  3.60M  /opt
> 
> # pkg refresh
> # pkg image-update
> 
> Let me know if this doesn't work for you.
> 
> Thanks!
> -evan
> 
> Seymour Krebs wrote:
>> does not appear to be 'legacy'
>>
>> ~# more /etc/vfstab
>> #device              device          mount           FS      fsck    mount   
>> mount
>> #to mount    to fsck         point           type    pass    at boot options
>> #
>> /devices     -       /devices        devfs   -       no      -
>> /proc        -       /proc   proc    -       no      -
>> ctfs -       /system/contract        ctfs    -       no      -
>> objfs        -       /system/object  objfs   -       no      -
>> sharefs      -       /etc/dfs/sharetab       sharefs -       no      -
>> fd   -       /dev/fd fd      -       no      -
>> swap -       /tmp    tmpfs   -       yes     -
>> rpool/ROOT/opensolaris-2     -       /       zfs     -       no      -
>> /dev/dsk/c6d0s1      -       -       swap    -       no      -
>>
>>
>>
>>  zfs list
>> NAME                                           USED  AVAIL  REFER  MOUNTPOINT
>> rpool                                         23.0G   203G    61K  /rpool
>> [EMAIL PROTECTED]                                   20K      -  55.5K  -
>> rpool/ROOT                                    8.82G   203G    18K  
>> /rpool/ROOT
>> rpool/[EMAIL PROTECTED]                              15K      -    18K  -
>> rpool/ROOT/opensolaris                        4.88M   203G  3.26G  legacy
>> rpool/ROOT/opensolaris-1                       102M   203G  4.90G  /mnt
>> rpool/ROOT/opensolaris-1/opt                      0   203G  3.60M  /mnt/opt
>> rpool/ROOT/opensolaris-2                      8.63G   203G  5.99G  /mnt
>> rpool/ROOT/[EMAIL PROTECTED]               448M      -  2.22G  -
>> rpool/ROOT/[EMAIL PROTECTED]        73.2M      -  3.26G  -
>> rpool/ROOT/[EMAIL PROTECTED]         839M      -  4.84G  -
>> rpool/ROOT/[EMAIL PROTECTED]      4.53M      -  5.99G  -
>> rpool/ROOT/opensolaris-2/opt                  3.63M   203G  3.60M  
>> /mnt/mnt/opt
>> rpool/ROOT/opensolaris-2/[EMAIL PROTECTED]            24K      -  3.60M  -
>> rpool/ROOT/opensolaris-2/[EMAIL PROTECTED]        0      -  3.60M  -
>> rpool/ROOT/opensolaris-2/[EMAIL PROTECTED]        0      -  3.60M  -
>> rpool/ROOT/opensolaris-2/[EMAIL PROTECTED]      0      -  3.60M  -
>> rpool/ROOT/opensolaris-b95                    83.2M   203G  6.05G  /mnt1
>> rpool/ROOT/opensolaris-b95/opt                    0   203G  3.60M  
>> /mnt1/mnt/mnt/opt
>> rpool/ROOT/opensolaris/opt                      24K   203G  3.60M  /opt
>> rpool/export                                  14.2G   203G    19K  /export
>> rpool/[EMAIL PROTECTED]                            15K      -    19K  -
>> rpool/export/home                             14.2G   203G  14.2G  
>> /export/home
>> rpool/export/[EMAIL PROTECTED]                       18K      -    21K  -
>> --
>>
>> This message posted from opensolaris.org
>>
>> _______________________________________________
>> indiana-discuss mailing list
>> [email protected]
>> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
> 
> _______________________________________________
> indiana-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to