<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br> I am getting error when I am creating file system for partition.<br>My /etc/drbd.conf file is ::<br>global {<br> usage-count yes;<br>}<br>common {<br> protocol C;<br>}<br><br>resource r0 {<br> syncer {<br> rate 600M;<br> }<br> on host1.hsc.com {<br> device /dev/drbd10;<br> disk /dev/sda5;<br> address 192.180.2.59:7789;<br> meta-disk internal;<br> }<br> on host2.hsc.com {<br> device /dev/drbd10;<br> disk /dev/cciss/c0d0p5;<br>
address 192.180.3.22:7789;<br> meta-disk internal;<br> }<br>}<br><br>I did following::<br><br><span style="font-weight: bold;">1.</span> drbdadm create-md r0<br><span style="font-weight: bold;">2.</span> drbdadm up r0<br><span style="font-weight: bold;">3. </span> cat /proc/drbd<br>GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:26:57<br> 0: cs:Unconfigured<br><br>10: cs:Connected st:Secondary/Secondary ds:Inconsistent/Inconsistent C r---<br> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0<br> resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0<br> act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0<br><br><span style="font-weight: bold;">4.</span> mke2fs -j /dev/sda5<br>mke2fs 1.39 (29-May-2006)<br>/dev/sda5 is
apparently in use by the system; will not make a filesystem here!<br><br><br>But if I make r0 down and creating file system then it creating file system but after that I make r0 up.<br>I need to do <br>dd if=/dev/zero bs=1M count=1 of=/dev/sda5 ; sync <br>to make r0 up . But then I can't create file system.<br><br>Any idea what can be resolution?<br><br><br><br><br><br><br> <br></div>
</div><br>
</body></html>