Bug 497080
| Summary: | check amount of free disk space before attempting to suspend | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Chris Lalancette <clalance> |
| Component: | xen | Assignee: | Xen Maintainance List <xen-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.5 | CC: | gyang, imammedo, leiwang, lersek, minovotn, mrezanin, pbonzini, xen-maint, yuzhou |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | xen-3.0.3-133.el5 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-21 05:54:16 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 615187, 618569, 690419, 699611 | ||
|
Description
Chris Lalancette
2009-04-22 09:59:25 UTC
Unassigning for now. *** Bug 626339 has been marked as a duplicate of this bug. *** Looking at the current state of the files modified by the commits listed in comment 0, additional linux-2.6.18-xen.hg commits to consider the backporting of, on top of 623: 1051:c72ead7ec595 -- Don't register shutdown watch and suspend event channel for Dom0 [if we have 591:cdadea74443c in place -- "Set up an event channel to accept suspend requests. This is much faster than going through xenstore."] 629:abcb2a10ff2f -- linux/x86-64: use xen_new_user_pt() rather than open-coding it [if we have xen_new_user_pt()] I will have to check xen-unstable.hg as well. We discussed this, and decided against backporting suspend cancellation. The most common reason of failure to suspend is insufficient disk space. Userspace could / should do a preventive (best effort) check to see if there's enough free space in the target filesystem. If there isn't, then refuse to suspend. Changing component to "xen", and retitling. *** Bug 589123 has been marked as a duplicate of this bug. *** Reproduce the bug on xen-3.0.3-132.el5 and verify the bug on xen-3.0.3-135.el5. Steps: 1. Start a guest. 2. Prepare a disk with insuffient space, for example #dd if=/dev/zero of=/tmp/small.img bs=1M count=100 #mkfs /tmp/small.img #mount /tmp/small /mnt/small -o loop 3. Save the guest to the inffient space disk #xm save vm1 /mnt/small/savefile Results: on xen-3.0.3-132.el5, free disk space is not checked before attempting to suspend: # xm save 14 /mnt/small/14.save Error: /usr/lib64/xen/bin/xc_save 4 14 0 0 4 failed Usage: xm save <Domain> <CheckpointFile> Save a domain state to restore later. on xen-3.0.3-135.el5, free disk space is checked before attempting to suspend the guest, and proper message is given. # xm save 15 /mnt/small/15.save Error: can't write guest state file /mnt/small/15.save: No space left on device Usage: xm save <Domain> <CheckpointFile> Save a domain state to restore later. So, change this bug to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0160.html |