Bug 692961 - Windows PV driver does not work with software raid
Summary: Windows PV driver does not work with software raid
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xenpv-win
Version: 5.6
Hardware: x86_64
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-01 19:41 UTC by Richard Ryder
Modified: 2018-11-14 13:24 UTC (History)
8 users (show)

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.
Clone Of:
Environment:
Last Closed: 2012-02-21 05:35:20 UTC
Target Upstream Version:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0195 0 normal SHIPPED_LIVE xenpv-win bug fix update 2012-02-20 14:54:11 UTC

Description Richard Ryder 2011-04-01 19:41:08 UTC
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 07:47:55 UTC
What version of the PV drivers?  Can this be reproduced outside EC2?

Comment 3 Jacob Hunt 2011-04-06 22:59:26 UTC
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 14:15:51 UTC
Created attachment 494914 [details]
patch to fix the bug

Comment 15 Paolo Bonzini 2011-04-27 06:59:18 UTC
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 06:18:38 UTC
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 09:09:19 UTC
    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 05:35:20 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-2012-0195.html


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