Hi.<div><br></div><div>I've been trying to find some way to change the protocol of a DRBD device, and have been getting stuck every time:</div><div><br></div><div><div>root@xen-80-31-00:/etc/xen/guests# drbdadm disconnect build-hardy-x64-root</div>
<div>root@xen-80-31-00:/etc/xen/guests# drbdadm adjust build-hardy-x64-root</div><div>22: Failure: (139) Protocol C required</div><div>Command 'drbdsetup 22 net <a href="http://10.99.99.200:7722">10.99.99.200:7722</a> <a href="http://10.99.99.100:7722">10.99.99.100:7722</a> A --set-defaults --create-device --allow-two-primaries' terminated with exit code 10</div>
<div>root@xen-80-31-00:/etc/xen/guests# drbdadm down build-hardy-x64-data</div><div>root@xen-80-31-00:/etc/xen/guests# drbdadm down build-hardy-x64-root</div><div>root@xen-80-31-00:/etc/xen/guests# drbdadm adjust build-hardy-x64-root</div>
<div>22: Failure: (139) Protocol C required</div><div>Command 'drbdsetup 22 net <a href="http://10.99.99.200:7722">10.99.99.200:7722</a> <a href="http://10.99.99.100:7722">10.99.99.100:7722</a> A --set-defaults --create-device --allow-two-primaries' terminated with exit code 10</div>
<div><br></div><div>From drbd.conf:</div><div><br></div><div><div>resource build-hardy-x64-root {</div><div> device /dev/drbd22;</div><div> disk /dev/datavg/build-hardy-x64-root;</div><div> meta-disk /dev/datavg/drbd_log[22];</div>
<div> protocol A;</div><div><br></div><div> on xen-80-31-00 {</div><div> address <a href="http://10.99.99.200:7722">10.99.99.200:7722</a>;</div><div> }</div><div><br></div><div> on xen-33-18-02 {</div><div> address <a href="http://10.99.99.100:7722">10.99.99.100:7722</a>;</div>
<div> }</div><div><br></div><div>}</div><div><br></div><div>resource build-hardy-x64-data {</div><div> device /dev/drbd23;</div><div> disk /dev/datavg/build-hardy-x64-data;</div><div> meta-disk /dev/datavg/drbd_log[23];</div>
<div> protocol A;</div><div><br></div><div> on xen-80-31-00 {</div><div> address <a href="http://10.99.99.200:7723">10.99.99.200:7723</a>;</div><div> }</div><div><br></div><div> on xen-33-18-02 {</div><div> address <a href="http://10.99.99.100:7723">10.99.99.100:7723</a>;</div>
<div> }</div><div><br></div><div>}</div><div><br></div><div>.....</div><div><br></div><div>The other node is not online at this time, so it shouldn't be confusing the primary node, should it?</div><div><br></div><div>
Anything else I can do short of rebooting the server (which would be seriously service affecting)?</div><div><br></div><div>--Sam</div></div></div>