Unable to delete ZFS storage with error command 'zpool destroy node1_bankup' failed: exit code 1'

bossey1

New Member
Jul 15, 2024
27
3
3
I made a mistake and named a storage node1_bankup rather than node1_backup. I have since been trying to rename it or remove it and set it up again, but have been unable to. I get the error command 'zpool destroy node1_bankup' failed: exit code 1'

It seems Promox won't allow me to destroy this from the UI, so is there a way to directly destroy it from the CLI? It may possibly contain some data, but nothing important.

help...
 
zpool destroy -f node1_bankup
The response to that is:

root@server1:~# zpool destroy -f node1_bankup
cannot destroy 'node1_bankup': pool is busy
root@server1:~#

I have no backups or anything else accessing the storage other than that there was a previous PBS I removed that used 148G of 7T.

root@server1:~# zfs list space node1_bankup
cannot open 'space': dataset does not exist
NAME USED AVAIL REFER MOUNTPOINT
node1_bankup 148G 6.98T 96K /node1_bankup
root@server1:~#
 
Last edited:
call zpool status and zpool list -v please.
Thank you. After doing zfs list, I found what was using the disk. I didn't suspect the culprit as it should never have been using the storage.

root@server1:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
node1_bankup 148G 6.98T 96K /node1_bankup
node1_bankup/vm-106-disk-0 131G 7.06T 44.3G -
node1_bankup/vm-106-state-completed-initial-basic-configuration 16.7G 7.00T 1.83G

It seems my OPNSense VM was using this storage. Must have been sleepy when setting it up on that day...

Thank you all @tcabernoch @news for not ignoring my possibly insignificant question.
 
Last edited:
  • Like
Reactions: tcabernoch