Bug 667509
| Summary: | virt-clone removes sparseness from sparse raw images | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Othman Madjoudj <athmanem> |
| Component: | python-virtinst | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | berrange, crobinso, jforbes, rjones, virt-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-11 17:15:46 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Othman Madjoudj
2011-01-05 19:57:11 UTC
The same issue with newer packages: python-virtinst-0.500.6-1.fc14.noarch libvirt-0.8.3-9.fc14.x86_64 gpxe-roms-qemu-1.0.1-3.fc14.noarch qemu-common-0.13.0-1.fc14.x86_64 qemu-img-0.13.0-1.fc14.x86_64 qemu-kvm-0.13.0-1.fc14.x86_64 qemu-system-x86-0.13.0-1.fc14.x86_64 It seems to be getting rid of sparseness. What does virt-df say about the original image? I don't have the original VM, so I've done new tests.
NB. 'fedora-rawhide-test' is cloned from 'fedora-rawhide':
]# du -h fedora-rawhide*
7.8G fedora-rawhide.img
19G fedora-rawhide-test.img
]# virt-df fedora-rawhide
Filesystem 1K-blocks Used Available Use%
fedora-rawhide:/dev/sda1 495844 72117 398127 15%
fedora-rawhide:/dev/vg_f15test/lv_root
17029980 5702312 11154720 34%
]# virt-df fedora-rawhide-test
Filesystem 1K-blocks Used Available Use%
fedora-rawhide-test:/dev/sda1 495844 72117 398127 15%
fedora-rawhide-test:/dev/vg_f15test/lv_root
17029980 5702312 11154720 34%
Updated summary line. It's not likely we can fix this for the existing virt-clone, but it's something to consider for the rewrite (or whatever we decide to do with virt-clone in the end). As an aside, you can use qemu-img to reintroduce sparseness into any image. Just do a dummy conversion from (eg.) raw to raw and qemu-img will detect zeroes and make the output sparse. For raw (only) you can also just use the 'cp' command to add sparseness. It's all explained in the link below. https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/ Ok, thank you for the info, I'll stick with my cp/virt-install --import script, I'll be glad to test virt-clone NG. *** This bug has been marked as a duplicate of bug 522720 *** |