CEPH filesystem development
 help / color / mirror / Atom feed
From: Smart Weblications GmbH - Florian Wiessner <f.wiessner@smart-weblications.de>
To: chb@muc.de
Cc: ceph-devel@vger.kernel.org
Subject: Re: libvirtd + rbd - stale kvm after migrate
Date: Fri, 09 Dec 2011 10:17:08 +0100	[thread overview]
Message-ID: <4EE1D214.8030708@smart-weblications.de> (raw)
In-Reply-To: <CAO47_-98p+8cB+jatjJiD4dsAvxeEYO2rBTT6Z7DQV6w64tquQ@mail.gmail.com>

Hi Christian,

Am 08.12.2011 23:49, schrieb Christian Brunner:
> 
> live migration with rbd images usually works fine. A few recommendations:
> 
> - You should not map the image on the host, while using it in a VM
> with the qemu driver.
> - For testing I would remove the ISO-Image from your VM. (Not sure if
> that matters).
> 
> Also I'm not using cephx authentication. I don't know if the
> credentials are available on the second host, as you don't specifiy
> them in the libvirt.xml.

i now recreated cephfs without authx support, and added host-decription in the
VM xml file.

anyway the VM still does not seem to be able to do disk-io when migrated...

the iso-image should not be a problem, as it is in /ceph which is mounted on
every node... but i gave it a try and disabled the cdrom in the xml file, still
no success...

i also found out that using hostnames defined in /etc/hosts won't work. i still
got no clue how to figure out what is going wrong... when i start the VM
directly on the host i want the VM to migrate to, the VM behaves normal.

<domain type='kvm'>
  <name>ns1</name>
  <uuid>350e51e8-2fe5-274f-76c4-58b237bc0fba</uuid>
  <memory>1048576</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/bin/qemu-system-x86_64</emulator>
    <disk type='network' device='disk'>
      <source protocol='rbd' name='rbd/ns1'>
        <host name='xxx.xxx.xxx.4' port='6789'/>
        <host name='xxx.xxx.xxx.5' port='6789'/>
        <host name='xxx.xxx.xxx.6' port='6789'/>
        <host name='xxx.xxx.xxx.7' port='6789'/>
      </source>
      <target dev='vda' bus='virtio'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:d2:ec:15'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='no'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>




-- 

Mit freundlichen Grüßen,

Florian Wiessner

Smart Weblications GmbH
Martinsberger Str. 1
D-95119 Naila

fon.: +49 9282 9638 200
fax.: +49 9282 9638 205
24/7: +49 900 144 000 00 - 0,99 EUR/Min*
http://www.smart-weblications.de

--
Sitz der Gesellschaft: Naila
Geschäftsführer: Florian Wiessner
HRB-Nr.: HRB 3840 Amtsgericht Hof
*aus dem dt. Festnetz, ggf. abweichende Preise aus dem Mobilfunknetz
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-12-09  9:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 14:47 libvirtd + rbd - stale kvm after migrate Smart Weblications GmbH - Florian Wiessner
2011-12-08 22:49 ` Christian Brunner
2011-12-09  9:17   ` Smart Weblications GmbH - Florian Wiessner [this message]
2011-12-09 10:03     ` Smart Weblications GmbH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EE1D214.8030708@smart-weblications.de \
    --to=f.wiessner@smart-weblications.de \
    --cc=ceph-devel@vger.kernel.org \
    --cc=chb@muc.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox