[DRBD-user] both nodes in Secondary/Secondary state

Chip Burke cburke at innova-partners.com
Mon Jan 16 20:18:37 CET 2006

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


When the array first came up, did you run

Drbdsetup /dev/drbdx primary --do-what-I-say

This sets up the initial primary and causes an initial sync of the array. Be
careful as this can eat your data if you do it the wrong way.
________________________________________
Chip Burke
________________________________________


-----Original Message-----
From: drbd-user-bounces at lists.linbit.com
[mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Tom Brown
Sent: Monday, January 16, 2006 2:14 PM
To: drbd-user at lists.linbit.com
Subject: [DRBD-user] both nodes in Secondary/Secondary state

Hi,

Whenever I start drbd on both nodes with 'sudo /etc/init.d/drbd start', both

nodes consistently come up in the Secondary/Secondary state. I must be 
missing something or did something wrong in the setup. I successfully setup 
two other servers that are currently in production. However, they are
running 
version 0.6.12. I am having trouble with version 0.7.15. I've given a
rundown 
of what I did to install drbd and what I'm seeing in the logs. I did see a 
similar problem in another post where it was suggested to install heartbeat 
to get one of the nodes to become primary. I tried installing
heartbeat-2.0.2 
and it did not help.

The partition I want to mirror is /dev/md2. It is part of a software raid1.

I am using drbd-0.7.15. I built drbd from source with these commands on both

nodes:
cd drbd
make clean all
cd ..
make tools
sudo make install

Then I manually created the drbd0 device with this command on both nodes:
sudo mknod -m 0660 /dev/drbd0 b 147 0
Is this correct?

Here is my /etc/drbd.conf:
resource drbd0 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt 
-f";

  startup {
    wfc-timeout 120; # 2 minutes
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;
  }

  net {
  }

  syncer {
    rate 12M;
    group 1;
    al-extents 257;
  }

  on mail01.esteem2.com {
    device     /dev/drbd0;
    disk       /dev/md2;
    address    192.168.1.8:7788;
    meta-disk  internal;
  }

  on mail02.esteem2.com {
    device    /dev/drbd0;
    disk      /dev/md2;
    address   192.168.1.9:7788;
    meta-disk internal;
  }
}

mail01 /var/log/syslog:
Jan 16 10:45:21 mail01 kernel: drbd: initialised. Version: 0.7.15 
(api:77/proto:74)
Jan 16 10:45:21 mail01 kernel: drbd: SVN Revision: 2020 build by 
tbrown at mail01.esteem2.com, 2006-01-13 15:07:08
Jan 16 10:45:21 mail01 kernel: drbd: registered as block device major 147
Jan 16 10:45:21 mail01 kernel: drbd0: resync bitmap: bits=3553712
words=111054
Jan 16 10:45:21 mail01 kernel: drbd0: size = 13 GB (14214848 KB)
Jan 16 10:45:21 mail01 kernel: klogd 1.4.1, ---------- state change
----------
Jan 16 10:45:21 mail01 kernel: No module symbols loaded - kernel modules not

enabled.
Jan 16 10:45:25 mail01 kernel: drbd0: 13 GB marked out-of-sync by on disk 
bit-map.
Jan 16 10:45:25 mail01 kernel: drbd0: No usable activity log found.
Jan 16 10:45:25 mail01 kernel: drbd0: drbdsetup [2236]: cstate Unconfigured 
--> StandAlone
Jan 16 10:45:25 mail01 kernel: drbd0: drbdsetup [2249]: cstate StandAlone
--> 
Unconnected
Jan 16 10:45:25 mail01 kernel: drbd0: drbd0_receiver [2250]: cstate 
Unconnected --> WFConnection
Jan 16 10:45:41 mail01 kernel: drbd0: drbd0_receiver [2250]: cstate 
WFConnection --> WFReportParams
Jan 16 10:45:41 mail01 kernel: drbd0: Handshake successful: DRBD Network 
Protocol version 74
Jan 16 10:45:41 mail01 kernel: drbd0: Connection established.
Jan 16 10:45:41 mail01 kernel: drbd0: I am(S): 
0:00000001:00000001:00000001:00000001:00
Jan 16 10:45:41 mail01 kernel: drbd0: Peer(S): 
0:00000001:00000001:00000001:00000001:00
Jan 16 10:45:41 mail01 kernel: drbd0: drbd0_receiver [2250]: cstate 
WFReportParams --> Connected
Jan 16 10:45:41 mail01 kernel: drbd0: I am inconsistent, but there is no
sync? 
BOTH nodes inconsistent!
Jan 16 10:45:41 mail01 kernel: drbd0: Secondary/Unknown --> 
Secondary/Secondary

mail02 /var/log/syslog:
Jan 16 10:45:38 mail02 kernel: drbd: initialised. Version: 0.7.15 
(api:77/proto:74)
Jan 16 10:45:38 mail02 kernel: drbd: SVN Revision: 2020 build by 
tbrown at mail02.esteem2.com, 2006-01-13 15:16:21
Jan 16 10:45:38 mail02 kernel: drbd: registered as block device major 147
Jan 16 10:45:38 mail02 kernel: drbd0: resync bitmap: bits=3553712
words=111054
Jan 16 10:45:38 mail02 kernel: drbd0: size = 13 GB (14214848 KB)
Jan 16 10:45:38 mail02 kernel: klogd 1.4.1, ---------- state change
----------
Jan 16 10:45:38 mail02 kernel: No module symbols loaded - kernel modules not

enabled.
Jan 16 10:45:41 mail02 kernel: drbd0: 13 GB marked out-of-sync by on disk 
bit-map.
Jan 16 10:45:41 mail02 kernel: drbd0: No usable activity log found.
Jan 16 10:45:41 mail02 kernel: drbd0: drbdsetup [2306]: cstate Unconfigured 
--> StandAlone
Jan 16 10:45:41 mail02 kernel: drbd0: drbdsetup [2319]: cstate StandAlone
--> 
Unconnected
Jan 16 10:45:41 mail02 kernel: drbd0: drbd0_receiver [2320]: cstate 
Unconnected --> WFConnection
Jan 16 10:45:41 mail02 kernel: drbd0: drbd0_receiver [2320]: cstate 
WFConnection --> WFReportParams
Jan 16 10:45:41 mail02 kernel: drbd0: Handshake successful: DRBD Network 
Protocol version 74
Jan 16 10:45:41 mail02 kernel: drbd0: Connection established.
Jan 16 10:45:41 mail02 kernel: drbd0: I am(S): 
0:00000001:00000001:00000001:00000001:00
Jan 16 10:45:41 mail02 kernel: drbd0: Peer(S): 
0:00000001:00000001:00000001:00000001:00
Jan 16 10:45:41 mail02 kernel: drbd0: drbd0_receiver [2320]: cstate 
WFReportParams --> Connected
Jan 16 10:45:41 mail02 kernel: drbd0: I am inconsistent, but there is no
sync? 
BOTH nodes inconsistent!
Jan 16 10:45:41 mail02 kernel: drbd0: Secondary/Unknown --> 
Secondary/Secondary


Thanks,
Tom
_______________________________________________
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