On Tue, Nov 4, 2008 at 7:24 PM, Hernan Freschi <[EMAIL PROTECTED]> wrote:
> Hi, I'm not sure if this is the right place to ask. I'm having a little 
> trouble deleting old solaris installs:
>
> [EMAIL PROTECTED]:~]# lustatus
> Boot Environment           Is       Active Active    Can    Copy
> Name                       Complete Now    On Reboot Delete Status
> -------------------------- -------- ------ --------- ------ ----------
> b90                        yes      no     no        yes    -
> snv95                      yes      no     no        yes    -
> snv101                     yes      yes    yes       no     -
> [EMAIL PROTECTED]:~]# lu
> lu          lucancel    lucreate    ludelete    lufslist    lumount     
> lustatus    luupgrade
> luactivate  lucompare   lucurr      ludesc      lumake      lurename    
> luumount    luxadm
> [EMAIL PROTECTED]:~]# lustatus
> Boot Environment           Is       Active Active    Can    Copy
> Name                       Complete Now    On Reboot Delete Status
> -------------------------- -------- ------ --------- ------ ----------
> b90                        yes      no     no        yes    -
> snv95                      yes      no     no        yes    -
> snv101                     yes      yes    yes       no     -
> [EMAIL PROTECTED]:~]# ludelete b90
> System has findroot enabled GRUB
> Checking if last BE on any disk...
> ERROR: lulib_umount: failed to umount BE: <snv95>.
> ERROR: This boot environment <b90> is the last BE on the above disk.
> ERROR: Deleting this BE may make it impossible to boot from this disk.
> ERROR: However you may still boot solaris if you have BE(s) on other disks.
> ERROR: You *may* have to change boot-device order in the BIOS to accomplish 
> this.
> ERROR: If you still want to delete this BE <b90>, please use the force option 
> (-f).
> Unable to delete boot environment.
> [EMAIL PROTECTED]:~]# ludelete snv95
> System has findroot enabled GRUB
> Checking if last BE on any disk...
> ERROR: lulib_umount: failed to umount BE: <snv95>.
> ERROR: This boot environment <snv95> is the last BE on the above disk.
> ERROR: Deleting this BE may make it impossible to boot from this disk.
> ERROR: However you may still boot solaris if you have BE(s) on other disks.
> ERROR: You *may* have to change boot-device order in the BIOS to accomplish 
> this.
> ERROR: If you still want to delete this BE <snv95>, please use the force 
> option (-f).
> Unable to delete boot environment.
>
> if anyone could help me I'd appreciate it.
>

Herman,

look at your /etc/lu/ICF.* files. Find the one for the snv95 boot env.
(You'll easily identify it by looking into the file)
You'll see the list of the filesystems to be mounted with that boot
environment. Make sure that this list is in correct order. I.e. the
parent directory is listed _before_ its children. Reorder if needed
and retry the ludelete.

Example:

incorrect order:

snv_98:/export/home/imp:rpool/export/home/imp:zfs:0
snv_98:/export/home/impux:rpool/export/home/impux:zfs:0
snv_98:/export/home:rpool/export/home:zfs:0

correct order:

snv_98:/export/home:rpool/export/home:zfs:0
snv_98:/export/home/imp:rpool/export/home/imp:zfs:0
snv_98:/export/home/impux:rpool/export/home/impux:zfs:0

Hope it helps.

-- 
Regards,
        Cyril
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to