Re: [zfs-discuss] unable to ludelete BE with ufs
On Thu 13/11/08 07:57 , Mark Horstman [EMAIL PROTECTED] sent: I beg to differ. With what? Some context would help. # ludelete beA ERROR: cannot open 'pool00/zones/global/home': dataset does not exist ERROR: cannot mount mount point /.alt.tmp.b-QY.mnt/home device pool00/zones/global/homeERROR: failed to mount file system pool00/zones/global/home on /.alt.tmp.b-QY.mnt/homeERROR: unmounting partially mounted boot environment file systems ERROR: cannot mount boot environment by icf file /etc/lu/ICF.1 ERROR: Cannot mount BE beA. Unable to delete boot environment. and reboot to the zfs boot/root. Voila! But now I cannot delete beA. Anybody have any ideas on how I might ludelete beA?-- Was beA your first ZFS BE? I have what looks like the same issue with my initial ZFS BE created to migrate from UFS. Do you see all or part of the BE still mounted? I see: zfs list | grep ROOT rpool/ROOT 11.8G 405G18K /rpool/ROOT rpool/ROOT/10u6ZFS62.2M 405G 4.61G /.alt.10u6ZFS rpool/ROOT/10u6ZFS/zoneRoot 17K 405G18K /.alt.10u6ZFS/zoneRoot rpool/ROOT/10u6ZFSa 11.7G 405G 9.53G / So it looks like the original BE is still partly mounted, so ludelete can't remount it. You could try unmounting the old filesystems before running ludelete. My system is now live, so I can't take the risk! Ian ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
I beg to differ. # cat /etc/release Solaris 10 10/08 s10s_u6wos_07b SPARC Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 27 October 2008 # lustatus Boot Environment Is Active ActiveCanCopy Name Complete NowOn Reboot Delete Status -- -- - -- -- beAyes no noyes- [i]old ufs boot[/i] beByes no noyes- [i]old ufs boot[/i] beCyes yesyes no - [i]new zfs root[/i] # ludelete beA ERROR: cannot open 'pool00/zones/global/home': dataset does not exist ERROR: cannot mount mount point /.alt.tmp.b-QY.mnt/home device pool00/zones/global/home ERROR: failed to mount file system pool00/zones/global/home on /.alt.tmp.b-QY.mnt/home ERROR: unmounting partially mounted boot environment file systems ERROR: cannot mount boot environment by icf file /etc/lu/ICF.1 ERROR: Cannot mount BE beA. Unable to delete boot environment. # ludelete beB Determining the devices to be marked free. Updating boot environment configuration database. Updating compare databases on boot environment beA. INFORMATION: Skipping update of boot environment beA: not configured properly. Updating boot environment description database on all BEs. Updating all boot environment configuration databases. Boot environment beB deleted. # ludelete beA ERROR: cannot open 'pool00/zones/global/home': dataset does not exist ERROR: cannot mount mount point /.alt.tmp.b-QY.mnt/home device pool00/zones/global/home ERROR: failed to mount file system pool00/zones/global/home on /.alt.tmp.b-QY.mnt/home ERROR: unmounting partially mounted boot environment file systems ERROR: cannot mount boot environment by icf file /etc/lu/ICF.1 ERROR: Cannot mount BE beA. Unable to delete boot environment. On this dev/test lab machine I've been bouncing between two UFS BEs (beA beB) located in different slices on c1t0d0. My other three disks were in one zpool (pool00). Big Mistake... For ZFS boot I need space for a seperate zfs root pool. So whilst booted under beB I backup my pool00 data, destroy pool00, re-create pool00 (a little differently, thus the error it would seem) but hold out one of the drives and use it to create a rpool00 root pool. Then I # lucreate -n beC -p rpool01 # luactivate beC # init 6 and reboot to the zfs boot/root. Voila! But now I cannot delete beA. Anybody have any ideas on how I might ludelete beA? -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
[EMAIL PROTECTED] said: # ludelete beA ERROR: cannot open 'pool00/zones/global/home': dataset does not exist ERROR: cannot mount mount point /.alt.tmp.b-QY.mnt/home device pool00/zones/global/home ERROR: failed to mount file system pool00/zones/global/home on /.alt.tmp.b-QY.mnt/home ERROR: unmounting partially mounted boot environment file systems ERROR: cannot mount boot environment by icf file /etc/lu/ICF.1 ERROR: Cannot mount BE beA. Unable to delete boot environment. . . . Big Mistake... For ZFS boot I need space for a seperate zfs root pool. So whilst booted under beB I backup my pool00 data, destroy pool00, re-create pool00 (a little differently, thus the error it would seem) but hold out one of the drives and use it to create a rpool00 root pool. Then I . . . I made this same mistake. If you grep pool00 /etc/lu/ICF.1 you'll see filesystems beA expects to be mounted in beA; Some of those it may expect to be able to share between the current BE and beA. The way to fix things is to create a temporary pool pool00; This need not be on an actual disk, it could be hosted in a file or a slice, etc. Then create those datasets in the temporary pool, and try the ludelete beA again. Note that if the problem datasets are supposed to be shared between current BE and beA, you'll need them mounted on the original paths in the current BE, because ludelete will use loopback mounts to attach them into beA during the deletion process. I guess the moral of the story is that you should ludelete any old BE's before you alter the filesystems/datasets that it mounts. Regards, Marion ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
Ya. That's what I ended up doing. Re-creating my UFS soft-partition boot meta devices and all the zfs filesystems (even though they were all empty). Then I was able to ludelete beA. There ought to be an option to '-f' or '--force' the ludelete so you can ignore the errors and just delete the darn thing. What I don't understand is... I had another old UFS BE, beB, that was identical to beA, except it's boot/root was another, identically sized (and identically metaclear'd) UFS soft-partition, and I was able to ludelete that one (see above). Very odd. Something was messed up. Thanks for the quick responses, eh? Mark -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
I had exactly the same problem and have not been able to find a resolution yet. Marcin Woźniak wrote: After successful upgrade from snv_95 to snv_98 ( ufs boot - zfs boot). After luactive new BE with zfs. I am not able to ludelete old BE with ufs. problem is, I think that zfs boot is /rpool/boot/grub. ludelete snv_b95 System has findroot enabled GRUB Checking if last BE on any disk... BE snv_b95 is not the last BE on any disk. Updating GRUB menu default setting Changing GRUB menu default setting to 0 ERROR: Failed to copy file /boot/grub/menu.lst to top level dataset for BE snv_b95 ERROR: Unable to delete GRUB menu entry for deleted boot environment snv_b95. Unable to delete boot environment. please help. thank you wozik -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss smime.p7s Description: S/MIME Cryptographic Signature ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
On Sat, 27 Sep 2008, Marcin Woźniak wrote: After successful upgrade from snv_95 to snv_98 ( ufs boot - zfs boot). After luactive new BE with zfs. I am not able to ludelete old BE with ufs. problem is, I think that zfs boot is /rpool/boot/grub. This is due to a bug in the /usr/lib/lu/lulib script. I just submitted CR 6753735 to cover this. Regards, markm ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
Mark J Musante wrote: On Sat, 27 Sep 2008, Marcin Woźniak wrote: After successful upgrade from snv_95 to snv_98 ( ufs boot - zfs boot). After luactive new BE with zfs. I am not able to ludelete old BE with ufs. problem is, I think that zfs boot is /rpool/boot/grub. This is due to a bug in the /usr/lib/lu/lulib script. I just submitted CR 6753735 to cover this. Please make sure this gets into Solaris 10 Update 6! Ian ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] unable to ludelete BE with ufs
On Tue, 30 Sep 2008, Ian Collins wrote: Mark J Musante wrote: On Sat, 27 Sep 2008, Marcin Woźniak wrote: After successful upgrade from snv_95 to snv_98 ( ufs boot - zfs boot). After luactive new BE with zfs. I am not able to ludelete old BE with ufs. problem is, I think that zfs boot is /rpool/boot/grub. This is due to a bug in the /usr/lib/lu/lulib script. I just submitted CR 6753735 to cover this. Please make sure this gets into Solaris 10 Update 6! Luckily, this bug isn't present in update 6 - it's in nevada only. Regards, markm ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] unable to ludelete BE with ufs
After successful upgrade from snv_95 to snv_98 ( ufs boot - zfs boot). After luactive new BE with zfs. I am not able to ludelete old BE with ufs. problem is, I think that zfs boot is /rpool/boot/grub. ludelete snv_b95 System has findroot enabled GRUB Checking if last BE on any disk... BE snv_b95 is not the last BE on any disk. Updating GRUB menu default setting Changing GRUB menu default setting to 0 ERROR: Failed to copy file /boot/grub/menu.lst to top level dataset for BE snv_b95 ERROR: Unable to delete GRUB menu entry for deleted boot environment snv_b95. Unable to delete boot environment. please help. thank you wozik -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss