Answer the question
In order to leave comments, you need to log in
Reducing the actual size of the XEN disk image. Is it possible to?
Colleagues, good afternoon.
Two cases:
mount -o ro,remount /
dd if=/dev/sda bs=64K | gzip -c > /share/test.img.gz
du -h /md/share/test.img
21G /md/share/test.img
dd if=/dev/zero of=/md/share/test2.img bs=1024k seek=20480 count=0
du -h /md/share/test2.img
0 /md/share/test2.img
ls -lah /md/share/test2.img
-rw-r--r-- 1 root root 20G Aug 2 2:46 pm / md/share/test2.img
Answer the question
In order to leave comments, you need to log in
Use qcow format which works in thin provisioning mode.
But the performance drops noticeably.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question