[DRBD-user] Primary device hangs when syncing with secondary

Sean Dwyer sd_drbd at earnware.com
Wed Jun 2 20:48:39 CEST 2004


I have replication set up between two boxes with drbd over a crossover cable using protocol C. I have /dev/nb0 mounted at /mnt/nb0 on the primary box, which is then shared via Samba3. I've been testing the setup with an app on a third box running Win2K that creates random files on the Samba share as fast as it can. In order to simulate a failure, I tried rebooting the drbd secondary box. The problem is that when the secondary comes back up and drbd initiates a sync, the Samba share seems to hang (i.e. the app on the Win2K box can't create any files) until the syncing completes. Is this normal? From what I've read, the drbd device on the primary should perform normally during a sync.

Some info about my setup:
  Both boxes have two hard drives: /dev/hda contains OS, /dev/hdb is for data
  Both running Debian precompiled kernel 2.4.26-1-686
  Both have two NICs: eth0 for network connection, eth1 for direct crossover connection
  The NICs connected via crossover have negotiated 100baseTx-FD
  drbd 0.6.12-3
  Samba 3.0.2a-Debian

Results of `hdparm -i /dev/hdb` on primary:
  Model=WDC WD2500JB-00EVA0, FwRev=15.05R15, SerialNo=WD-WMAEH2560976
  Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
  RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
  BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
  IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes:  pio0 pio1 pio2 pio3 pio4
  DMA modes:  mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5
  AdvancedPM=no WriteCache=enabled
  Drive conforms to: device does not report version:

Results of `hdparm -i /dev/hdb` on secondary:
  Model=IBM-DTTA-371440, FwRev=T71OA70B, SerialNo=WK0WKFD7340
  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=34
  BuffType=DualPortCache, BuffSize=462kB, MaxMultSect=16, MultSect=16
  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=28229040
  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes:  pio0 pio1 pio2 pio3 pio4
  DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 *udma2
  AdvancedPM=no WriteCache=enabled
  Drive conforms to: ATA/ATAPI-4 T13 1153D revision 17:  1 2 3 4





More information about the drbd-user mailing list