From: =?UTF-8?B?5byg6ZOt5ZiJ?= Subject: Remus stopped with full protection Date: Tue, 19 Jan 2010 15:57:16 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0477239464==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , 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 --===============0477239464== Content-Type: multipart/alternative; boundary=001636e1e82e82f832047d7fd11e --001636e1e82e82f832047d7fd11e Content-Type: text/plain; charset=ISO-8859-1 Remus stopped with full protection. Hi everyone: I am trying to deploy Remus on two servers following the instruction on the official website http://dsg.cs.ubc.ca/remus/doc.html. I've succeeded runnig Remus using "remus - -no-net myvm mybackuphost". I can see a continual stream of messages on the primary host and I can do failover even pulling the power plug using the shared storage DRBD. The problem occurs when I want to step further and try to add disk replication and network buffering as the official documentation said. I let each of the physical hosts has an identical copy of the disk image available at the same path like /dev/vgxen/hvmsnap . Then,I create the hvm and do the remus without "--no-net": [root@server2 img]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 2046 8 r----- 14254.5 Rhel5-hvm1 1 512 1 r----- 0.6 [root@server1 img]# remus 1 server2 qemu logdirty mode: enable Saving memory pages: iter 1 0%ERROR Internal error: Error when writing to state file (4a) (errno 104) Save exit rc=1 qemu logdirty mode: disable then the program stops. The error is located at line1361 xc_domain_save.c. The errno 104 standard for "connection reset by peers". I'm not sure whether there there are some mistake about the network socket. I've been stunked by this for two weeks. Do I miss something or could anybody tell what I should do next. Thanks for any feedback and suggestion! Following are some additional infomation: I have updated xen-unstable to the lastest tip, so it includes patches against Remus like 'IMQ for linux','control tool', as well as 'Patch * of 2' deliveryed on 02 Dec. Some details about my enviroment: Two homogeneous servers each with 4 GB of memory and 160 GB of hard disk. Rhel5.3 x86_32 with kernel 2.6.18.8 compile against xen-unstable. I have this xen HVM: 1 import os, re 2 arch = os.uname()[4] 3 if re.search('64', arch): 4 arch_libdir = 'lib64' 5 else: 6 arch_libdir = 'lib' 7 kernel = '/usr/lib/xen/boot/hvmloader' 8 builder = 'hvm' 9 memory = '512' 10 disk = [ 'tap:remus:server1:9000|aio:/dev/vgxen/hvmsnap,hda,w'] 11 #disk = [ 'tap:aio:/home/ninja/img/hvm.img,hda,w','file:/home/ninja/img/CentOS-5.3- i386-bin-DVD.iso,hdc:cdrom,r'] 12 #disk = [ 'tap:aio:/home/ninja/img/hvm.img,hda,w','file:/var/ftp/pub/rhel-server-5. 3-i386.iso,hdc:cdrom,r'] 13 #disk = [ 'phy:/dev/vgxen/hvm,hda,w','file:/var/ftp/pub/rhel-server-5.3-i386.iso,hd c:cdrom,r'] 14 #disk = [ 'tap:aio:/home/ninja/img/hvm.img,hda,w','file:/var/ftp/pub/rhel-server-5. 3-i386-dvd.iso,hdc:cdrom,r'] 15 vif = ['type=ioemu, mac=00:1c:3e:17:22:13'] 16 #boot = 'dc' 17 boot = 'c' 18 name = 'Rhel5-hvm1' 19 acpi = 1 20 apic = 1 21 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' 22 vnc=1 23 vncdisplay=2 24 sdl=0 25 opengl=1 26 vnclisten="0.0.0.0" 27 vncpasswd='' 28 serial='pty' disk = [ 'tap:remus:server1:9000|aio:/dev/vgxen/hvmsnap,hda,w'] hvmsnap is a lvm snapshots using as the hvm disk path. location of the error code: 1351 if ( pagetype != 0 ) 1352 { 1353 /* If the page is not a normal data page, write out any 1354 run of pages we may have previously acumulated */ 1355 if ( run ) 1356 { 1357 if ( ratewrite(io_fd, live, 1358 (char*)region_base+(PAGE_SIZE*(j-run)), 1359 PAGE_SIZE*run) != PAGE_SIZE*run ) 1360 { 1361 ERROR("Error when writing to state file (4a)" (here) 1362 " (errno %d)", errno); 1363 goto out; 1364 } 1365 run = 0; 1366 } 1367 } some other operation records: I also have tried using paravirtualized virtual machine as GuestOS, yet it is still failed with the same error. -- -- Best Regards Minjia Zhang Email:zhangninja@gmail.com --001636e1e82e82f832047d7fd11e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Remus stopped with full protection.
Hi everyone:
<= br>
I am trying to deploy Remus on two servers following the inst= ruction on the official=A0

website http://dsg.cs.ubc.ca/remus/doc.html. I= 've succeeded runnig Remus using "remus -

-no-net myvm mybackuphost". I can see a continual = stream of messages on the primary host=A0

and I ca= n do failover even pulling the power plug using the shared storage DRBD.=A0=

The problem occurs when I want to step further and try = to add disk replication and=A0

network buffering a= s the official documentation said.

I let=A0each of= the physical hosts has an identical copy of the disk image available at th= e same path like=A0/dev/vgxen/hvmsnap=A0.=A0

Then,I create the hvm and do the remus without "--= no-net":
[root@server2 img]# xm list
Name =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ID = =A0 Mem VCPUs =A0 =A0 =A0State =A0 Time(s)
Domain-0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 0 =A02046 =A0 =A0 8 =A0 =A0 r----- =A014254.5
Rhel5-h= vm1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 = =A0 512 =A0 =A0 1 =A0 =A0 r----- =A0 =A0 =A00.6
[root@server1 img= ]# remus 1 server2
qemu logdirty mode: enable
Saving memory pages: iter 1 =A0 0= %ERROR Internal error: Error when writing to state file=A0
(4a) (= errno 104)
Save exit rc=3D1
qemu logdirty mode: disable=
then the program stops.

The error is located = at line1361=A0xc_domain_save.c. The errno 104 standard for "connection= reset by peers".
I'm not sure whether there there are s= ome mistake about the network socket.

I've been stunked by this for two weeks.=A0Do I mis= s something or=A0could anybody tell what I should do next.=A0=A0
=
Thanks for any feedback and suggestion!

=

Following are some additional infomation:

I have updated xen-unstable to the lastest tip, so it includes patch= es against Remus=A0

like 'IMQ for linux',&= #39;control tool', as well as 'Patch * of 2' deliveryed on 02 D= ec.


Some details about my enviroment:
<= div>Two homogeneous servers each with 4 GB of memory and 160 GB of hard dis= k.=A0
Rhel5.3 x86_32 with kernel 2.6.18.8 compile against xen-uns= table.=A0

I have this xen HVM:
=A0=A01 import os, re
=A0=A02 arch =3D os.uname()[4]
=A0=A03 if re.search('= 64', arch):
=A0=A04 =A0 =A0 arch_libdir =3D 'lib64'
=A0=A05 else:
=A0=A06 =A0 =A0 arch_libdir =3D 'lib'
=A0=A07 kernel= =3D '/usr/lib/xen/boot/hvmloader'
=A0=A08 builder =3D &#= 39;hvm'
=A0=A09 memory =3D '512'
=A010 disk= =3D [ 'tap:remus:server1:9000|aio:/dev/vgxen/hvmsnap,hda,w']
=A011 #disk =3D [ 'tap:aio:/home/ninja/img/hvm.img,hda,w','= ;file:/home/ninja/img/CentOS-5.3- =A0

=A0=A0i386-b= in-DVD.iso,hdc:cdrom,r']
=A012 #disk =3D [ 'tap:aio:/home= /ninja/img/hvm.img,hda,w','file:/var/ftp/pub/rhel-server-5. =A0

=A0=A03-i386.iso,hdc:cdrom,r']
=A013 #dis= k =3D [ 'phy:/dev/vgxen/hvm,hda,w','file:/var/ftp/pub/rhel-serv= er-5.3-i386.iso,hd =A0

=A0=A0c:cdrom,r']
=
=A014 #disk =3D [ 'tap:aio:/home/ninja/img/hvm.img,hda,w','= ;file:/var/ftp/pub/rhel-server-5. =A0

=A0=A03-i386-dvd.iso,hdc:cdrom,r']
=A015 = vif =3D ['type=3Dioemu, mac=3D00:1c:3e:17:22:13']
=A016 #= boot =3D 'dc'
=A017 boot =3D 'c'
=A018 = name =3D 'Rhel5-hvm1'
=A019 acpi =3D 1
=A020 apic =3D 1
=A021 device_mod= el =3D '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
=A022 vnc=3D1
=A023 vncdisplay=3D2
=A024 sdl=3D0
=
=A025 opengl=3D1
=A026 vnclisten=3D"0.0.0.0"
=A027 vncpasswd=3D'= ;'
=A028 serial=3D'pty'

disk= =3D [ 'tap:remus:server1:9000|aio:/dev/vgxen/hvmsnap,hda,w']
=
hvmsnap is a lvm snapshots using as the hvm disk path.

location of the error code:
1351 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 if ( pagetype !=3D 0 )
1352 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 {
1353 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /*= If the page is not a normal data page, write out any
1354 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0run of pages we ma= y have previously acumulated */
1355 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 if ( run )
1356 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 {
1357 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if ( r= atewrite(io_fd, live,
1358 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0(char*)region_base+(PAGE_SIZE*(j-run)),
1359 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= PAGE_SIZE*run) !=3D PAGE_SIZE*run )
1360 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 {
1361 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ERROR(&qu= ot;Error when writing to state file (4a)" =A0 (here)
1362 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 " = (errno %d)", errno);
1363 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 goto out;
1364 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
1365 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 run =3D 0;
1366 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
1367 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 }=A0

=A0some other operation recor= ds:=A0
I also have tried using paravirtualized virtual machine as GuestOS, yet it = is still=A0failed with the same error.


<= br>--
--
Best Regards

Minjia Zhang

Email:zhangninja@gmail.com
--001636e1e82e82f832047d7fd11e-- --===============0477239464== 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 --===============0477239464==--