Bug 1263916
Summary: | boot guest with '-snapshot', base file is deleted after block-commit and live snapshot | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Pei Zhang <pezhang> |
Component: | qemu-kvm-rhev | Assignee: | Jeff Cody <jcody> |
Status: | CLOSED ERRATA | QA Contact: | Qianqian Zhu <qizhu> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | chayang, huding, juzhang, knoel, michen, mrezanin, mst, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-07 20:38:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pei Zhang
2015-09-17 05:29:51 UTC
More info: 1. The guest is still running. Reboot several times, it still works well. 2. the snapshot file can not be found. # ll /mnt/disk2/snapshot1.qcow2 ls: cannot access /mnt/disk2/snapshot1.qcow2: No such file or directory More info(2): 1. After shutdown the guest, the space of the disk(/dev/sdc) will then be really released. before shutdown: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel_dhcp--12--153-root 50G 18G 33G 35% / ... /dev/sdc 59G 50G 5.9G 90% /mnt/disk1 /dev/sdb 97G 34G 58G 38% /mnt/disk2 ... after shutdown: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel_dhcp--12--153-root 50G 18G 33G 35% / ... /dev/sdc 59G 48G 8.6G 85% /mnt/disk1 /dev/sdb 97G 34G 58G 38% /mnt/disk2 ... Is this a regression from RHEL 7.1? (In reply to Karen Noel from comment #3) > Is this a regression from RHEL 7.1? re-tested: Host:rhel7.1 Kernel:3.10.0-229.el7.x86_64 qemu-kvm-rhev:qemu-kvm-rhev-2.1.2-23.el7.x86_64 rhel7.1 hit the same issue. Seams it's not a regression. This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Reproduced with: qemu-kvm-rhev-2.3.0-31.el7_2.8.x86_64 qemu-img-rhev-2.3.0-31.el7_2.8.x86_64 kernel-3.10.0-461.el7.x86_64 Steps: 1. Launch guest with -snapshot: /usr/libexec/qemu-kvm -name linux -cpu SandyBridge -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 7bef3814-631a-48bb-bae8-2b1de75f7a13 -nodefaults -monitor stdio -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot order=c,menu=on -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mntnfs/RHEL-Server-7.3-64-virtio.qcow2,if=none,cache=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0 -snapshot -qmp tcp::5555,server,nowait 2. Block commit: {"execute":"block-commit","arguments":{"device":"drive-virtio-disk0"}} {"execute": "block-job-complete", "arguments": { "device": "drive-virtio-disk0"}} 3. Live snapshot: { "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive-virtio-disk0","snapshot-file": "/mntnfs/snapshot1.qcow2", "format": "qcow2", "mode": "absolute-paths" } } Result: Backing file is deleted: (qemu) info block drive-virtio-disk0: /mntnfs/snapshot1.qcow2 (qcow2) Cache mode: writeback, ignore flushes Backing file: /mntnfs/RHEL-Server-7.3-64-virtio.qcow2 (chain depth: 1) # qemu-img info /mntnfs/RHEL-Server-7.3-64-virtio.qcow2 qemu-img: Could not open '/mntnfs/RHEL-Server-7.3-64-virtio.qcow2': Could not open '/mntnfs/RHEL-Server-7.3-64-virtio.qcow2': No such file or directory Verified with: qemu-img-rhev-2.6.0-20.el7.x86_64 qemu-kvm-rhev-2.6.0-20.el7.x86_64 kernel-3.10.0-491.el7.x86_64 Steps same as above. Results: Backing file kept and no errors. (qemu) info block drive-virtio-disk0 (#block1558): /mntnfs/snapshot1.qcow2 (qcow2) Cache mode: writeback, ignore flushes Backing file: /mntnfs/RHEL-Server-7.3-64-virtio.qcow2 (chain depth: 1) # qemu-img info /mntnfs/RHEL-Server-7.3-64-virtio.qcow2 image: /mntnfs/RHEL-Server-7.3-64-virtio.qcow2 file format: qcow2 virtual size: 20G (21474836480 bytes) disk size: 5.9G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false # qemu-img check /mntnfs/RHEL-Server-7.3-64-virtio.qcow2 No errors were found on the image. 80662/327680 = 24.62% allocated, 18.31% fragmented, 0.00% compressed clusters Image end offset: 5287772160 Moving to VERIFIED as per comment 9 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. https://rhn.redhat.com/errata/RHBA-2016-2673.html |