Hi.<div><br></div><div>I'm still struggling to get a stacked device to work on DRBD 8.3.0.</div><div><br></div><div>Config excerpt:</div><div><br></div><div><div>common {</div><div> syncer {</div><div> rate 70M;</div>
<div> verify-alg md5;<br></div><div> }<br></div><div><br></div><div> protocol C;</div><div><br></div><div> startup {</div><div> wfc-timeout 0; ## Infinite!</div><div> degr-wfc-timeout 120; ## 2 minutes.</div>
<div> }</div><div><br></div><div> disk {</div><div> on-io-error detach;</div><div> }</div><div><br></div><div> net {</div><div> allow-two-primaries;<br></div><div> }</div><div>}</div><div><br></div><div><div>resource ftp01-root {</div>
<div> device /dev/drbd2;</div><div> disk /dev/datavg/ftp01-root;</div><div> flexible-meta-disk internal;</div><div><br></div><div> on xen-33-18-02 {</div><div> address <a href="http://192.168.250.12:7702">192.168.250.12:7702</a>;</div>
<div> }</div><div><br></div><div> on xen-33-18-03 {</div><div> address <a href="http://192.168.250.13:7702">192.168.250.13:7702</a>;</div><div> }</div><div>} # ftp01-root</div><div><br></div><div>resource ftp01-root-b {</div>
<div> device /dev/drbd2;</div><div> disk /dev/datavg/ftp01-root;</div><div> meta-disk /dev/datavg/drbd_log[2];</div><div><br></div><div> on xen-80-31-00 {</div><div> address <a href="http://192.168.250.14:7702">192.168.250.14:7702</a>;</div>
<div> }</div><div><br></div><div> on xen-80-31-01 {</div><div> address <a href="http://192.168.250.15:7702">192.168.250.15:7702</a>;</div><div> }</div><div>} # ftp01-root-b</div><div><br></div><div>resource ftp01-root-r {</div>
<div> protocol A;</div><div><br></div><div> stacked-on-top-of ftp01-root {</div><div> device /dev/drbd102;</div><div> address <a href="http://10.80.31.51:7702">10.80.31.51:7702</a>;</div><div> }</div>
<div><div><br></div><div> stacked-on-top-of ftp01-root-b {</div><div> device /dev/drbd102;</div><div> address <a href="http://10.80.31.50:7702">10.80.31.50:7702</a>;</div><div> }</div><div>} # ftp01-root-r</div>
<div><br></div><div>=========================================</div><div><br></div><div>I have the ftp01-root device up and running (currently in use and working fine). I build my new server (xen-80-31-00) and got its device "ftp01-root-b" running.</div>
<div><br></div><div>xen-33-18-03 (ftp01-root):</div><div><div> 2: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r---</div><div> ns:2176532 nr:999236 dw:3190465 dr:2068626 al:79 bm:78 lo:0 pe:0 ua:0 ap:0 e</div>
<div>p:1 wo:b oos:1420</div><div><br></div><div>xen-80-31-00 (ftp01-root-b):</div><div><div> 2: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r---</div><div> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4194304</div>
<div><br></div><div>On both hosts, the other node is down, hence the "DUnknown" for the second host.</div><div><br></div><div>Trying to create the stacked device fails with:</div><div><br></div></div><div><div>root@xen-33-18-03:/etc# drbdadm --stacked up ftp01-root-r</div>
<div>/dev/drbd102: Failure: (127) Device minor not allocated</div><div>Command 'drbdsetup /dev/drbd102 disk /dev/drbd2 /dev/drbd2 internal --set-defaults --create-device --on-io-error=detach' terminated with exit code 10</div>
<div><br></div><div>I do see the device (/dev/drbd102) *is* getting created:</div><div><br></div><div><div>brw-rw---- 1 root disk 147, 102 2009-02-02 01:37 /dev/drbd102</div><div><br></div></div></div></div><div>Google has not been much help, and I'm really stuck now.</div>
<div><br></div><div>Just to make it more fun, it seems the batch of Samsung 750GB drives that are in the xen-33-18-xx servers aren't very good and I'm loosing drives left and right, so I need to get this data moved ASAP.</div>
<div><br></div><div>What can I try next?</div><div><br></div><div>Thanks,</div><div>Sam</div></div></div></div>