Stacy Maydew
2009-Oct-06 18:20 UTC
[zfs-discuss] How can I destroy an exported, corrupt zpool?
I have two zpools that have been exported and now have corrupted disks and cause an error when I try to import them using "zpool import -f <pool>". Is there a way I can destroy a zpool that is exported and corrupt? Or perhaps I can remove the corrupt drives from the zpool to the point where I can import the pool? Any help would be appreciated. Thanks, Stacy Maydew stacy.maydew at sun.com -- This message posted from opensolaris.org
Cindy Swearingen
2009-Oct-06 18:59 UTC
[zfs-discuss] How can I destroy an exported, corrupt zpool?
Hi Stacy, If you can''t import the pool, then it is difficult to remove the disks. If the pool had enough redundancy, you could attempt to unconfigure the corrupted disks with cfgadm and then try to import the pool. Until we have a zpool clean feature, you could wipe the disk labels with dd in the bad pools, like this: # dd if=/dev/zero of=/dev/dsk/c1t0d0s0 count=100 bs=512k Make sure you use the dd syntax on the right disks. Cindy On 10/06/09 12:20, Stacy Maydew wrote:> I have two zpools that have been exported and now have corrupted disks and cause an error when I try to import them using "zpool import -f <pool>". > > Is there a way I can destroy a zpool that is exported and corrupt? > > Or perhaps I can remove the corrupt drives from the zpool to the point where I can import the pool? > > Any help would be appreciated. > > Thanks, > > Stacy Maydew > stacy.maydew at sun.com