[SOLVED] Trying to delete zpool: "command 'zpool destroy data' failed: exit code 1"

pgis

New Member
Jun 11, 2021
27
4
3
124
Trying to use the webUI to remove a zpool, and I got the exit code 1 error.

I have 4 disks that are part of the zpool
data":

Code:
              capacity     operations     bandwidth
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
data        3.48M  1.81T      0      1  8.02K  12.2K
rpool       4.09G   460G      1     24  61.7K   290K
----------  -----  -----  -----  -----  -----  -----

Trying it manually:

Code:
zpool destroy data
cannot unmount '/data': pool or dataset is busy
could not destroy 'data': could not unmount datasets

zfs unmount /data
cannot unmount '/data': pool or dataset is busy

No VMs are running on this host...

Should I just try forcing it?

Thanks

EDIT: well this is embarassing... I had another ssh session that was under the mountpoint
 
Last edited:
  • Like
Reactions: luciand
Glad you found the solution. Please mark the thread as solved by editing it (at the top of your post) and selecting [SOLVED] as prefix.

It can also help to reboot the node if you get such an error. Of course only after making sure nothing accesses it again after the reboot.
 
  • Like
Reactions: pgis
Trying to use the webUI to remove a zpool, and I got the exit code 1 error.

I have 4 disks that are part of the zpool
data":

Code:
              capacity     operations     bandwidth
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
data        3.48M  1.81T      0      1  8.02K  12.2K
rpool       4.09G   460G      1     24  61.7K   290K
----------  -----  -----  -----  -----  -----  -----

Trying it manually:

Code:
zpool destroy data
cannot unmount '/data': pool or dataset is busy
could not destroy 'data': could not unmount datasets

zfs unmount /data
cannot unmount '/data': pool or dataset is busy

No VMs are running on this host...

Should I just try forcing it?

Thanks

EDIT: well this is embarassing... I had another ssh session that was under the mountpoint
thanx! Exact same story here. A ssh sesion to the mount point o zfs :)) i have made my acount now just to post this.
 
thanx! Exact same story here. A ssh sesion to the mount point o zfs :)) i have made my acount now just to post this.
New to ProxMox and had exactly same problem. Didn't want to reboot the host. I wish ProxMox would offer to kill any sessions to zfs.
And created account just for this too :).