Page 1 of 1

Unable to delete pool

Posted: 23 Apr 2016 21:17
by showcasefloyd
At some point I was trying to create a secondary pool using two drives in a Raid 0 configuration. After a short while I found that one of the drives was over heating and figured I no longer needed the pool any more anyway and so I deleted the pool (called pool2-striped) from my server and removed the drives.

Okay here's where it gets weird. When I reboot the server the pool was still there, and no matter what I do I can't not seem to remove it.
I've even tried deleting the pool using the command

Code: Select all

zpool destroy tank
, which works until I reboot the system again and then I see the same error message:

NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
pool1-raidz 3.62T 1.20T 2.42T 33% 1.00x ONLINE -
pool2-stripe - - - - - FAULTED -

Any advice would be appreciated and thanks in advance

Re: Unable to delete pool

Posted: 24 Apr 2016 15:26
by kenZ71
If absolutely positive you don't need the data you can try to format the disk.

As a word of paranoid caution unplug all other drives to avoid formatting the wrong drive.

Also you could try running bad blocks to overwrite everything.

Re: Unable to delete pool

Posted: 24 Apr 2016 19:02
by showcasefloyd
Thanks KenZ71,

I actually already unplugged the drives. Do I need to plug them back in to remove the pool?

Re: Unable to delete pool

Posted: 25 Apr 2016 16:39
by slaycock
Are you actually typing

zpool destroy tank

instead of

zpool destroy pool2-striped

Just a thought

Also, if you destroyed the pool from the command line you will need to resynchronise your zfs configuration so that the gui can udate itself.

Re: Unable to delete pool

Posted: 26 Apr 2016 01:45
by showcasefloyd
Thanks slaycock.

Yeah I was typing in the correct command line. But I appreciate the input. It doesn't seem like you can delete a pool if the hard drives that the pool resides on is not hooked up any more.