[DRBD-user] Primary/Primary : how put a node in outdate mode ?

Dominique Fournier dominique.fournier at grenoble.cnrs.fr
Wed Jan 30 12:28:01 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

I use a drbd 8.2.4-1, on a Debian 2.6.23-1-amd64 machine. The cluster 
should be in primary/primary mode with OCFS2 to support services on both 
nodes.

It work really well under normal work.

When the drbd link drops, I would like :
- The first node continue to work as Primary (with Waiting For Connection)
- The second node go to Outdate mode.

When the link should goes up, the Secondary do a sync diff and after I 
can put it primary again, and restart OCFS and my services.

I wrote a drbd-peer-outdater which know on which node it is launched.

My problem is :
How can I put the second node in Outdate state immediately without 
passing it in Secondary mode ?
I can't pass it in Secondary because OCFS is mounted and dead services 
are connected to partition. I can't kill services nor OCFS because drbd 
is idle.

Thanks for your time !

Dom

My configuration is :
# /etc/drbd.conf
common {
     syncer {
         rate             100M;
     }
}

resource r0 {
     protocol               C;
     on maq1.grenoble.cnrs.fr {
         device           /dev/drbd0;
         disk             /dev/sdb1;
         address          10.0.0.1:7788;
         meta-disk        internal;
     }
     on maq2.grenoble.cnrs.fr {
         device           /dev/drbd0;
         disk             /dev/sdb1;
         address          10.0.0.2:7788;
         meta-disk        internal;
     }
     net {
         allow-two-primaries;
         after-sb-0pri    disconnect;
         after-sb-1pri    disconnect;
         after-sb-2pri    disconnect;
     }
     disk {
         on-io-error      detach;
         fencing          resource-only;
     }
     syncer {
         rate             100M;
         al-extents       257;
     }
     startup {
         degr-wfc-timeout 120;
     }
     handlers {
         outdate-peer     /root/cluster/drbd-peer-outdater.php;
     }
}



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4093 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080130/c20028d8/attachment.bin>


More information about the drbd-user mailing list