Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Yes, look at the script /etc/ha.d/resource.d/drbddisk When the primary fails, the secondary can do "/etc/ha.d/resource.d/drbddisk start" and it will assume primary and also mount it locally and resume operations. I believe that script comes with heartbeat... it came in my heartbeat or DRBD RPMs on CentOS 4.2. You can add "drbddisk::resourcename" to /etc/ha.d/haresources and I believe it will take care of issuing the start/stop commands for you on the other node failure. On 24 Mar 2006 15:09:41 +0530, Varun Menghani <varun.menghani at airtightnetworks.net> wrote: > Hi, > I have written a script to configure hearbeat and drbd for a 2 node > cluster. On the server from which data is to be pushed, the script > executes the "drbdsetup /dev/drbd0 primary --do-what-I-say" command. > However, it is possible that a user might configure both the servers to > push data on each other, in this case both the servers will try and > execute the do-what-i-say command, resulting in chaos. > My question is : Is there a way to do an initial sync without the > do-what-I-say command? e.g can I configure one node as primary, the > other as secondary and then data is syncronised from the primary to the > secondary node? > Regards, > Varun. > -- > Varun Menghani <varun.menghani at airtightnetworks.net> > ---- > > "THE INFORMATION IN THIS EMAIL AND ANY ATTACHMENTS IS CONFIDENTIAL AND > INTENDED SOLELY FOR THE USE OF THE PERSON NAMED ABOVE. IF YOU ARE NOT > THE INTENDED RECIPIENT, OR HAVE OTHERWISE RECEIVED THIS EMAIL IN ERROR, > DO NOT READ, DISTRIBUTE, COPY OR OTHERWISE USE IT. IF YOU HAVE RECEIVED > THIS COMMUNICATION IN ERROR, PLEASE IMMEDIATELY NOTIFY THE SENDER BY > TELEPHONE OR EMAIL, AND DESTROY THIS MESSAGE AND ANY ATTACHMENTS. THANK > YOU." > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user >