Bug 1029501 - [vdsm] VM disk does not get resized when performing live virtual disk resize on block storage
Summary: [vdsm] VM disk does not get resized when performing live virtual disk resize ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.3.0
Hardware: x86_64
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.3.0
Assignee: Federico Simoncelli
QA Contact: Aharon Canan
URL:
Whiteboard: storage
Depends On:
Blocks: 600483 3.3snap3
TreeView+ depends on / blocked
 
Reported: 2013-11-12 13:54 UTC by Elad
Modified: 2018-12-05 16:34 UTC (History)
11 users (show)

Fixed In Version: is24
Doc Type: Bug Fix
Doc Text:
After live resizing a virtual disk, the size change was not reflected on the virtual machine. Now, the volume is refreshed to update the volume segments, and to make the new size visible to the QEMU process before live extension.
Clone Of:
Environment:
Last Closed: 2014-01-21 16:21:19 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (8.29 MB, application/x-gzip)
2013-11-12 13:54 UTC, Elad
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0040 0 normal SHIPPED_LIVE vdsm bug fix and enhancement update 2014-01-21 20:26:21 UTC
oVirt gerrit 21177 0 None None None Never
oVirt gerrit 21274 0 None None None Never

Description Elad 2013-11-12 13:54:57 UTC
Created attachment 822990 [details]
logs

Description of problem:
When I live resize virtual VM disk, I don't see the size change on the guest.
Engine reports that the virtual disk size is the new size, but the actual size remains the same.


Version-Release number of selected component (if applicable):
vdsm-4.13.0-0.7.beta1.el6ev.x86_64

How reproducible:
100%

Steps to Reproduce:
On a block pool 
1. create a VM with disk and install OS (RHEL)
2. edit VM disk and add 2G to the disk while the VM is running and the disk is plugged
3. run lsblk command on guest and check if the disk got extended

Actual results:

lvextend on vdsm:

867330ec-7948-44f5-afbe-919e9ff7b78e::DEBUG::2013-11-12 11:51:26,521::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo -n /sbin/lvm lvextend --config " devices { preferred_names = [\\"^/dev/mapper/\\"] ignore_s
uspended_devices=1 write_cache_state=0 disable_after_error_count=3 obtain_device_list_from_udev=0 filter = [ \'a|/dev/mapper/3514f0c54d5c0000d|\', \'r|.*|\' ] }  global {  locking_type=1  prioritise_write_locks=1
 wait_for_locks=1 }  backup {  retain_min = 50  retain_days = 0 } " --autobackup n --size 9216m 5059994f-9d15-492d-827d-d6be091693e4/c47df525-35c7-4e91-9a4a-14dc219f7aff' (cwd None)

Only when we unplug the disk and plug it again, we will see the disk size change on the guest.


Expected results:
Live disk resize should work

Additional info: logs

notice that the relevant lvextend took place on 2013-11-12 11:51:26,521

Comment 1 Aharon Canan 2013-11-24 17:09:42 UTC
verified using is24.1

Comment 2 errata-xmlrpc 2014-01-21 16:21:19 UTC
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-2014-0040.html


Note You need to log in before you can comment on or make changes to this bug.