[DRBD-user] drbd .07 pre6 and drbdsetup

Jim Greene jwgreene at megalink.net
Tue Apr 6 17:44:23 CEST 2004

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


AH.. that fixed it..  Now once I do a drbdadm up all I can then do a 
drbdadm primary then mount the disk I assume ? Then do the same on the 
other host, but using drbdadm secondary? ANything else I need to do ? 
Thanks..


Lars Ellenberg wrote:

> / 2004-04-06 09:47:44 -0400
> \ Jim Greene:
> 
>>I try doing a drbdadm up all and I get the following:
>>/etc/drbd.conf:85:
>>        There are multiple host sections for the peer.
>>        (Maybe misspelled local host name?)
>>        Detected at host section ending here.
>>        (Host sections are those beginning with the 'on' keyword)
>>
>>Below is my drbd.conf. I must be missing something? pop1-drbd is the 
>>primary..  Do I eed to tell it that in the config somewhere as well ?
> 
> 
> 
>>  on pop1-drbd {
>> on pop2-drbd {
> 
> 
> no. but it should match the output of the "gethostname" syscall.
> 
> what does the below .c proggie say?
> 
> 	lge
> 
> #-------------
> 
> #include <unistd.h>
> int main(int argc,char**argv) {
> 	char name[256] = "";
> 	int i = gethostname(name,255); name[255] = 0;
> 	if (i) {
> 		perror("gethostname:");
> 		return 10;
> 	}
> 	printf("'%s'\n",name);
> 	return 0;
> }
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 




More information about the drbd-user mailing list