From: Michael Mey Subject: live migration with DRBD devices Date: Tue, 25 Oct 2005 14:48:50 +0200 Message-ID: <200510251448.55399.michael.mey@to.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0561466670==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0561466670== Content-Type: multipart/signed; boundary="nextPart1417097.JzUSenZnzX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1417097.JzUSenZnzX Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I want to do live migration of domains using DRBD block devices for=20 synchronisation between the two Xen hosts with Xen 2.0.7.=20 I've written a script ( block-drbd ) which binds / unbinds DRBD devices for= =20 specific domains (with DRBD, only one host can write on a drbd device at th= e=20 same time). This script sets the current host as master (bind) or secondary= =20 (unbind) in a DRBD "Netword-RAID" Bringing up a domain works fine. But when I try to migrate it ( live with -= l=20 flag as well as non-live) I get an error from xfrd.=20 The xfrd.log says: =3D=3D> xfrd.log <=3D=3D 2508 [INF] XFRD> Accepted connection from 127.0.0.1:1327 on 2 2790 [INF] XFRD> Xfr service for 127.0.0.1:1327 [DEBUG] Conn_init> flags=3D1 [DEBUG] Conn_init> write stream... [DEBUG] stream_init>mode=3Dw flags=3D1 compress=3D0 [DEBUG] stream_init> unbuffer... [DEBUG] stream_init< err=3D0 [DEBUG] Conn_init> read stream... [DEBUG] stream_init>mode=3Dr flags=3D1 compress=3D0 [DEBUG] stream_init> unbuffer... [DEBUG] stream_init< err=3D0 [DEBUG] Conn_sxpr> (xfr.hello 1 0)[DEBUG] Conn_sxpr< err=3D0 [DEBUG] Conn_sxpr> (xfr.migrate 8 "(domain (id 8) (name Xen0) (memory 511) (maxmem 512) (state= =20 =2Db---) (cpu 0) (cpu_time 7.548731537) (up_time 1953.19617701) (start_time= =20 1130242370.96) (console (status listening) (id 12) (domain 8) (local_port 1= 2)=20 (remote_port 1) (console_port 9608)) (devices (vif (idx 0) (vif 0) (mac=20 aa:00:00:00:42:00) (vifname vif8.0) (bridge xen-br0) (evtchn 14 4) (index 0= ))=20 (vbd (idx 0) (vdev 769) (device 37632) (mode w) (dev hda1) (uname drbd:drbd= 0)=20 (node /dev/drbd0) (index 0)) (vbd (idx 1) (vdev 770) (device 37633) (mode w= )=20 (dev hda2) (uname drbd:drbd1) (node /dev/drbd1) (index 1))) (config (vm (na= me=20 Xen0) (memory 512) (image (linux (kernel /boot/vmlinuz-2.6.11.10-xenU) (roo= t=20 '/dev/hda1 ro'))) (device (vbd (uname drbd:drbd0) (dev hda1) (mode w)))=20 (device (vbd (uname drbd:drbd1) (dev hda2) (mode w))) (device (vif (mac=20 aa:00:00:00:42:00) (bridge xen-br0))))))" testpc-023 8002 1 0)[DEBUG]=20 Conn_sxpr< err=3D0 [DEBUG] Conn_connect> addr=3D192.168.111.23:8002 [DEBUG] Conn_init> flags=3D1 [DEBUG] Conn_init> write stream... [DEBUG] stream_init>mode=3Dw flags=3D1 compress=3D0 [DEBUG] stream_init> unbuffer... [DEBUG] stream_init< err=3D0 [DEBUG] Conn_init> read stream... [DEBUG] stream_init>mode=3Dr flags=3D1 compress=3D0 [DEBUG] stream_init> unbuffer... [DEBUG] stream_init< err=3D0 [DEBUG] Conn_sxpr> (xfr.err 0)[DEBUG] Conn_sxpr< err=3D0 [1130244324.172538] xc_linux_save start 8 xc_linux_save start 8 [1130244324.174077] Saving memory pages: iter 1 0% Saving memory pages: iter 1 0%Error when writing to state file (5) Error when writing to state file (5) 2790 [WRN] XFRD> Transfer errors: 2790 [WRN] XFRD> state=3DXFR_STATE err=3D1 2790 [INF] XFRD> Xfr service err=3D1 Does anybody have an idea? I'd appreciate. Cheers, Mike --nextPart1417097.JzUSenZnzX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDXim33rj8BeD5OvMRAueUAJ4lYofwWRA7CbQBTAC73ka540NHyQCg7Klb rZGU7n7vYGxRSvQUOGzrMoE= =iQOU -----END PGP SIGNATURE----- --nextPart1417097.JzUSenZnzX-- --===============0561466670== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0561466670==--