Removing obsolete vm file from zfs?

proxwolfe

Well-Known Member
Jun 20, 2020
530
63
48
50
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!