Hello All,
Hope this message finds you well.
I have been trying proxmox for a while now and have come across a problem specific to optimized full backup (only used/non-zero blocks) of Proxmox VMs present on LVM & ZFS storage.
For directory & btrfs storage, I am able to get the allocated & unallocated blocks details which is really helpful using below commands:
I am getting output like below for btrfs & directory storage VMs:
But when I try the same commands for LVM & ZFS based VMs then it is showing the whole disk as allocated, below is the output I am getting for lvm & zfs VMs:
Can someone please help me with this? I want to get the allocated & unallocated blocks details to do the optimized full backup (full backup of only allocated blocks of disk) for VMs present on LVM & ZFS storage.
Thanks & Regards,
Arshiya
Hope this message finds you well.
I have been trying proxmox for a while now and have come across a problem specific to optimized full backup (only used/non-zero blocks) of Proxmox VMs present on LVM & ZFS storage.
For directory & btrfs storage, I am able to get the allocated & unallocated blocks details which is really helpful using below commands:
1) modprobe nbd max_part=8
2) qemu-nbd --socket=/tmp/nbd.sock --read-only /btrfs/images/183/vm-183-disk-0/disk.raw &
3) nbdinfo --map 'nbd+unix:///?socket=/tmp/nbd.sock' --json > /backup/183_full_used_blocks.json
I am getting output like below for btrfs & directory storage VMs:
[
{ "offset": 0, "length": 4096, "type": 0, "description": "data"},
{ "offset": 4096, "length": 1044480, "type": 3, "description": "hole,zero"},
{ "offset": 1048576, "length": 176128, "type": 0, "description": "data"},
{ "offset": 1224704, "length": 2060288, "type": 3, "description": "hole,zero"}
]
But when I try the same commands for LVM & ZFS based VMs then it is showing the whole disk as allocated, below is the output I am getting for lvm & zfs VMs:
[
{ "offset": 0, "length": 34359738368, "type": 0, "description": "data"}
]
Can someone please help me with this? I want to get the allocated & unallocated blocks details to do the optimized full backup (full backup of only allocated blocks of disk) for VMs present on LVM & ZFS storage.
Thanks & Regards,
Arshiya
Last edited: