[GH-ISSUE #77] Cannot exclude vm disks #74

Closed
opened 2026-02-26 17:44:17 +03:00 by kerem · 3 comments
Owner

Originally created by @pgroidis on GitHub (Jul 6, 2023).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/77

What happened?

It seems that I cannot use cv4pve-snapshot to exclude disks from within vm. For example, a vm 101 has 5 disks

virtio0: local-zfs:vm-101-disk-0,discard=on,iothread=1,size=32G
virtio1: local-zfs:vm-101-disk-1,discard=on,iothread=1,size=17G
virtio2: backup-zfs:vm-101-disk-0,backup=0,iothread=1,size=1160G
virtio3: local-zfs:vm-101-disk-2,discard=on,iothread=1,size=160G
virtio4: local-zfs:vm-101-disk-3,discard=on,iothread=1,size=500G

Disks on virtio2 is used for backup purposes and you can verify that backup=0 (skip backups)

If you execute

cv4pve-autosnap --timestamp-format ddMMyyHHmmss --host=127.0.0.1 --api-token 'snapshot@pve!snapshot=********* --vmid=101 snap --state --label=hourly --keep 24
You will get the below error

----- VM 101 qemu running ----- VM 101 consider enabling QEMU agent see https://pve.proxmox.com/wiki/Qemu-guest-agent Create snapshot: autohourly060723114501 Error in task: zfs error: cannot create 'backup01/main/vm-101-state-autohourly060723114501': out of space Total execution 00:00:01.4703455

zpool list
zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT backup01 1.20T 726G 498G - - 3% 59% 1.00x ONLINE - rpool 1.61T 765G 883G - - 15% 46% 1.00x ONLINE -

Expected behavior

Somehow I have to exclude my backup pool or somehow choose specific virtio devices.

Relevant log output

No response

Proxmox VE Version

4.7

Version (bug)

1.14.8

Version (working)

1.14.8

On what operating system are you experiencing the issue?

Linux

Pull Request

  • I would like to do a Pull Request
Originally created by @pgroidis on GitHub (Jul 6, 2023). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/77 ### What happened? It seems that I cannot use cv4pve-snapshot to exclude disks from within vm. For example, a vm 101 has 5 disks virtio0: local-zfs:vm-101-disk-0,discard=on,iothread=1,size=32G virtio1: local-zfs:vm-101-disk-1,discard=on,iothread=1,size=17G virtio2: backup-zfs:vm-101-disk-0,backup=0,iothread=1,size=1160G virtio3: local-zfs:vm-101-disk-2,discard=on,iothread=1,size=160G virtio4: local-zfs:vm-101-disk-3,discard=on,iothread=1,size=500G Disks on virtio2 is used for backup purposes and you can verify that backup=0 (skip backups) If you execute `cv4pve-autosnap --timestamp-format ddMMyyHHmmss --host=127.0.0.1 --api-token 'snapshot@pve!snapshot=********* --vmid=101 snap --state --label=hourly --keep 24 ` You will get the below error `----- VM 101 qemu running ----- VM 101 consider enabling QEMU agent see https://pve.proxmox.com/wiki/Qemu-guest-agent Create snapshot: autohourly060723114501 Error in task: zfs error: cannot create 'backup01/main/vm-101-state-autohourly060723114501': out of space Total execution 00:00:01.4703455 ` zpool list `zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT backup01 1.20T 726G 498G - - 3% 59% 1.00x ONLINE - rpool 1.61T 765G 883G - - 15% 46% 1.00x ONLINE - ` ### Expected behavior Somehow I have to exclude my backup pool or somehow choose specific virtio devices. ### Relevant log output _No response_ ### Proxmox VE Version 4.7 ### Version (bug) 1.14.8 ### Version (working) 1.14.8 ### On what operating system are you experiencing the issue? Linux ### Pull Request - [ ] I would like to do a Pull Request
kerem 2026-02-26 17:44:17 +03:00
Author
Owner

@franklupo commented on GitHub (Jul 6, 2023):

If you create snapshot with web gui Proxmox VE work?

Best regards

<!-- gh-comment-id:1624004572 --> @franklupo commented on GitHub (Jul 6, 2023): If you create snapshot with web gui Proxmox VE work? Best regards
Author
Owner

@pgroidis commented on GitHub (Jul 17, 2023):

It seems that also from WEB GUI includes NON-backup disks to ZFS Snapshot :(

<!-- gh-comment-id:1637594381 --> @pgroidis commented on GitHub (Jul 17, 2023): It seems that also from WEB GUI includes NON-backup disks to ZFS Snapshot :(
Author
Owner

@franklupo commented on GitHub (Jul 17, 2023):

this option is not possible. I am sorry

Best regards

<!-- gh-comment-id:1638070987 --> @franklupo commented on GitHub (Jul 17, 2023): this option is not possible. I am sorry Best regards
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#74
No description provided.