On 08/20/2012 02:55 PM, Ernest Dipko wrote:
> Is there any way to recover the data within a zpool after a spool create -f 
> was issued on the disks?
> We had a pool that contained two internal disks (mirrored) and we added a 
> zvol to it our of an existing pool for some temporary space.  After the 
> reboot, the pool was not able to be imported because it could not find the 
> zvol disk.  Trying to import the pool and specifying a -d /dev/zvol/dsk/rpool 
> actually found the zvol which contained the missing disk, but failed import 
> with missing disks (the two internal).
> We then tried to recreate the pool, which was successful - but without data…

Do this:

Create a directory somewhere and make links (soft will work) to the
devices that are in the pool, then pass the path to that dir to -d.  -d
expects a directory containing the devices, not the actual devices. 
Just learned this a week ago myself. :)

zfs-discuss mailing list

Reply via email to