<DIV>ÄãºÃ£º</DIV>
<DIV> I configured 2 resource, r0 and r1, device /dev/drbd0 can use,but /dev/drbd1 is not used, The error message is</DIV>
<DIV>/sbin/drbdsetup /dev/drbd1 disk /dev/sda14 internal -1 --on-io-error=detach<BR>ioctl(,SET_DISK_CONFIG,) failed: Device or resource busy</DIV>
<DIV> </DIV>
<DIV>cat /etc/drbd.conf</DIV>
<DIV>resource "r0" {<BR> protocol C;<BR> incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall; sleep 60; halt -f";</DIV>
<DIV> startup {<BR> wfc-timeout 1; ## 1 second<BR> degr-wfc-timeout 1; ## 1 second<BR> }</DIV>
<DIV> disk {<BR> on-io-error detach;<BR> }</DIV>
<DIV> net {<BR> # timeout 60;<BR> # connect-int 10;<BR> # ping-int 10;<BR> # max-buffers 2048;<BR> # max-epoch-size 2048;<BR> }</DIV>
<DIV> syncer {<BR> rate 100M;<BR> group 1; #sync concurrently with r0<BR> }</DIV>
<DIV> on linux176 {<BR> device /dev/snbd0;<BR> disk /dev/sda14;<BR> address 192.168.1.176:7790;<BR> meta-disk internal;<BR> }</DIV>
<DIV> on linux175 {<BR> device /dev/snbd0;<BR> disk /dev/sda14;<BR> address 192.168.1.175:7790;<BR> meta-disk internal;<BR> }</DIV>
<DIV>}</DIV>
<DIV>resource "r1" {<BR> protocol C;<BR> incon-degr-cmd "echo '!SNBD! pri on incon-degr' | wall; sleep 60; halt -f";</DIV>
<DIV> startup {<BR> wfc-timeout 1; ## 1 second<BR> degr-wfc-timeout 1; ## 1 second<BR> }</DIV>
<DIV> disk {<BR> on-io-error detach;<BR> }</DIV>
<DIV> net {<BR> # timeout 60;<BR> # connect-int 10;<BR> # ping-int 10;<BR> # max-buffers 2048;<BR> # max-epoch-size 2048;<BR> }</DIV>
<DIV> syncer {<BR> rate 100M;<BR> group 1; #sync concurrently with r0<BR> }</DIV>
<DIV> on linux176 {<BR> device /dev/snbd1;<BR> disk /dev/sda15;<BR> address 192.168.1.176:7791;<BR> meta-disk internal;<BR> }</DIV>
<DIV> on linux175 {<BR> device /dev/snbd1;<BR> disk /dev/sda15;<BR> address 192.168.1.175:7791;<BR> meta-disk internal;<BR> }</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>cat /proc/drbd</DIV>
<DIV>0: cs:StandAlone st:Secondary/Unknown ld:Consistent <BR> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0<BR> 1: cs:Unconfigured</DIV><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>