Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi Oliver, I'm in the same situation. Consulting http://www.linux-ha.org/DRBD/FAQ I read: StandAlone : Not trying to connect to peer, IO requests are only passed on locally. WFConnection : Device waits for configuration of other side. I removed the network cable, and the slave mount the device and give the resources. See logs in the end. I believe that StandAlone do only requests I/O, and WFConnection wait the node is fail. If I'm wrong, please corrects me. []'s Faria heartbeat: 2008/08/21_15:28:43 WARN: node ubuntu-cluster2: is dead heartbeat: 2008/08/21_15:28:43 WARN: No STONITH device configured. heartbeat: 2008/08/21_15:28:43 WARN: Shared disks are not protected. heartbeat: 2008/08/21_15:28:43 info: Resources being acquired from ubuntu-cluster2. heartbeat: 2008/08/21_15:28:43 info: Link ubuntu-cluster2:eth0 dead. heartbeat: 2008/08/21_15:28:43 info: Running /etc/ha.d/rc.d/status status heartbeat: 2008/08/21_15:28:43 info: Taking over resource group IPaddr::192.168.1.155/24/eth0:0/192.168.1.255 heartbeat: 2008/08/21_15:28:43 info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys ubuntu-cluster1] to acquire. heartbeat: 2008/08/21_15:28:43 info: Acquiring resource group: ubuntu-cluster2 IPaddr::192.168.1.155/24/eth0:0/192.168.1.255 heartbeat: 2008/08/21_15:28:43 info: Running /etc/ha.d/resource.d/IPaddr 192.168.1.155/24/eth0:0/192.168.1.255 start heartbeat: 2008/08/21_15:28:43 info: /sbin/ifconfig eth0:0:0 192.168.1.155 netmask 255.255.255.0 broadcast 192.168.1.255 heartbeat: 2008/08/21_15:28:43 info: Sending Gratuitous Arp for 192.168.1.155 on eth0:0:0 [eth0] heartbeat: 2008/08/21_15:28:43 /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/21_15:28:43 info: Taking over resource group drbddisk::r0 heartbeat: 2008/08/21_15:28:43 info: Acquiring resource group: ubuntu-cluster2 drbddisk::r0 Filesystem::/dev/drbd0::/home::ext3 192.168.1.155 samba heartbeat: 2008/08/21_15:28:43 info: Running /etc/ha.d/resource.d/drbddisk r0 start heartbeat: 2008/08/21_15:28:43 info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd0 /home ext3 start heartbeat: 2008/08/21_15:28:43 info: Running /etc/init.d/samba start heartbeat: 2008/08/21_15:28:43 info: /usr/lib/heartbeat/mach_down: nice_failback: foreign resources acquired heartbeat: 2008/08/21_15:28:43 info: mach_down takeover complete. heartbeat: 2008/08/21_15:28:43 info: mach_down takeover complete for node ubuntu-cluster2. root at ubuntu-cluster1:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 9,2G 1,1G 7,7G 13% / varrun 252M 156K 252M 1% /var/run varlock 252M 0 252M 0% /var/lock procbususb 252M 88K 252M 1% /proc/bus/usb udev 252M 88K 252M 1% /dev devshm 252M 0 252M 0% /dev/shm /dev/drbd0 3,4G 72M 3,2G 3% /home --- Em qui, 21/8/08, Oliver Welter <mail at oliwel.de> escreveu: > De: Oliver Welter <mail at oliwel.de> > Assunto: [DRBD-user] Unable to connect nodes > Para: drbd-user at lists.linbit.com > Data: Quinta-feira, 21 de Agosto de 2008, 15:19 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi All, > > I am having a bit of trouble setting up a new drbd system. > > Both nodes are running 8.2.6 on a 2.6.22 kernel. > > I have created the underlying devices, copied the config > and ran > "drbdadm create-md" on both nodes > > On my "primary" node, I ran > "drbdadm -- --overwrite-data-of-peer primary > www1" > > Now, I have following situation: > > On "primary" node > 1: cs:WFConnection st:Primary/Unknown > ds:UpToDate/Inconsistent C r--- > ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 > oos:52427164 > > on the replica > > 1: cs:StandAlone st:Secondary/Unknown > ds:Inconsistent/DUnknown r--- > ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 > oos:52427164 > > > If I try to connect the replica, I see in the syslog > > Aug 21 20:13:25 cocoix kernel: drbd1: disk( Inconsistent > -> Diskless ) > Aug 21 20:13:25 cocoix kernel: drbd1: drbd_bm_resize called > with > capacity == 0 > Aug 21 20:13:25 cocoix kernel: drbd1: worker terminated > Aug 21 20:13:25 cocoix kernel: drbd1: Terminating worker > thread > Aug 21 20:13:26 cocoix kernel: drbd1: disk( Diskless -> > Attaching ) > Aug 21 20:13:26 cocoix kernel: drbd1: Starting worker > thread (from > cqueue/0 [219]) > Aug 21 20:13:26 cocoix kernel: drbd1: No usable activity > log found. > Aug 21 20:13:26 cocoix kernel: drbd1: max_segment_size ( = > BIO size ) = 4096 > Aug 21 20:13:26 cocoix kernel: drbd1: drbd_bm_resize called > with > capacity == 104854328 > Aug 21 20:13:26 cocoix kernel: drbd1: resync bitmap: > bits=13106791 > words=204794 > Aug 21 20:13:26 cocoix kernel: drbd1: size = 50 GB > (52427164 KB) > Aug 21 20:13:26 cocoix kernel: drbd1: reading of bitmap > took 7 jiffies > Aug 21 20:13:26 cocoix kernel: drbd1: recounting of set > bits took > additional 0 jiffies > Aug 21 20:13:26 cocoix kernel: drbd1: 50 GB (13106791 bits) > marked > out-of-sync by on disk bit-map. > Aug 21 20:13:26 cocoix kernel: drbd1: disk( Attaching -> > Inconsistent ) > Aug 21 20:13:26 cocoix kernel: drbd1: Writing meta data > super block now. > Aug 21 20:13:26 cocoix kernel: drbd1: Barriers not > supported on meta > data device - disabling > Aug 21 20:13:27 cocoix kernel: drbd1: conn( StandAlone > -> Unconnected ) > Aug 21 20:13:27 cocoix kernel: drbd1: Starting receiver > thread (from > drbd1_worker [6134]) > Aug 21 20:13:27 cocoix kernel: drbd1: receiver (re)started > Aug 21 20:13:27 cocoix kernel: drbd1: conn( Unconnected > -> WFConnection ) > Aug 21 20:13:27 cocoix kernel: drbd1: Handshake successful: > Agreed > network protocol version 88 > Aug 21 20:13:27 cocoix kernel: drbd1: conn( WFConnection > -> WFReportParams ) > Aug 21 20:13:27 cocoix kernel: drbd1: Starting asender > thread (from > drbd1_receiver [6137]) > Aug 21 20:13:27 cocoix kernel: drbd1: data-integrity-alg: > <not-used> > Aug 21 20:13:27 cocoix kernel: drbd1: Becoming sync target > due to disk > states. > Aug 21 20:13:27 cocoix kernel: drbd1: peer( Unknown -> > Secondary ) conn( > WFReportParams -> WFBitMapT ) pdsk( DUnknown -> > UpToDate ) > Aug 21 20:13:27 cocoix kernel: drbd1: Writing meta data > super block now. > Aug 21 20:13:27 cocoix kernel: drbd1: conn( WFBitMapT -> > WFSyncUUID ) > Aug 21 20:13:27 cocoix kernel: drbd1: helper command: > /sbin/drbdadm > before-resync-target > Aug 21 20:13:27 cocoix kernel: drbd1: before-resync-target > handler > returned 3, dropping connection. > Aug 21 20:13:27 cocoix kernel: drbd1: peer( Secondary -> > Unknown ) conn( > WFSyncUUID -> Disconnecting ) pdsk( UpToDate -> > DUnknown ) > Aug 21 20:13:27 cocoix kernel: drbd1: asender terminated > Aug 21 20:13:27 cocoix kernel: drbd1: Terminating asender > thread > Aug 21 20:13:27 cocoix kernel: drbd1: Writing meta data > super block now. > Aug 21 20:13:27 cocoix kernel: drbd1: tl_clear() > Aug 21 20:13:27 cocoix kernel: drbd1: Connection closed > Aug 21 20:13:27 cocoix kernel: drbd1: conn( Disconnecting > -> StandAlone ) > Aug 21 20:13:27 cocoix kernel: drbd1: receiver terminated > Aug 21 20:13:27 cocoix kernel: drbd1: Terminating receiver > thread > > Any hints? > > Oliver > - -- > Protect your environment - close windows and adopt a > penguin! > PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF 8168 CAB7 B0DD 3985 1721 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - > http://enigmail.mozdev.org > > iD8DBQFIrbG3yrew3TmFFyERAjcJAJ4x41dGvWk8VLRvyrsUZmI4fdnwkgCfR0Kc > h7on0USwudU6OgWGkoz/ZCg= > =S/dU > -----END PGP SIGNATURE----- > _______________________________________________ > 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