[DRBD-user] Secondary/Secondary forever?

Helmut Wollmersdorfer helmut.wollmersdorfer at gmx.at
Thu Jun 10 04:05:59 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.


Version 0.6.12-5.deb

----snip----
root at via2:/etc# drbdsetup /dev/nb0 show
Lower device: 22:01   (/dev/hdc1)
Disk options:
  disk-size = 1945600 KB
  do-panic
Local address: 10.0.10.11:7788
Remote address: 10.0.10.10:7788
Wire protocol: C
Net options:
  timeout = 6.0 sec
  ko-count = 10
  tl-size = 5000
  connect-int = 10 sec
  ping-int = 10 sec
  sndbuf-size = 524288
  sync-min = 500 KB/sec
  sync-max = 4096 KB/sec

----snip----
root at via2:/etc# cat /var/syslog | grep drbd
Jun 10 01:05:38 via2 drbd: ===> drbd start <===
Jun 10 01:05:38 via2 drbd: modprobe -s drbd minor_count=5
Jun 10 01:05:38 via2 kernel: drbd: initialised. Version: 0.6.12 
(api:64/proto:62)
Jun 10 01:05:38 via2 drbd: drbdsetup /dev/nb0 disk /dev/hdc1 --do-panic 
--disk-size=1900M
Jun 10 01:05:38 via2 drbd: drbdsetup /dev/nb0 net 10.0.10.11:7788 
10.0.10.10:7788 C --sndbuf-size=512k --sync-nice=0 --sync-min=500k 
--sync-max=4M --tl-size=5000 --timeout=60 --connect-int=10 --ping-int=10 
--ko-count=10
Jun 10 01:05:38 via2 drbd: drbdsetup /dev/nb0 wait_connect -t 60
Jun 10 01:05:46 via2 drbd: Operator forced primary status on drbd0 
(/dev/nb0)
Jun 10 01:05:46 via2 drbd: drbdsetup /dev/nb0 primary --human
Jun 10 01:06:21 via2 kernel: drbd0: Connection established. size=1945600 
KB / blksize=4096 B
Jun 10 01:06:21 via2 kernel: drbd0: Synchronisation started blks=64
Jun 10 01:14:20 via2 kernel: drbd0: Synchronisation done.

----snip----
root at via2:/etc# cat /var/syslog | grep drbd
Jun 10 01:06:21 via1 drbd: ===> drbd start <===
Jun 10 01:06:21 via1 drbd: modprobe -s drbd minor_count=5
Jun 10 01:06:21 via1 kernel: drbd: initialised. Version: 0.6.12 
(api:64/proto:62)
Jun 10 01:06:21 via1 drbd: drbdsetup /dev/nb0 disk /dev/hdc1 --do-panic 
--disk-size=1900M
Jun 10 01:06:21 via1 drbd: drbdsetup /dev/nb0 net 10.0.10.10:7788 
10.0.10.11:7788 C --sndbuf-size=512k --sync-nice=0 --sync-min=500k 
--sync-max=4M --tl-size=5000 --timeout=60 --connect-int=10 --ping-int=10 
--ko-count=10
Jun 10 01:06:21 via1 drbd: drbdsetup /dev/nb0 wait_connect -t 60
Jun 10 01:06:21 via1 kernel: drbd0: Connection established. size=1945600 
KB / blksize=4096 B
Jun 10 01:06:22 via1 drbd: 'drbd0' SyncingAll, waiting for this to finish
Jun 10 01:06:22 via1 drbd: drbdsetup /dev/nb0 wait_sync
Jun 10 01:14:24 via1 drbd: 'drbd0' SyncingAll finished, issue drbdsetup 
/dev/nb0 secondary_remote

... and now both are Secondary ...

root at via2:/etc# cat /proc/drbd
version: 0.6.12 (api:64/proto:62)

0: cs:Connected st:Secondary/Secondary ns:1945600 nr:0 dw:0 dr:1945600 
pe:0 ua:0

... but why does it fall back from Primary to Secondary after syncing _all_?

Helmut Wollmersdorfer





More information about the drbd-user mailing list