Bug 1518095

Summary: [viostor] Online enlarging data image size does not work properly
Product: Red Hat Enterprise Linux 7 Reporter: Vadim Rozenfeld <vrozenfe>
Component: virtio-winAssignee: Vadim Rozenfeld <vrozenfe>
virtio-win sub component: virtio-win-prewhql QA Contact: Virtualization Bugs <virt-bugs>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: aliang, coli, ddepaula, lijin, lmiksik, phou, vrozenfe, wyu, xiagao
Version: 7.5   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 06:33:41 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:
Attachments:
Description Flags
how to check this feature none

Description Vadim Rozenfeld 2017-11-28 08:22:54 UTC
Description of problem:
After a disk is resized, Windows needs to rescan the disks in order to update.
Currently, the sys-admin is required to do manually, but Windows should be able to do it automatically on first write request.

Version-Release number of selected component (if applicable):


How reproducible:

(shamelessly taken from https://bugzilla.redhat.com/show_bug.cgi?id=824814 so some corrections may be required)

Steps to Reproduce:
1.create a raw format disk.
# qemu-img create -f raw my_data_disk.raw 15G
2.start a windows guest with this data disk.
# /usr/libexec/qemu-kvm -M rhel7.4.0 -cpu SandyBridge -enable-kvm -smp 2 -m 2G -usb -device usb-tablet,id=input0 -name windows_7_sp1_x64 -uuid `uuidgen` -drive file=windows_2008_r2_sp1_x64.qcow2,if=none,id=hd,format=qcow2,aio=native,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=hd,id=blk_image,scsi=off,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0 -vnc :1 -balloon none -device sga -chardev socket,id=serial0,path=/var/sluo,server,nowait -device isa-serial,chardev=serial0 -monitor unix:/tmp/monitor2,server,nowait -monitor stdio -drive file=my_data_disk.raw,if=none,id=data_drive,format=raw,aio=native,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=data_drive,id=blk_data
3.(qemu) block_resize data_drive 20G
4.check the data disk whether it increased via device manager.
5.reboot the guest and then check the data disk whether it increased.

Actual results:
after the step 4,
we can't see the data disk size increase, where the guest fail to detect it automatically.
after the step 5,
we can see the data disk increased to 20G.

Expected results:
the guest can detect data disk size increased automatically without reboot guest.

Additional info:

There are at least two bugs that described this problem in the past
https://bugzilla.redhat.com/show_bug.cgi?id=1009314
https://bugzilla.redhat.com/show_bug.cgi?id=824814

Comment 2 lijin 2017-11-28 08:51:13 UTC
Hi Vadim,

Is this issue 100%?

QE can see the resized unallocated volume after step3, and can enlarge the disk.

The only step is to press refresh button,no need to rescan neither reboot guest.

Do you mean we do not need the "refresh" step at all?

Comment 3 Vadim Rozenfeld 2017-11-28 09:13:26 UTC
(In reply to lijin from comment #2)
> Hi Vadim,
> 
> Is this issue 100%?
> 
> QE can see the resized unallocated volume after step3, and can enlarge the
> disk.
> 
> The only step is to press refresh button,no need to rescan neither reboot
> guest.
> 
> Do you mean we do not need the "refresh" step at all?

Storport miniport driver needs to notify OS that some changes have happened (it's what we already do) and then make sure that OS can recognise and handle these changes automatically. Most likely that Windows will not perform partition resizing immediately after getting such notification but it should be do it on a first write request after resizing. Try to check how it works with virtio-scsi,
just resize the disk and then copy a file to this disk, without running manual rescan first. virtio-scsi should be able to handle resize automatically, so virtio-blk should be able to operate the same way.

Comment 5 Vadim Rozenfeld 2017-12-03 22:39:01 UTC
Please give a try to build 145 https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=629923.

Thanks,
Vadim.

Comment 6 xiagao 2017-12-04 05:57:35 UTC
(In reply to Vadim Rozenfeld from comment #5)
> Please give a try to build 145
> https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=629923.
> 
> Thanks,
> Vadim.

Virtio-scsi and virtio-blk work in the same way. Resize the disk and then copy a file to this disk, after that need click "refresh" in disk management to get the resized value. 

And build 143 and 145 have the same behavior,so I don't know how to verify this bug.

Could you tell me how to reproduce in old build and how to verify in the latest build?



Detailed steps:
1) start a windows guest with virtio-blk disk(1G) and virtio-scsi disk(1G).
-drive file=my_data_disk.raw,if=none,id=data_drive,format=raw,aio=native,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=data_drive,id=blk_data \
-device virtio-scsi-pci,id=scsi1,bus=pci.0,num_queues=4 -drive file=disk111.raw,if=none,id=drive-scsi-disk1,format=raw,cache=none,aio=native,werror=stop,rerror=stop,discard=on -device scsi-hd,drive=drive-scsi-disk1,bus=scsi1.0,id=scsi-disk1

2)create volume on the two disks

3)change them to 5G
(qemu) block_resize data_drive 5G
(qemu) block_resize drive-scsi-disk1 5G

4)copy file to the two disks

5)check them in "Disk Management"

6)click "refresh" button in "Disk Management"

Results:
after step 5),their size is still 1G
after step 6),their size is 5G

Comment 7 Vadim Rozenfeld 2017-12-04 10:06:19 UTC
(In reply to xiagao from comment #6)
> (In reply to Vadim Rozenfeld from comment #5)
> > Please give a try to build 145
> > https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=629923.
> > 
> > Thanks,
> > Vadim.
> 
> Virtio-scsi and virtio-blk work in the same way. Resize the disk and then
> copy a file to this disk, after that need click "refresh" in disk management
> to get the resized value. 
> 
> And build 143 and 145 have the same behavior,so I don't know how to verify
> this bug.
> 
> Could you tell me how to reproduce in old build and how to verify in the
> latest build?
> 
> 
> 
> Detailed steps:
> 1) start a windows guest with virtio-blk disk(1G) and virtio-scsi disk(1G).
> -drive
> file=my_data_disk.raw,if=none,id=data_drive,format=raw,aio=native,cache=none,
> werror=stop,rerror=stop -device virtio-blk-pci,drive=data_drive,id=blk_data \
> -device virtio-scsi-pci,id=scsi1,bus=pci.0,num_queues=4 -drive
> file=disk111.raw,if=none,id=drive-scsi-disk1,format=raw,cache=none,
> aio=native,werror=stop,rerror=stop,discard=on -device
> scsi-hd,drive=drive-scsi-disk1,bus=scsi1.0,id=scsi-disk1
> 
> 2)create volume on the two disks
> 
> 3)change them to 5G
> (qemu) block_resize data_drive 5G
> (qemu) block_resize drive-scsi-disk1 5G
> 
> 4)copy file to the two disks
> 
> 5)check them in "Disk Management"
> 
> 6)click "refresh" button in "Disk Management"
> 
> Results:
> after step 5),their size is still 1G
> after step 6),their size is 5G

Thanks, 
I will recheck it shortly. 
What is your guest version?
Vadim.

Comment 8 xiagao 2017-12-04 10:11:17 UTC
(In reply to Vadim Rozenfeld from comment #7)
> (In reply to xiagao from comment #6)
> > (In reply to Vadim Rozenfeld from comment #5)
> > > Please give a try to build 145
> > > https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=629923.
> > > 
> > > Thanks,
> > > Vadim.
> > 
> > Virtio-scsi and virtio-blk work in the same way. Resize the disk and then
> > copy a file to this disk, after that need click "refresh" in disk management
> > to get the resized value. 
> > 
> > And build 143 and 145 have the same behavior,so I don't know how to verify
> > this bug.
> > 
> > Could you tell me how to reproduce in old build and how to verify in the
> > latest build?
> > 
> > 
> > 
> > Detailed steps:
> > 1) start a windows guest with virtio-blk disk(1G) and virtio-scsi disk(1G).
> > -drive
> > file=my_data_disk.raw,if=none,id=data_drive,format=raw,aio=native,cache=none,
> > werror=stop,rerror=stop -device virtio-blk-pci,drive=data_drive,id=blk_data \
> > -device virtio-scsi-pci,id=scsi1,bus=pci.0,num_queues=4 -drive
> > file=disk111.raw,if=none,id=drive-scsi-disk1,format=raw,cache=none,
> > aio=native,werror=stop,rerror=stop,discard=on -device
> > scsi-hd,drive=drive-scsi-disk1,bus=scsi1.0,id=scsi-disk1
> > 
> > 2)create volume on the two disks
> > 
> > 3)change them to 5G
> > (qemu) block_resize data_drive 5G
> > (qemu) block_resize drive-scsi-disk1 5G
> > 
> > 4)copy file to the two disks
> > 
> > 5)check them in "Disk Management"
> > 
> > 6)click "refresh" button in "Disk Management"
> > 
> > Results:
> > after step 5),their size is still 1G
> > after step 6),their size is 5G
> 
> Thanks, 
> I will recheck it shortly. 
> What is your guest version?
> Vadim.

I tried win2008-64 and win832.

Comment 9 Vadim Rozenfeld 2017-12-05 04:32:01 UTC
(In reply to xiagao from comment #8)
> (In reply to Vadim Rozenfeld from comment #7)
> > (In reply to xiagao from comment #6)
> > > (In reply to Vadim Rozenfeld from comment #5)
> > > > Please give a try to build 145
> > > > https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=629923.
> > > > 
> > > > Thanks,
> > > > Vadim.
> > > 
> > > Virtio-scsi and virtio-blk work in the same way. Resize the disk and then
> > > copy a file to this disk, after that need click "refresh" in disk management
> > > to get the resized value. 
> > > 
> > > And build 143 and 145 have the same behavior,so I don't know how to verify
> > > this bug.
> > > 
> > > Could you tell me how to reproduce in old build and how to verify in the
> > > latest build?
> > > 
> > > 
> > > 
> > > Detailed steps:
> > > 1) start a windows guest with virtio-blk disk(1G) and virtio-scsi disk(1G).
> > > -drive
> > > file=my_data_disk.raw,if=none,id=data_drive,format=raw,aio=native,cache=none,
> > > werror=stop,rerror=stop -device virtio-blk-pci,drive=data_drive,id=blk_data \
> > > -device virtio-scsi-pci,id=scsi1,bus=pci.0,num_queues=4 -drive
> > > file=disk111.raw,if=none,id=drive-scsi-disk1,format=raw,cache=none,
> > > aio=native,werror=stop,rerror=stop,discard=on -device
> > > scsi-hd,drive=drive-scsi-disk1,bus=scsi1.0,id=scsi-disk1
> > > 
> > > 2)create volume on the two disks
> > > 
> > > 3)change them to 5G
> > > (qemu) block_resize data_drive 5G
> > > (qemu) block_resize drive-scsi-disk1 5G
> > > 
> > > 4)copy file to the two disks
> > > 
> > > 5)check them in "Disk Management"
> > > 
> > > 6)click "refresh" button in "Disk Management"
> > > 
> > > Results:
> > > after step 5),their size is still 1G
> > > after step 6),their size is 5G
> > 
> > Thanks, 
> > I will recheck it shortly. 
> > What is your guest version?
> > Vadim.
> 
> I tried win2008-64 and win832.

This is what I see on my Win8/32 system:
I have two data disks attached just as you said:

data_drive (#block387): /home/vrozenfe/work/images/disk1.qcow2 (qcow2)
    Attached to:      /machine/peripheral/blk_data/virtio-backend
    Cache mode:       writeback, direct

drive-scsi-disk1 (#block586): /home/vrozenfe/work/images/disk2.qcow2 (qcow2)
    Attached to:      scsi-disk1
    Cache mode:       writeback, direct

I have Disk Management Dialog and command prompt (cmd.exe) running.
Now, with drivers from build 143 installed (both viostor and vioscsi):
1. I'm resizing both disks from qemu monitor. 
2. Disk Management keeps displaying the same disks' size as before
3. In command prompt console I copy a file to disk D: (virtio-blk), but nothing happens. The disk size didn't change.
4. I copy a file to disk E: (virtio-scsi), the disk size has changed automatically, without running rescan.
5. The only way to see changes on disk D: is to run rescan or refresh manually.

With drivers from build 145 installed (both viostor and vioscsi):
1. Vioscsi behaves exactly as in the previous case described above,
2. viostor behaves as viostor, which means it needs no manual restart or refresh to see the disk size changed after changing the disk size and running a copy operation on it.

While it looks like a quite small behavioural difference, the real improvement
between those two versions is that viostor drivers in build 145 know how report unit attention condition to the higher level of storage stack.

Comment 11 lijin 2017-12-18 06:35:02 UTC
Hi Vadim,

Any update about this issue?

Comment 12 Vadim Rozenfeld 2017-12-19 08:29:15 UTC
(In reply to lijin from comment #11)
> Hi Vadim,
> 
> Any update about this issue?

Hi Li Jin
I still can see the updated volume size even without manual rescan.
Trying to do more testing cycles to reproduce the problem.
However, if we started hitting any time limits, lets move this bug
to 7.6 as well.

Best regards,
Vadim.

Comment 13 lijin 2017-12-19 09:07:16 UTC
(In reply to Vadim Rozenfeld from comment #12)
> (In reply to lijin from comment #11)
> > Hi Vadim,
> > 
> > Any update about this issue?
> 
> Hi Li Jin
> I still can see the updated volume size even without manual rescan.
> Trying to do more testing cycles to reproduce the problem.
> However, if we started hitting any time limits, lets move this bug
> to 7.6 as well.
> 

Hi Vadim,

Could you check QE's test env provided in comment10? Could you reproduce it as well?
I just want to make sure there is any misunderstanding of the reproduce steps.
Thanks a lot

Comment 14 Vadim Rozenfeld 2017-12-21 02:40:39 UTC
Created attachment 1370707 [details]
how to check this feature

Hi Li Jin. 
I tried to reproduce the problem and log all the steps I did into this document,
I also added some screenshots for fun. Only one difference from my previous explanation is that this time I was using diskpart utility to initiate an access
to a disk instead of trying to copy a file.

All the best,
Vadim.

Comment 15 lijin 2017-12-21 09:38:57 UTC
Hi Vadim,

Thanks a lot for the detailed docs.

I try with the same steps with you, with BOTH virtio-win-prewhql-143 and virtio-win-prewhql-145, blk and scsci BOTH can the resized volume after "list disk".

My guest is win8.1-64, I also try on upstream qemu, got the same result.

qemu cli:
/usr/local/bin/qemu-system-x86_64 \
-M pc \
-cpu host,+x2apic,family=0xf \
-enable-kvm \
-nodefaults \
-m 4G \
-smp 4 \
-nodefconfig \
-rtc base=localtime,driftfix=slew \
-drive file=win8.1-64.raw,if=none,format=raw,cache=none,werror=stop,rerror=stop,id=drive-virtio-disk0 \
-device ide-drive,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
-device piix3-usb-uhci,id=usb \
-device usb-tablet,id=tablet0 \
-vnc 0.0.0.0:10 -vga std \
-k en-us \
-monitor stdio \
-qmp tcp:0:4444,server,nowait \
-boot menu=on \
-drive file=disk1.raw,if=none,format=raw,cache=none,aio=threads,werror=stop,rerror=stop,id=drive-virtio-disk1 \
-device virtio-blk-pci,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1 \
-device virtio-scsi-pci,id=scsi0,num_queues=4 \
-drive file=disk2.raw,if=none,format=raw,cache=none,aio=threads,werror=stop,rerror=stop,discard=on,id=drive-virtio-disk2 \
-device scsi-hd,bus=scsi0.0,drive=drive-virtio-disk2,id=virtio-disk2 \

Comment 16 Vadim Rozenfeld 2017-12-21 12:21:50 UTC
(In reply to lijin from comment #15)
> Hi Vadim,
> 
> Thanks a lot for the detailed docs.
> 
> I try with the same steps with you, with BOTH virtio-win-prewhql-143 and
> virtio-win-prewhql-145, blk and scsci BOTH can the resized volume after
> "list disk".

Hi LiJin,
just to confirm that I understand it correctly. With virtstor driver from build 143, you resize the virtio-blk attached volume, run "list disk", and it gives you 
the correct volume size. You observe exactly the same behaviour as with viostor driver from build 145, right?

Thanks,
Vadim.

Comment 17 lijin 2018-01-03 02:51:47 UTC
(In reply to Vadim Rozenfeld from comment #16)
> (In reply to lijin from comment #15)
> > Hi Vadim,
> > 
> > Thanks a lot for the detailed docs.
> > 
> > I try with the same steps with you, with BOTH virtio-win-prewhql-143 and
> > virtio-win-prewhql-145, blk and scsci BOTH can the resized volume after
> > "list disk".
> 
> Hi LiJin,
> just to confirm that I understand it correctly. With virtstor driver from
> build 143, you resize the virtio-blk attached volume, run "list disk", and
> it gives you 
> the correct volume size. You observe exactly the same behaviour as with
> viostor driver from build 145, right?

Sorry for missing this comment.
Yes, 143 behaves exactly same with build 145.

Comment 18 Vadim Rozenfeld 2018-01-03 03:05:02 UTC
(In reply to lijin from comment #17)
> (In reply to Vadim Rozenfeld from comment #16)
> > (In reply to lijin from comment #15)
> > > Hi Vadim,
> > > 
> > > Thanks a lot for the detailed docs.
> > > 
> > > I try with the same steps with you, with BOTH virtio-win-prewhql-143 and
> > > virtio-win-prewhql-145, blk and scsci BOTH can the resized volume after
> > > "list disk".
> > 
> > Hi LiJin,
> > just to confirm that I understand it correctly. With virtstor driver from
> > build 143, you resize the virtio-blk attached volume, run "list disk", and
> > it gives you 
> > the correct volume size. You observe exactly the same behaviour as with
> > viostor driver from build 145, right?
> 
> Sorry for missing this comment.
> Yes, 143 behaves exactly same with build 145.

Thanks LiJin,
Can you please specify guest version/kernel build number as well as qemu version?
Thanks,
Vadim.

Comment 19 lijin 2018-01-03 03:17:26 UTC
windows guest:
win8.1-64:
version:6.3.9600
iso:en_windows_8.1_enterprise_with_update_x64_dvd_6054382.iso
qemu-kvm-rhev-2.10.0-13.el7.x86_64
kernel-3.10.0-823.el7.x86_64
seabios-bin-1.11.0-1.el7.noarch

Comment 20 Vadim Rozenfeld 2018-01-04 08:29:02 UTC
(In reply to lijin from comment #19)
> windows guest:
> win8.1-64:
> version:6.3.9600
> iso:en_windows_8.1_enterprise_with_update_x64_dvd_6054382.iso
> qemu-kvm-rhev-2.10.0-13.el7.x86_64
> kernel-3.10.0-823.el7.x86_64
> seabios-bin-1.11.0-1.el7.noarch

Thanks a lot, Li Jin

Will it be a problem to check Win8.1 32-bit version as well?

Vadim.

Comment 21 lijin 2018-01-04 09:57:35 UTC
(In reply to Vadim Rozenfeld from comment #20)
> (In reply to lijin from comment #19)
> > windows guest:
> > win8.1-64:
> > version:6.3.9600
> > iso:en_windows_8.1_enterprise_with_update_x64_dvd_6054382.iso
> > qemu-kvm-rhev-2.10.0-13.el7.x86_64
> > kernel-3.10.0-823.el7.x86_64
> > seabios-bin-1.11.0-1.el7.noarch
> 
> Thanks a lot, Li Jin
> 
> Will it be a problem to check Win8.1 32-bit version as well?

win8.1-32 behaves same as win8.1-64.

Anything else, please let me know.

Thanks

Comment 25 Vadim Rozenfeld 2018-01-10 01:51:28 UTC
Hi Li Jin,
Can you please run update on your both 32 and 64-bit Windows 8.1 VMs and check it
it makes any difference ?

Thanks,
Vadim.

Comment 26 lijin 2018-01-11 03:57:13 UTC
(In reply to Vadim Rozenfeld from comment #25)
> Hi Li Jin,
> Can you please run update on your both 32 and 64-bit Windows 8.1 VMs and
> check it
> it makes any difference ?

I re-install a new image with latest win8.1-32 iso and do windows update after installation, then try to reproduce this issue.

I CAN reproduce it with build 143 now.
And with build 145, this issue is gone. 

I think we can change it to verified.

Thanks very much, Vadim.

Comment 27 Vadim Rozenfeld 2018-01-11 04:11:11 UTC
(In reply to lijin from comment #26)
> (In reply to Vadim Rozenfeld from comment #25)
> > Hi Li Jin,
> > Can you please run update on your both 32 and 64-bit Windows 8.1 VMs and
> > check it
> > it makes any difference ?
> 
> I re-install a new image with latest win8.1-32 iso and do windows update
> after installation, then try to reproduce this issue.
> 
> I CAN reproduce it with build 143 now.
> And with build 145, this issue is gone. 
> 
> I think we can change it to verified.
> 
> Thanks very much, Vadim.

Thanks a lot Li Jin.
I truly appreciate your effort.

Best regards,
Vadim.

Comment 29 errata-xmlrpc 2018-04-10 06:33:41 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.

https://access.redhat.com/errata/RHBA-2018:0657

Comment 30 lijin 2018-08-06 05:48:46 UTC
Hi Vadim,

I'm testing blk cases on win2008-64 recently and found that online block_resize does not work well on it.

The win2008-64 version I used is Build 6002, should be the latest. And I also install windows update, but it does not help. I downgrade to build 145, both scsi and blk not work.

I still need to do "refresh" step to see disk is increased.

Our QE found it doesn't work on win7-32 as well. So I'd like to confirm with you that is it normal? Does this feature only work for newer windows guests?

Comment 31 Vadim Rozenfeld 2018-08-06 23:03:41 UTC
(In reply to lijin from comment #30)
> Hi Vadim,
> 
> I'm testing blk cases on win2008-64 recently and found that online
> block_resize does not work well on it.
> 
> The win2008-64 version I used is Build 6002, should be the latest. And I
> also install windows update, but it does not help. I downgrade to build 145,
> both scsi and blk not work.
> 
> I still need to do "refresh" step to see disk is increased.
> 
> Our QE found it doesn't work on win7-32 as well. So I'd like to confirm with
> you that is it normal? Does this feature only work for newer windows guests?

You should be able to see changes when reading from or writing to the resized volume. Here is how it works - the driver triggers the event of resizing the volume, but cannot notify the class driver about this, until some other component tries to run read or write IO request. Then driver can complete this request with status, saying that media geometry has been changed.

Comment 32 lijin 2018-08-07 02:28:01 UTC
(In reply to Vadim Rozenfeld from comment #31)
> (In reply to lijin from comment #30)
> > Hi Vadim,
> > 
> > I'm testing blk cases on win2008-64 recently and found that online
> > block_resize does not work well on it.
> > 
> > The win2008-64 version I used is Build 6002, should be the latest. And I
> > also install windows update, but it does not help. I downgrade to build 145,
> > both scsi and blk not work.
> > 
> > I still need to do "refresh" step to see disk is increased.
> > 
> > Our QE found it doesn't work on win7-32 as well. So I'd like to confirm with
> > you that is it normal? Does this feature only work for newer windows guests?
> 
> You should be able to see changes when reading from or writing to the
> resized volume. Here is how it works - the driver triggers the event of
> resizing the volume, but cannot notify the class driver about this, until
> some other component tries to run read or write IO request. Then driver can
> complete this request with status, saying that media geometry has been
> changed.

Here is our testing result:
win2012R2 and win10-32 work as expected;
win2008-64 and win7-32 still need refresh to see resized volume.

Should QE file a new bug for this issue?

Comment 33 Vadim Rozenfeld 2018-08-07 02:49:46 UTC
(In reply to lijin from comment #32)
> (In reply to Vadim Rozenfeld from comment #31)
> > (In reply to lijin from comment #30)
> > > Hi Vadim,
> > > 
> > > I'm testing blk cases on win2008-64 recently and found that online
> > > block_resize does not work well on it.
> > > 
> > > The win2008-64 version I used is Build 6002, should be the latest. And I
> > > also install windows update, but it does not help. I downgrade to build 145,
> > > both scsi and blk not work.
> > > 
> > > I still need to do "refresh" step to see disk is increased.
> > > 
> > > Our QE found it doesn't work on win7-32 as well. So I'd like to confirm with
> > > you that is it normal? Does this feature only work for newer windows guests?
> > 
> > You should be able to see changes when reading from or writing to the
> > resized volume. Here is how it works - the driver triggers the event of
> > resizing the volume, but cannot notify the class driver about this, until
> > some other component tries to run read or write IO request. Then driver can
> > complete this request with status, saying that media geometry has been
> > changed.
> 
> Here is our testing result:
> win2012R2 and win10-32 work as expected;
> win2008-64 and win7-32 still need refresh to see resized volume.
> 
> Should QE file a new bug for this issue?

Hi Li Jin.
Let me check it firs. Just to be sure that we are on the same page, could you please confirm that both win2008-64 and win7-32 VMs have the latest Windows Updates installed?

Thanks,
Vadim.