Status: New
Owner: ----

New issue 263 by [email protected]: online aka hot disk addition and removal with qemu/kvm
http://code.google.com/p/ganeti/issues/detail?id=263

What software version are you running? Please provide the output of "gnt-
cluster --version" and "gnt-cluster version".
 # gnt-cluster --version
gnt-cluster (ganeti v2.6.0) 2.6.0
# gnt-cluster version
Software version: 2.6.0
Internode protocol: 2060000
Configuration format: 2060000
OS api version: 20
Export interface: 0

What distribution are you using?
# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

qemu/kvm supports pci hotplug and therefore hot addition/removal of disks:

testvm:~ # modprobe acpiphp

host:~ # gnt-instance modify --disk add:size=10G testvm.loc
# symlinks are not createt by modify --disk add
host:~ # gnt-instance activate-disks testvm.loc
host:~ # /usr/bin/socat STDIO,raw,echo=0,escape=0x1d UNIX-CONNECT:/var/run/ganeti/kvm-hypervisor/ctrl/testvm.loc.monitor (qemu) pci_add auto storage file=/var/run/ganeti/instance-disks/testvm.loc_1,format=raw,if=virtio,cache=none
OK domain 0, bus 0, slot 6, function 0

testvm:~ # dmesg
...
[ 6646.061191] pci 0000:00:06.0: no hotplug settings from platform
[ 6646.061195] pci 0000:00:06.0: using default PCI settings
[ 6646.064729] virtio-pci 0000:00:06.0: enabling device (0000 -> 0003)
[ 6646.069645] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
[ 6646.069656] virtio-pci 0000:00:06.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, high) -> IRQ 11
[ 6646.069720] virtio-pci 0000:00:06.0: setting latency timer to 64
[ 6646.070083] virtio-pci 0000:00:06.0: irq 45 for MSI/MSI-X
[ 6646.070115] virtio-pci 0000:00:06.0: irq 46 for MSI/MSI-X
[ 6646.073714]  vdb: unknown partition table

it would be a nice feature if ganeti can handle addition for me.

TIA Sascha.

Reply via email to