Removing obsolete vm file from zfs?

proxwolfe

Member
Jun 20, 2020
243
11
23
47
Hi,

I have a PVE host with a ZFS pool on which I had created two virtual disks for VMs (zpool/vm-101-disk -1 and zpool/vm-103-disk-0). Since then, I have replaced those virtual disks with other virtual disks in a dataset (zpool/dataset/vm-101-disk-0 and zpool/dataset/vm-103-disk-0).

Code:
root@server:/zpool# zfs list
NAME                          USED  AVAIL     REFER  MOUNTPOINT
zpool                        14.9T   897G      140K  /zpool
zpool/dataset                5.94T   897G      140K  /zpool/dataset
zpool/dataset/vm-101-disk-0  4.46T  5.13T      208G  -
zpool/dataset/vm-103-disk-0  1.49T  2.36T     1.03G  -
zpool/dataset_encrypted       256K   897G      256K  /zpool/dataset_encrypted
zpool/vm-101-disk-1          7.43T  7.63T      689G  -
zpool/vm-103-disk-0          1.49T  2.36T     81.4K  -

Now I want to remove the old virtual disks but I can't:

Code:
root@server:/zpool# rm zpool/vm-101-disk-1
rm: cannot remove 'zpool/vm-101-disk-1': No such file or directory

What am I missing?

Thanks!
 

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 your own in 60 seconds.

Buy now!