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

pgis

New Member
Jun 11, 2021
27
3
3
123
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!