Make sure you reboot after adding that to /etc/system for making a safe clone I know there must be other ways to do it, but you could make a new zpool and do a zfs send/receive from old zvols to new ones.
zfs snapshot -r yourz...@snapshot zfs send -R yourz...@snapshot | zfs recv -vFd yournewzvol -- HUGE David Stahl Sr. Systems Administrator 718 233 9164 / F 718 625 5157 www.hugeinc.com <http://www.hugeinc.com> From: Vladimir Novakovic <vnova...@gmail.com> Date: Wed, 12 Aug 2009 17:45:11 +0200 To: zfs-discuss <zfs-discuss@opensolaris.org> Subject: Re: [zfs-discuss] zpool import -f rpool hangs Hi David, thank for a tip. but I could't use just "zpool import rpool" because it always said that pool is already used by other system, than I could only try with a force switch "-f". Under Solaris 10 that I'm using now to recover this rpool I have rpool named as mypool01 it should not collide with a affected rpool that I want to recover and import or? So, "zpool import rpool rpool2" should only rename and import the pool with a new name? I'm wondering if I need to use -f to force it that I do not lose or damage something if "zpool import -f rpool rpool2" hangs again. Anyway, I will try this that you've suggested with settings in the /etc/system and to mount using zpool import -f -R /mnt rpool Do you know is there anyway to make the safe clone of affected disk? Regards, Vladimir On Wed, Aug 12, 2009 at 3:24 PM, HUGE | David Stahl <dst...@hugeinc.com> wrote: > I wonder if one prob is that you already have an rpool when you are booted of > the CD. > could you do > zpool import rpool rpool2 > to rename? > > also if system keeps rebooting on crash you could add these to your > /etc/system (but not if you are booting from disk) > set zfs:zfs_recover=1 > set aok=1 > > that solved a import/reboot loop I had a few months > > > > -----Original Message----- > From: zfs-discuss-boun...@opensolaris.org on behalf of Vladimir Novakovic > Sent: Wed 8/12/2009 8:49 AM > To: zfs-discuss@opensolaris.org > Subject: [zfs-discuss] zpool import -f rpool hangs > > I had the rpool with two sata disks in the miror. Solaris 10 5.10 > Generic_141415-08 i86pc i386 i86pc > > Unfortunately the first disk with grub loader has failed with unrecoverable > block write/read errors. > > Now I have the problem to import rpool after the first disk has failed. > > So I decided to do: "zpool import -f rpool" only with second disk, but it's > hangs and the system is rebooting. > > I have tried to import to the fresh Solaris 10 05/09, also I've tried > Solaris CD in single user mode and OpenSolaris 2009.11 live CD but all > systems are panic and restarting. > > I can see that pool is existing. Labels are readable from both disks. > > What can I do to check and to recover data from the second disk. > > I have few equal disks that I can use to make a clone of the second disk. > > Would it be possible to do it with dd command and than try to use this clone > to find out how to recover from this situation? > > > Regards, > Vladimir > _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss