[Pkg-libvirt-maintainers] Bug#551660: Bug#551660: libvirt-bin: virsh fails to add disk to domain, says it succeeded

Guido Günther agx at sigxcpu.org
Mon Oct 19 20:18:46 UTC 2009


On Mon, Oct 19, 2009 at 09:49:28PM +0200, Uli Martens wrote:
> Package: libvirt-bin
> Version: 0.7.1-2
> Severity: normal
> 
> Hi Guido,
> 
> I'm the guy from the debconf who told you about the problem hot-adding disks to
> kvm domains with libvirt.
> 
> First, thanks again for looking into the bug there, the first half of it seems
> to be fixed already. [ftr: trying to add a disk to a kvm domain failed because
> of changed kvm command line syntax, was fixed in 0.6.5-3 by
> 0005-Fix-PCI-device-hotplug-unplug-with-newer-QEMU.patch]
> 
> Unfortunatelly, this still seems to only cold-add the disk to the
> domain-specification internal to libvirt, but not to the running domain.
> 
> | virsh # attach-disk brann /dev/sde vdg
> | Disk attached successfully
> | 
> | virsh # dumpxml brann
> [..]
> |     <disk type='block' device='disk'>
> |       <driver name='phy'/>
> |       <source dev='/dev/sde'/>
> |       <target dev='vdg' bus='virtio'/>
> |     </disk>
> [..]
> 
> The domain itself seems not to notice at all. dmesg shows no changes,
> /proc/partitions is unchanged. /var/log/libvirt/qemu/brann.log is unchanged, too.
Did you load the modules acpiphp and pci_hotplug in the guest? Disk
hotplug is acutally PCI hotplug in kvm.
 -- Guido





More information about the Pkg-libvirt-maintainers mailing list