<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,</div><div><br></div><div> I have configured node1 and node2 as primary and secondary. If node1 is crashed, how to mount /dev/drbd0? After node1 crashed, node2 can't run. Anybody help me pls?</div><div><br></div><div>after node1 crashed, I run below command on node2. But it was not run.</div><div><br></div><div># cat /proc/drbd<br>version: 8.3.11 (api:88/proto:86-96)<br>srcversion: 71955441799F513ACA6DA60<br> 0: cs:WFConnection ro:Secondary/Unknown ds:Diskless/DUnknown C r-----<br> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0</div><div><br></div><div> mount /dev/drbd0 /srv/data<br>mount: block device /dev/drbd0 is write-protected, mounting read-only<br>mount: Wrong medium type</div><div><br></div><div><br></div><div><br></div><div><br></div><div>my drbd.conf is
below</div><div><br></div><div>resource r0 {<br> protocol C;<br><br> handlers {<br> pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";<br> pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";<br> local-io-error "echo o > /proc/sysrq-trigger ; halt -f";<br> #outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";<br> }<br><br> startup {<br> degr-wfc-timeout 120;<br> }<br><br> disk {<br> on-io-error
detach;<br> }<br><br> net {<br> cram-hmac-alg sha1;<br> shared-secret "sessecses";<br> after-sb-0pri disconnect;<br> after-sb-1pri disconnect;<br> after-sb-2pri disconnect;<br> rr-conflict disconnect;<br> }<br><br> syncer {<br> rate 100M;<br> verify-alg sha1;<br> al-extents 257;<br> }<br><br> on node1
{<br> device /dev/drbd0;<br> disk /dev/sda5;<br> address 10.10.10.1:7788;<br> meta-disk internal;<br> }<br><br> on node2 {<br> device /dev/drbd0;<br> disk /dev/sda5;<br> address 10.10.10.2:7788;<br> meta-disk internal;<br> }<br>}</div><div><br></div><div>Thanks,</div></div></body></html>