Hello,
I came acros a strange issue. One few servers we are unable to create or delete snapshot. In most cases snapshots work but the deletion makes the VM unvailble until the server gets a hard reset. Below some info
VM config
Qemu is running:
Snapshots
If i check it with the following command it shows this:
But when I try to force delete the snapshot it seems that there is no snapshot
We have assigned 400GB to the VM but when I check the host I see this
When I create a Proxmox backup the actual usage is
The disk usage on the VM is around 232GB.
So there are multiple questions:
1. Why is the assigned storage bigger then the assigned storage? (trim on vm did not help)
2. Why does it fail to create/delete snapshot?
3. Based on the usage could it be possible that there is a snapshot left-over?
I came acros a strange issue. One few servers we are unable to create or delete snapshot. In most cases snapshots work but the deletion makes the VM unvailble until the server gets a hard reset. Below some info
VM config
Code:
agent: 1,fstrim_cloned_disks=1
boot: order=scsi0
cores: 4
cpu: Haswell-noTSX,flags=+aes
cpuunits: 1000
ide2: none,media=cdrom
memory: 8192
name: example
net0: virtio=da:68:a7:22:54:7c,bridge=vmbrxxx,firewall=1,rate=125
numa: 0
onboot: 1
ostype: l26
scsi0: data:5800/vm-5800-disk-0.qcow2,cache=writeback,discard=on,size=400G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=473f7c95-87d4-4758-816f-7881dc119a38
sockets: 1
vmgenid: f65dcd1c-41ab-463a-acb8-d4cce14114f5
Qemu is running:
Code:
qm status 5800 --verbose | grep running-qemu
running-qemu: 7.2.0
Snapshots
Code:
# qm listsnapshot 5800
`-> current You are here!
If i check it with the following command it shows this:
Code:
# qemu-img snapshot -l /mnt/data/images/5800/vm-5800-disk-0.qcow2
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK ICOUNT
1 Voorderename 0 B 2024-01-08 19:01:32 02:18:30.527
But when I try to force delete the snapshot it seems that there is no snapshot
Code:
~# qm delsnapshot 5800 Voorderename --force
snapshot 'Voorderename' does not exist
We have assigned 400GB to the VM but when I check the host I see this
Code:
--- /mnt/data/images/5800 ----------------------------------------------------------------------------------------------------------------------------------
529.5 GiB [##########] vm-5800-disk-0.qcow2
When I create a Proxmox backup the actual usage is
Code:
INFO: 100% (400.0 GiB of 400.0 GiB) in 42m 39s, read: 170.9 MiB/s, write: 91.4 MiB/s
INFO: backup is sparse: 182.67 GiB (45%) total zero data
INFO: transferred 400.00 GiB in 2559 seconds (160.1 MiB/s)
INFO: archive file size: 172.33GB
INFO: adding notes to backup
INFO: Finished Backup of VM 5800 (00:43:44)
INFO: Backup finished at 2024-01-08 21:09:52
INFO: Backup job finished successfully
TASK OK
The disk usage on the VM is around 232GB.
So there are multiple questions:
1. Why is the assigned storage bigger then the assigned storage? (trim on vm did not help)
2. Why does it fail to create/delete snapshot?
3. Based on the usage could it be possible that there is a snapshot left-over?