Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 692961 - Windows PV driver does not work with software raid
Windows PV driver does not work with software raid
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xenpv-win (Show other bugs)
5.6
x86_64 Unspecified
urgent Severity urgent
: rc
: ---
Assigned To: Paolo Bonzini
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-01 15:41 EDT by Richard Ryder
Modified: 2012-02-21 00:35 EST (History)
8 users (show)

See Also:
Fixed In Version: xenpv-win-1.3.11-1.el5
Doc Type: Bug Fix
Doc Text:
Cause - Paravirtualized Xen drives did not handle properly the MODE SENSE command. Consequence - Windows failed to initialize a mirror or striped dynamic volume that included a paravirtualized Xen drive, leaving the volume in failed state. Fix - The MODE SENSE command is now implemented. Result - Dynamic volumes work with paravirtualized Xen drive.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 00:35:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to fix the bug (10.29 KB, patch)
2011-04-26 10:15 EDT, Paolo Bonzini
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0195 normal SHIPPED_LIVE xenpv-win bug fix update 2012-02-20 09:54:11 EST

  None (edit)
Description Richard Ryder 2011-04-01 15:41:08 EDT
Description of problem:

Windows PV driver does not work with software raid

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

How reproducible:
Always

Steps to Reproduce:

- Launch a Windows 2008 R2 AMI.

- Connect 4 EBS volumes of the same size

create a text file c:\dp.txt and populate it with:

select disk 1
clean
convert dynamic
select disk 2
clean
convert dynamic
select disk 3
clean
convert dynamic
select disk 4
clean
convert dynamic
create volume raid disk=1,2,3,4
list volume

Then execute:

diskpart /s c:\dp.txt


Actual results:

You'll see that the volume is in a failed state immediately.

  

Expected results:

Volume works as expected


Additional info:
Comment 2 Paolo Bonzini 2011-04-04 03:47:55 EDT
What version of the PV drivers?  Can this be reproduced outside EC2?
Comment 3 Jacob Hunt 2011-04-06 18:59:26 EDT
It has been tested with version 1.2 and 1.3.4 of the Redhat PV driver. Both exhibit the same problem.
Comment 12 Paolo Bonzini 2011-04-26 10:15:51 EDT
Created attachment 494914 [details]
patch to fix the bug
Comment 15 Paolo Bonzini 2011-04-27 02:59:18 EDT
It is the same as comment 0, except that you add four xvdNN volumes.  Then you follow the diskpart commands in comment 0.  You can use the diskpart command line instead of a file, that will make it easier to follow what's happening.

At the end of the process, the RAID volume will show as "Resynching" in My Computer > Manage > Storage Management when the bug is fixed, as "Failed Redundancy" without the fix.
Comment 21 Qixiang Wan 2011-12-08 01:18:38 EST
Verified with xenpv-win-1.3.12.3.


test steps:

Boot up a Win2008R2 guest, and attach 4 disks with "tap:aio:/path/to/disk,xvd*,w", then create the software raid in guest:

[1] with the xenpv-win-1.3.4-9, the volume is in a failed state immediately after diskpart.

[2] with xenpv-win-1.3.12-3, the software raid could be built successfully, after the rebuild of RAID, all the volumes and disks show as "Healthy".

here is the log:

----------------

C:\Users\Administrator>diskpart /s c:/dp.txt

Microsoft DiskPart version 6.1.7100
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: WIN-B2PS5JFKV25

Disk 1 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to dynamic format.

Disk 2 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to dynamic format.

Disk 3 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to dynamic format.

Disk 4 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to dynamic format.

DiskPart successfully created the volume.

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     C   OS_Install   NTFS   Partition     14 GB  Healthy    System
* Volume 1                      RAW    RAID-5      6140 MB  Rebuild

C:\Users\Administrator>diskpart

Microsoft DiskPart version 6.1.7100
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: WIN-B2PS5JFKV25

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online           15 GB   358 MB
  Disk 1    Online         2048 MB      0 B   *
  Disk 2    Online         2048 MB      0 B   *
  Disk 3    Online         2048 MB      0 B   *
  Disk 4    Online         2048 MB      0 B   *

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0                      RAW    RAID-5      6140 MB  Healthy
  Volume 1     C   OS_Install   NTFS   Partition     14 GB  Healthy    System
Comment 22 Paolo Bonzini 2012-01-16 04:09:19 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause - Paravirtualized Xen drives did not handle properly the MODE SENSE command.

Consequence - Windows failed to initialize a mirror or striped dynamic volume that included a paravirtualized Xen drive, leaving the volume in failed state.

Fix - The MODE SENSE command is now implemented.

Result - Dynamic volumes work with paravirtualized Xen drive.
Comment 23 errata-xmlrpc 2012-02-21 00:35:20 EST
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-0195.html

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