Hello!
I created vhdx image with disk2vhd and put it to proxmox server.
I create VM with disk on local-zfs storage (rpool/data/vm-101-disk-1)
root@pve1:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 594G 1.18T 96K /rpool
rpool/ROOT 243G 1.18T 96K /rpool/ROOT
rpool/ROOT/pve-1 243G 1.18T 243G /
rpool/data 351G 1.18T 230G /rpool/data
rpool/data/vm-100-disk-1 85.3G 1.18T 56.1G -
rpool/data/vm-100-disk-2 24.7G 1.18T 23.8G -
rpool/data/vm-100-state-crypto_pro 10.9G 1.18T 10.9G -
rpool/data/vm-101-disk-1 64K 1.18T 64K -
Then I wanted to convert vhdx to this disk:
# qemu-img convert -O row ./SERVER.VHDX /rpool/data/vm-101-disk-1
image is about 300gb and after some time process finished without error.
I can see that size of rpool/data/vm-101-disk-1 didn't changed, but size of rpool and rpool/data had increased on about 300gb exactly
BUT, after starting VM I've seen that there is nothing on the disk.
Now I have 2 questions:
1) after deleting rpool/data/vm-101-disk-1 size of rpool didn't changed - how to reduce it back? I don't understand where is 300gb of data is??
2) how to convert vhdx image to zfspool disk - is it possible?
I created vhdx image with disk2vhd and put it to proxmox server.
I create VM with disk on local-zfs storage (rpool/data/vm-101-disk-1)
root@pve1:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 594G 1.18T 96K /rpool
rpool/ROOT 243G 1.18T 96K /rpool/ROOT
rpool/ROOT/pve-1 243G 1.18T 243G /
rpool/data 351G 1.18T 230G /rpool/data
rpool/data/vm-100-disk-1 85.3G 1.18T 56.1G -
rpool/data/vm-100-disk-2 24.7G 1.18T 23.8G -
rpool/data/vm-100-state-crypto_pro 10.9G 1.18T 10.9G -
rpool/data/vm-101-disk-1 64K 1.18T 64K -
Then I wanted to convert vhdx to this disk:
# qemu-img convert -O row ./SERVER.VHDX /rpool/data/vm-101-disk-1
image is about 300gb and after some time process finished without error.
I can see that size of rpool/data/vm-101-disk-1 didn't changed, but size of rpool and rpool/data had increased on about 300gb exactly
BUT, after starting VM I've seen that there is nothing on the disk.
Now I have 2 questions:
1) after deleting rpool/data/vm-101-disk-1 size of rpool didn't changed - how to reduce it back? I don't understand where is 300gb of data is??
2) how to convert vhdx image to zfspool disk - is it possible?