Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hello Leroy, The mirror is ok. # Creating in directory in /home root at ubuntu-cluster2:~# mount /dev/drbd0 /home/ root at ubuntu-cluster2:~# cd /home/ root at ubuntu-cluster2:/home# mkdir guest # Now ubuntu-cluster2 is secondary root at ubuntu-cluster2:~# umount /home/ root at ubuntu-cluster2:~# root at ubuntu-cluster2:~# drbdadm secondary all #Now ubuntu-cluster1 is primary root at ubuntu-cluster1:~# drbdadm primary all root at ubuntu-cluster1:~# mount /dev/drbd0 /home/ #Reading /home root at ubuntu-cluster1:~# ls /home/ faria guest lost+found Ser the logs: heartbeat: 2008/08/22_16:45:51 WARN: node ubuntu-cluster2: is dead heartbeat: 2008/08/22_16:45:51 WARN: No STONITH device configured. heartbeat: 2008/08/22_16:45:51 WARN: Shared disks are not protected. heartbeat: 2008/08/22_16:45:51 info: Resources being acquired from ubuntu-cluster2. heartbeat: 2008/08/22_16:45:51 info: Link ubuntu-cluster2:eth0 dead. heartbeat: 2008/08/22_16:45:51 info: Running /etc/ha.d/rc.d/status status heartbeat: 2008/08/22_16:45:51 info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys ubuntu-cluster1] to acquire. heartbeat: 2008/08/22_16:45:51 info: Taking over resource group IPaddr::192.168.1.155/24/eth0:0/192.168.1.255 heartbeat: 2008/08/22_16:45:51 info: Acquiring resource group: ubuntu-cluster2 IPaddr::192.168.1.155/24/eth0:0/192.168.1.255 heartbeat: 2008/08/22_16:45:52 info: Running /etc/ha.d/resource.d/IPaddr 192.168.1.155/24/eth0:0/192.168.1.255 start heartbeat: 2008/08/22_16:45:52 info: /sbin/ifconfig eth0:0:0 192.168.1.155 netmask 255.255.255.0 broadcast 192.168.1.255 heartbeat: 2008/08/22_16:45:52 info: Sending Gratuitous Arp for 192.168.1.155 on eth0:0:0 [eth0] heartbeat: 2008/08/22_16:45:52 /usr/lib/heartbeat/send_arp -i 1010 -r 5 -p /var/lib/heartbeat/rsctmp/send_arp/send_arp-192.168.1.155 eth0 192.168.1.155 auto 192.168.1.155 ffffffffffff heartbeat: 2008/08/22_16:45:52 info: Taking over resource group drbddisk::r0 heartbeat: 2008/08/22_16:45:52 info: Acquiring resource group: ubuntu-cluster2 drbddisk::r0 Filesystem::/dev/drbd0::/home::ext3 192.168.1.155 samba heartbeat: 2008/08/22_16:45:52 info: Running /etc/ha.d/resource.d/drbddisk r0 start heartbeat: 2008/08/22_16:46:04 ERROR: Return code 1 from /etc/ha.d/resource.d/drbddisk heartbeat: 2008/08/22_16:46:04 CRIT: Giving up resources due to failure of drbddisk::r0 heartbeat: 2008/08/22_16:46:04 info: Releasing resource group: ubuntu-cluster2 drbddisk::r0 Filesystem::/dev/drbd0::/home::ext3 192.168.1.155 samba heartbeat: 2008/08/22_16:46:04 info: Running /etc/init.d/samba stop heartbeat: 2008/08/22_16:46:06 info: Running /etc/ha.d/resource.d/IPaddr 192.168.1.155 stop heartbeat: 2008/08/22_16:46:06 info: /sbin/route -n del -host 192.168.1.155 heartbeat: 2008/08/22_16:46:06 info: /sbin/ifconfig eth0:0:0 down heartbeat: 2008/08/22_16:46:06 info: IP Address 192.168.1.155 released heartbeat: 2008/08/22_16:46:06 info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd0 /home ext3 stop heartbeat: 2008/08/22_16:46:06 WARNING: Filesystem /home not mounted? heartbeat: 2008/08/22_16:46:06 info: Running /etc/ha.d/resource.d/drbddisk r0 stop heartbeat: 2008/08/22_16:46:06 info: /usr/lib/heartbeat/mach_down: nice_failback: foreign resources acquired heartbeat: 2008/08/22_16:46:06 info: mach_down takeover complete. Coud be anything with heartbeat ? []'s Faria --- Em sex, 22/8/08, Leroy van Logchem <leroy.vanlogchem at gmail.com> escreveu: > De: Leroy van Logchem <leroy.vanlogchem at gmail.com> > Assunto: Re: [DRBD-user] Replication data from primary server > Para: drbd-user at lists.linbit.com > Data: Sexta-feira, 22 de Agosto de 2008, 7:10 > > The heartbeat is mounting /dev/drbd0 in secondary > server, but when primary server is up, the datas created in > secondary server aren't copied to primary server. > > > > Is there a solution from this ? > > > When not aiming for a primary-primary cluster, in other > words only > one side of the cluster is primary and can read/write to > the file system,: > you should not mount the drbd device on the secondary while > the primary > has it in-use. When these are your first steps with drbd, I > would advise to > take it step by step without heartbeat. Test the basics > first. > Have the primary connect to the secondary, monitor the > traffic, disk I/O > lights etc (verify the replication is working). > # watch -n 1 "cat /proc/drbd" > # iostat -dk 1 on both servers > Stop activity on the mount point, unmount it. Make the > primary, secondary. > On the new primary, make it primary. Mount it there and > verify the last > written files are there. Take it from there to your > clustering software. > > > -- > Leroy > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses