[SOLVED] Can't suppress disk image from local ZFS storage

pep

New Member
Feb 8, 2018
15
0
1
45
Hi,
I have a local ZFS volume where I store all my vm (local-zfs-vm):
#cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content backup,iso,vztmpl

zfspool: local-zfs-vm
pool vm
content images,rootdir
sparse 0

When I go into the pve web interface , into the storage tab, all button are disabled and I can't remove any vm:
storage_issue.png

1/Is this a bug? Is there any way to activate them?
The zfs pool was added with
pvesm add zfspool <storage-ID> -pool <pool-name>

2/I want to suppress or change vm size via CLI but can't find a way to get access to them on the filesystem, do I neeed to create a sort of mount point? Does pve create a mount point somewhere where I could directly access the images?

Thanks!
 
1/Is this a bug?
No you should not be allowed to erase vmdisk.
This has to be done in the guest hardware tab.

do I neeed to create a sort of mount point?
If you what access a image you have to mount it manually.
 
  • Like
Reactions: pep
Hi wolfgang,

<quote>
No you should not be allowed to erase vmdisk.
This has to be done in the guest hardware tab.
</quote>

OK, I've managed to erase the disk from VM tab.

One last issue, is that I tried to create a VM from a template (100GB) but during creation, the process stopped because disk space was too small. Sadly the VM disk was created (!) but the VM not.
So i can't remove it because no vm tab available...

I will try to mount it manually. Are these commands ok?:
to mount:
zfs set mountpoint=/mnt/zfs vm
to unmount:
zfs umount vm

Can I do this while other vm are running?

Thanks!
 
Hi wolfgang,

<quote>
No you should not be allowed to erase vmdisk.
This has to be done in the guest hardware tab.
</quote>
Hi pep,
with [] brackets the quote will work.
OK, I've managed to erase the disk from VM tab.

One last issue, is that I tried to create a VM from a template (100GB) but during creation, the process stopped because disk space was too small. Sadly the VM disk was created (!) but the VM not.
So i can't remove it because no vm tab available...

I will try to mount it manually. Are these commands ok?:
to mount:
zfs set mountpoint=/mnt/zfs vm
to unmount:
zfs umount vm

Can I do this while other vm are running?

Thanks!
perhaps you can do that, but this will not be helpfull.

But you can delete your defect vm-disk-image with someting like this (use the right pool and disk-file!!):
Code:
zfs destroy rpool/data/vm-123-disk-1
Udo
 
Hi wolfgang,
zfs destroy did not work, but I workaround it creating a vm with a "cp" of an existing one and renaming it to 107.conf. Then I was able to erase the disk... :)