Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
hi, my setup is fairly simple. i compiled and installed drbd 8.2.6 (and now 8.2.7~rc1) which i compiled by using dpkg-buildpackage. i only slightly altered the default drbd.conf of r0 and r1 - especially i am not using the real hosts name but using node_0 and node_1 to later integrate drbd into heartbeat - and followed [1] to connect the drbd peers. the result was: > 1: cs:Connected st:Secondary/Secondary ds:Inconsistent/Inconsistent C r--- i then tried to set one side primary by using [2] on node_0: > drbdadm -- --overwrite-data-of-peer primary resource node_1 logged: > Sep 5 09:58:15 wc02 kernel: [59659.711579] drbd1: Writing meta data super block now. > Sep 5 09:58:15 wc02 kernel: [59659.776882] drbd1: Becoming sync target due to disk states. > Sep 5 09:58:15 wc02 kernel: [59659.776966] drbd1: Writing the whole bitmap, full sync required after drbd_sync_handshake. > Sep 5 09:58:15 wc02 kernel: [59659.777060] drbd1: IO Suspended, no more requests in flight > Sep 5 09:58:15 wc02 kernel: [59659.777063] drbd1: Writing meta data super block now. > Sep 5 09:58:15 wc02 kernel: [59659.889483] drbd1: writing of bitmap took 17 jiffies > Sep 5 09:58:15 wc02 kernel: [59659.889512] drbd1: 14 GB (3662663 bits) marked out-of-sync by on disk bit-map. > Sep 5 09:58:15 wc02 kernel: [59659.889562] drbd1: Writing meta data super block now. > Sep 5 09:58:15 wc02 kernel: [59659.953668] drbd1: Resumed IO > Sep 5 09:58:15 wc02 kernel: [59659.953890] drbd1: conn( Connected -> WFBitMapT ) > Sep 5 09:58:15 wc02 kernel: [59660.169797] drbd1: conn( WFBitMapT -> WFSyncUUID ) > Sep 5 09:58:15 wc02 kernel: [59660.171464] drbd1: helper command: /sbin/drbdadm before-resync-target minor-1 > Sep 5 09:58:15 wc02 kernel: [59660.172448] drbd1: helper command: /sbin/drbdadm before-resync-target minor-1 exit code 10 (0xa00) > Sep 5 09:58:15 wc02 kernel: [59660.172498] drbd1: before-resync-target handler returned 10, dropping connection. > Sep 5 09:58:15 wc02 kernel: [59660.172551] drbd1: peer( Primary -> Unknown ) conn( WFSyncUUID -> Disconnecting ) pdsk( UpToDate -> DUnknown ) > Sep 5 09:58:15 wc02 kernel: [59660.172612] drbd1: asender terminated > Sep 5 09:58:15 wc02 kernel: [59660.172639] drbd1: Terminating asender thread > Sep 5 09:58:15 wc02 kernel: [59660.172690] drbd1: Writing meta data super block now. > Sep 5 09:58:16 wc02 kernel: [59660.343497] drbd1: tl_clear() > Sep 5 09:58:16 wc02 kernel: [59660.343523] drbd1: Connection closed > Sep 5 09:58:16 wc02 kernel: [59660.343553] drbd1: conn( Disconnecting -> StandAlone ) > Sep 5 09:58:16 wc02 kernel: [59660.343677] drbd1: receiver terminated > Sep 5 09:58:16 wc02 kernel: [59660.343703] drbd1: Terminating receiver thread i searched the archives and found a notice about "before-resync-target handler returned 3 (!)" where it was noticed that one should have the current drbd8-utils. i have the corresponding drbd8-utils installed. manually issuing /sbin/drbdadm before-resync-target minor-1 results in exit-code 0 and if i enable the snapshot-resync-target-lvm.sh script, i get: > Sep 5 11:01:46 wc02 snapshot-resync-target-lvm.sh[9621]: invoked for mysql > Sep 5 11:01:47 wc02 snapshot-resync-target-lvm.sh[9621]: > Sep 5 11:01:47 wc02 snapshot-resync-target-lvm.sh[9621]: found __DRBD_NODE__ in environment > Sep 5 11:01:47 wc02 snapshot-resync-target-lvm.sh[9621]: PRETENDING that I am >>node_1<< > Sep 5 11:01:47 wc02 snapshot-resync-target-lvm.sh[9621]: > Sep 5 11:01:47 wc02 snapshot-resync-target-lvm.sh[9621]: File descriptor 3 left open > Sep 5 11:01:47 wc02 snapshot-resync-target-lvm.sh[9621]: File descriptor 4 left open as said, this behavior - with the slight difference of information about the "minor-1" parameter - is the same for drbd 8.2.6 and 8.2.7~rc1. my current kernel, modules and drbd8-utils are: > drbd8-module-2.6.27-rc5 8.2.7~rc1-0+ipax1 > drbd8-utils 8.2.7~rc1-0 > linux-image-2.6.27-rc5 ipax1 for the records i am also attaching my drbd.conf. any idea what i might be doing wrong? cheers, raoul [1] http://www.drbd.org/users-guide-emb/s-first-time-up.html [2] http://www.drbd.org/users-guide-emb/s-initial-full-sync.html -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. r.bhatia at ipax.at Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. office at ipax.at 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: drbd.conf URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080905/34794d06/attachment.asc>