Unable to delete Pool

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I have 4 Pools on my Scale Setup under 22.02.1 (I was on 22.02.2 but have since reverted due to boot issues)
However I have a Pool consisting of 4 * NVMe drives as a pair of striped mirrors. 2 * 2TB, 2 * 512GB. Its a test pool and has no real purpose at the moment.

I cannot delete it - every time I try its says that the pool is busy

root@NewNAS[~]# zpool status NVMePool pool: NVMePool state: ONLINE scan: scrub repaired 0B in 00:00:40 with 0 errors on Tue Jun 28 00:00:42 2022 config: NAME STATE READ WRITE CKSUM NVMePool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 2d70c99c-bbe0-4a49-909a-d0b66d7aaa34 ONLINE 0 0 0 073d3270-e1cf-4c00-8ed0-98c737274a2e ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 42074efb-030d-4ed2-9258-06d689a2482b ONLINE 0 0 0 4ee3c8e5-da18-486a-a073-d835c13b9fce ONLINE 0 0 0 errors: No known data errors root@NewNAS[~]#

The Pool consists of a DataSet and a zvol
1656590122571.png


When I try to delete the zvol I get
[EBUSY] Failed to delete dataset: cannot destroy 'NVMePool/iSCSI/iscsi.nvme.newnas.xen': dataset is busy

If I try zfs destroy -r NVMePool I get
cannot destroy 'NVMePool/iSCSI/iscsi.nvme.newnas.xen': dataset is busy
cannot destroy 'NVMePool/iSCSI': dataset already exists

It would appear that something is keeping the ZVOL open / working and thus preventing me from deleting the Pool

I could just remove and wipe the disks - but thats a ballache as it means taking the server out of the rack, removing a PCIe to NVMe Card, dismantling it and then wiping each disks seperately. And I can't do any of that till a restore completes

So I thought I would ask if anyone has any ideas?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
So there appears to be a problem with TrueNAS Scale, but to work around this, can you boot another OS or Utility CD/DVD/ISO that would allow you to select a Secure Erase of the NVMe's? Partied Magic may support this or any other utility yo may have. Or does the BIOS allow selecting of Secure Erase? Just thinking about not physically removing the devices and saving time.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Not at this point - as I am restoring a large dataset at the moment. Should be finished tomorrow
Honestly I am twitchy about booting another OS in case it does something to the other disks - so windows is out

I guess an OS used for recovery of data should be safe enough
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
It looks like you have an iSCSI share attached to that zvol. If you delete the share, you should be able to destroy the pool.

If there's no iSCSI share, also check if your System Dataset is on that pool.
 
Last edited:
Top