Friday, February 5, 2010

ludelete problem in Live Upgrade

I needed to delete a live upgrade environment to get ready to make a new one for 10u8.
Running the ludelete command gave me this error:
>>ludelete 10u6_disk2
System has findroot enabled GRUB
Checking if last BE on any disk...

ERROR: Last BE on disk
ERROR: This boot environment <10u6_disk2> 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 <10u6_disk2>, please use the force option (-f).
Unable to delete boot environment.

So I tried it with the -f option after I checked to make sure that /dev/dsk/c3t0d0 was in fact the correct disk ( booting off /dev/dsk/c3t4d0 ).

The next problem I ran in to was that it couldn't mount some zfs filesystems that it thought should be there but didn't exist anymore.

>>ludelete -f 10u6_disk2
System has findroot enabled GRUB
No entry for BE <10u6_disk2> in GRUB menu
ERROR: mount: /storage/pool0/blah: No such file or directory
ERROR: cannot mount mount point device
ERROR: failed to mount file system on
ERROR: unmounting partially mounted boot environment file systems
ERROR: cannot mount boot environment by icf file
ERROR: Cannot mount BE <10u6_disk2>.
Unable to delete boot environment.

I manually edited /etc/lu/ICF.1 and cleared out all of the zfs mounts and re-ran ludelete which returned even though it was still upset about a few mounts.

>>ludelete -f 10u6_disk2
System has findroot enabled GRUB
No entry for BE <10u6_disk2> in GRUB menu
Determining the devices to be marked free.
ERROR: cannot open 'pool0/blah2/sendsrc': dataset does not exist
ERROR: cannot mount mount point device
ERROR: failed to mount file system on
ERROR: unmounting partially mounted boot environment file systems
ERROR: cannot mount boot environment by icf file
WARNING: Unable to mount ABE <10u6_disk2>: cannot complete lumk_iconf
WARNING: Unable to determine disk partition configuration information for BE <10u6_disk2>.
WARNING: Unable to determine the devices/datasets to be freed for BE <10u6_disk2>.
Updating boot environment configuration database.
Updating boot environment description database on all BEs.
Updating all boot environment configuration databases.
Boot environment <10u6_disk2> deleted.

And to check the status and make sure it is gone:

>>lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
10u6 yes yes yes no -









No comments:

Post a Comment