Hello,
I have a VM with too much space allocated and am trying to shrink it's disk from 200G to 100G.
Filesystem of VM is BTRFS and of Proxmox ZFS.
Steps I've done:
1) Boot into gparted and resize the btrfs partition from almost 200G to 95G (used partition space does not exceed 100G)
2) Shutdown VM
3) In proxmox shell:
4) Boot VM
VM boots with filesystem corruption error and dumps me into initramfs.
Can I shrink a BTRFS filesystem this way? I tried to google it and it worked for everyone else. They say to leave some space at the end of the disk (as I did) to avoid corruption, but it doesn't help.
What do I have to do to make it work?
I have a VM with too much space allocated and am trying to shrink it's disk from 200G to 100G.
Filesystem of VM is BTRFS and of Proxmox ZFS.
Steps I've done:
1) Boot into gparted and resize the btrfs partition from almost 200G to 95G (used partition space does not exceed 100G)
2) Shutdown VM
3) In proxmox shell:
zfs set volsize=100G data/vm-101-disk-0
and qm rescan
4) Boot VM
VM boots with filesystem corruption error and dumps me into initramfs.
Can I shrink a BTRFS filesystem this way? I tried to google it and it worked for everyone else. They say to leave some space at the end of the disk (as I did) to avoid corruption, but it doesn't help.
What do I have to do to make it work?