Bug 518509
Summary: | Data loss/corruption when removing disks from Windows guests | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Paolo Bonzini <pbonzini> | ||||
Component: | xenpv-win | Assignee: | Paolo Bonzini <pbonzini> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.3 | CC: | azarembo, clalance, james.brown, jmh, jskrabal, kxiong, plyons, xen-maint | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 501027 | Environment: | |||||
Last Closed: | 2009-11-16 13:44:46 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 501027, 518405 | ||||||
Attachments: |
|
Description
Paolo Bonzini
2009-08-20 16:24:37 UTC
Created attachment 362118 [details]
mark PV drives as removable
For now we'll be marking Xen PV drives as removable. This affects Windows in several ways:
1) every user will be able to format the drive
2) only the first partition of the drive will be accessible
3) the context menu for the drive in "My Computer" will show an Eject menu
item. (At least in Vista and 2008 Server; the details may vary in XP and 2003
Server).
The workaround, then, is to explicitly eject the drive (and wait for Windows to
unmount it, which may take 10-15 seconds) before detaching the block device
from dom0.
I'm moving this bug into POST, seeking a better solution that does not require domU intervention can be done in another bug.
Fixed for real in 1.0.91-1. 1.Install win2003/32 guest 2.Install xenpv-win driver 3.Run dd if=/dev/zero of=disk1.img bs=1M count=4096 4.Run xm block-attach win03_32 tap:aio:/root/disk1.img /dev/hdb w 5.Format the new attached disk 6.Create a notepad write some text then save it 7.Run xm block-detach win03_32 /dev/hdb 8.Run xm block-attach win03_32 tap:aio:/root/disk1.img /dev/hdb w 9.Verify the saved file is still there. 10.Repeat the step6--step9 several times,the notepad isn't lost. Verification is passed. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1583.html |