[pve-devel] [PATCH] Fix/cleanup disk hotplug
Alexandre DERUMIER
aderumier at odiso.com
Thu Oct 13 08:18:42 CEST 2011
oh, ok.
no, for the moment it will try to add the drive again, but will fail because drive already exist.
kvmtest:/# qm set 100 -virtio1 volume=local:100/vm-100-disk-2.raw,media=disk,cache=none,format=raw,backup=no,aio=native
adding drive failed: Duplicate ID 'drive-virtio1' for drive
Same if you try to change a parameter like format,aio,cache of an running disk.
So I can add a check, if a previous disk config exist, then remove and add it.
Also I think to add some security on boot disk (we don't want to hot-remove it)
What do you think about it?
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Cc: pve-devel at pve.proxmox.com
Envoyé: Jeudi 13 Octobre 2011 07:59:37
Objet: RE: [pve-devel] [PATCH] Fix/cleanup disk hotplug
For example the following command adds a 4GB drive
# qm set 100 -virtio 4
I can now issues that command again:
# qm set 100 -virtio 4
so this marks the old drive unused, and creates a new image.
- Dietmar
> -----Original Message-----
> From: Alexandre DERUMIER [mailto:aderumier at odiso.com]
> Sent: Donnerstag, 13. Oktober 2011 07:53
> To: Dietmar Maurer
> Cc: pve-devel at pve.proxmox.com
> Subject: Re: [pve-devel] [PATCH] Fix/cleanup disk hotplug
>
> What do you mean by change a drive? (pve-manager side ?) Change parameters
> of a running drive ? (like cache/image format parameters by exemple ?)
>
>
> ----- Mail original -----
>
> De: "Dietmar Maurer" <dietmar at proxmox.com>
> À: "Derumier Alexandre" <aderumier at odiso.com>, pve-
> devel at pve.proxmox.com
> Envoyé: Jeudi 13 Octobre 2011 07:33:23
> Objet: RE: [pve-devel] [PATCH] Fix/cleanup disk hotplug
>
> I can see that your patches can handle add/delete, but what happens when you
> change a drive - does that trigger delete followed by add?
>
> > -----Original Message-----
> > From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> > bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre
> > Sent: Mittwoch, 12. Oktober 2011 12:16
> > To: pve-devel at pve.proxmox.com
> > Subject: [pve-devel] [PATCH] Fix/cleanup disk hotplug
> >
> > - pass $conf to create_disks sub
> > - add some checks on results of
> > "drive_del","drive_add","device_del","device_add"
> > - replace "sleep 2" by iterative sub vm_waitfordevicecleanup
>
>
>
>
> --
>
> --
>
>
>
>
>
> Alexandre Derumier
> Ingénieur système
> e-mail : aderumier at odiso.com
> Tél : +33 (0)3 20 68 88 90
> Fax : +33 (0)3 20 68 90 81
> 45 Bvd du Général Leclerc
> 59100 ROUBAIX - FRANCE
>
>
>
>
>
>
>
>
>
>
>
>
--
--
Alexandre Derumier
Ingénieur système
e-mail : aderumier at odiso.com
Tél : +33 (0)3 20 68 88 90
Fax : +33 (0)3 20 68 90 81
45 Bvd du Général Leclerc
59100 ROUBAIX - FRANCE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aderumier.vcf
Type: text/x-vcard
Size: 183 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20111013/d4a9a65c/attachment.vcf>
More information about the pve-devel
mailing list