Ok,

I can reproduce it:

mount a drive as D:
open a cmd.exe
cd  D:\

now unplug.

the cmd.exe will block the acpi unplug, I have an explicit error message in 
windows event viewer:

"cmd.exe stopped the removal or ejection for the device...."

I don't think it's possible to force removal, as device_del wait for the ack of 
acpi unplug from guest.
I'll try to do a drive_add if this occur, maybe it'll give us access again to 
drive.






----- Mail original -----

De: "Alexandre DERUMIER" <aderum...@odiso.com> 
À: "Martin Maurer" <mar...@proxmox.com> 
Cc: pve-devel@pve.proxmox.com 
Envoyé: Mardi 19 Février 2013 15:20:04 
Objet: Re: [pve-devel] activate hotplug by default ? 

to be more exact 

>>1) drive_del (drive removal from controller = eject from windows) 
remove the block part, "info block" should show device removed 

>>2) device_del (remove the controller) 
"info pci" should see controller removed. 


I don't wait between 1) and 2), so maybe the bug is here. 

I'll investigate this afternoon. 


----- Mail original ----- 

De: "Alexandre DERUMIER" <aderum...@odiso.com> 
À: "Martin Maurer" <mar...@proxmox.com> 
Cc: pve-devel@pve.proxmox.com 
Envoyé: Mardi 19 Février 2013 14:23:14 
Objet: Re: [pve-devel] activate hotplug by default ? 

Hi Martin, 

The unplug works in 2 parts : 

1) drive_del (drive removal from controller = eject from windows) 
2) device_del (remove the controller) 

they are async, and I check the device list after removal a loop for 5 seconds. 


Can you post a "info pci" result from monitor after 1min by example, to see if 
the drive is not remove too late. 

What was the usage of the disk you remove ? (heavy read/write access ?) 


I'll redo test 

----- Mail original ----- 

De: "Martin Maurer" <mar...@proxmox.com> 
À: pve-devel@pve.proxmox.com 
Envoyé: Mardi 19 Février 2013 13:26:16 
Objet: Re: [pve-devel] activate hotplug by default ? 

> -----Original Message----- 
> From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- 
> boun...@pve.proxmox.com] On Behalf Of Alexandre DERUMIER 
> Sent: Dienstag, 19. Februar 2013 06:26 
> To: pve-devel@pve.proxmox.com 
> Subject: [pve-devel] activate hotplug by default ? 
> 
> Hi, 
> 
> hotplug code is pretty stable (I'm using it since more 1 year), 
> 
> Maybe is it time to activate it by default ? 
> 
> For windows (xp,w7,w8,2003,2008,2012) it's working out of the box. 

As soon as I remove (hot-unplug) now a disk (e.g. from a win2008r2), I see the 
following error on the gui (after timeout): 

"error hot-unplug virtio2 at /usr/share/perl5/PVE/API2/Qemu.pm line 659. (500)" 

the monitor shows the disk as removed, the config is still with the disk and 
the windows box is on trouble (still shows the disk, but hang and display I/O 
device errors) 

It works, if I "eject" the disk inside windows before I remove it. 

As most user will just click remove (without eject it inside win), we will need 
to fix the problem and/or improve the user experience here. 

Any idea? 

Martin 





_______________________________________________ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to