Bug 1017646
Summary: | RFE: block resize could check if the new size is big enough for guest's data | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | lijin <lijin> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED WONTFIX | QA Contact: | Meina Li <meili> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | --- | CC: | chayang, dyuan, jdenemar, jsuchane, juzhang, lijin, lmen, lpeer, mkenneth, mzhan, qzhang, rbalakri, srevivo, virt-maint, vrozenfe, xuzhang |
Target Milestone: | pre-dev-freeze | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-25 07:59:05 UTC | Type: | Feature Request |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
lijin
2013-10-10 09:38:21 UTC
Hi, Jinli Is this a windows specific issue? Does it happen with rhel guest as well? Thanks, Qunfang (In reply to Qunfang Zhang from comment #2) > Hi, Jinli > > Is this a windows specific issue? Does it happen with rhel guest as well? > > Thanks, > Qunfang retest with rhel guest,guest will kenel panic after block_resize. This bug is like RFE rather than a bug . We need to do some limitation in qemu-kvm side eg the shrinking size shouldn't larger than un-allocated space in the guest. (In reply to Mike Cao from comment #4) > This bug is like RFE rather than a bug . We need to do some limitation in > qemu-kvm side eg the shrinking size shouldn't larger than un-allocated space > in the guest. Right, we should be very careful when shrinking a volume, to prevent the situation when the new disk size is smaller than the guest OS thinks it is. So you have a 60 GB file system, truncate it to 16 GB and things break? Big surprise... This behaviour is completely expected. It's also not something that qemu could possibly warn against, because qemu doesn't know what data on the disk is used and what can be safely dropped. It completely depends on the guest. If anything, management tools could warn against it, probably in cooperation with a guest agent. If you want us to explore this, it's probably best to open a libvirt RFE for RHEL 7. This has nothing to do with RHEV as rhev doesn't even support shrinking of a disk. I will test if vol-resize can cover this. Move to consideration for 7.4 Considering comment 6, low priority for several consecutive releases (first reported for rhel-6.5) and that this is actually technically hardly solvable I am closing this is WONTFIX. |