SCALE 21.08-BETA.1: Cannot destroy ZFS pool.

hypercoffeedude

Dabbler
Joined
Dec 9, 2017
Messages
11
I originally built up a Dell R510 12-bay as a backup server for my main TrueNAS server running on a Dell R710. The R510 was running UnRAID for a couple years but I have since swapped most of the odd sized drives for 3tb or 4tb sizes. I decided since TrueNAS SCALE brings docker, KVM, and other things I enjoyed on UnRAID, I figured now that the BETA has launched I would give it a solid try.

I installed TrueNAS SCALE on an SSD.
I was having trouble creating a data pool using the UI so I created a raidz2 pool via the command line.
I successfully imported the pool in the TrueNAS UI.
I decided I wanted to wipe out the pool and try directly in the UI again.
I am not able to destroy the pool from the UI or from terminal.

I noticed that under Storage -> Disks (Where it lists all the disks, serial numbers, size, and disk pool) only 7 out of 10 drives in the pool actually show up as belonging to the pool "DataVault". 3 of the drives that ARE part of the pool are showing up as "N/A". See screenshots.

I need to get rid of the pool so I can try to move forward. Anyone got any ideas?
 

Attachments

  • Screen Shot 2021-10-07 at 10.54.45 AM.png
    Screen Shot 2021-10-07 at 10.54.45 AM.png
    63.7 KB · Views: 142
  • Screen Shot 2021-10-07 at 10.55.02 AM.png
    Screen Shot 2021-10-07 at 10.55.02 AM.png
    36.4 KB · Views: 148
  • Screen Shot 2021-10-07 at 11.00.20 AM.png
    Screen Shot 2021-10-07 at 11.00.20 AM.png
    49.3 KB · Views: 135
  • Screen Shot 2021-10-07 at 11.00.51 AM.png
    Screen Shot 2021-10-07 at 11.00.51 AM.png
    77 KB · Views: 141
  • Screen Shot 2021-10-07 at 11.01.08 AM.png
    Screen Shot 2021-10-07 at 11.01.08 AM.png
    88.1 KB · Views: 164

yottabit

Contributor
Joined
Apr 15, 2012
Messages
192
Looks like your system dataset is on that pool, which is why you cannot destroy it.

You need to first move your system dataset to another pool. Or if you just want the nuclear option to start all over:
  1. Boot into singleuser maintenance mode (pools are not automatically imported)
  2. Use dd to overwrite the beginning of the disks in that pool (e.g., dd if=/dev/zero of=/dev/sdX bs=1M count=10 which is more than needed, but takes care of MBR, GPT, typical offsets, etc.)
  3. (You could zpool import, then zpool destroy, but without zeroing the beginning of the disks, they'll still be imported by ZFS when you boot; so you may was well skip those steps and just zero them)
  4. Boot into TrueNAS again and basically start over since the system dataset will be inaccessible (not sure which state you'll find since the system dataset is no longer accessible)
  5. Or instead of trying your luck with #4, just reinstall TrueNAS from scratch is probably a better idea; pay attention to where you place the system dataset (if you are using a mirrored boot pool, that would be the ideal place)
Hope this helps!
 

hypercoffeedude

Dabbler
Joined
Dec 9, 2017
Messages
11
You need to first move your system dataset to another pool.
Hope this helps!

I ended up adding a NVME SSD on a PCIe slot. Made a pool, transferred the system dataset over, and I was then able to wipe out my "DataVault" pool. Problem solved. Thank you!
 
Top