Hi list,<br><br>I installed drbd-8.2.5 from source on a running system. I have moved all from the /var partition to a created /var directory. I want to use this free partition(/var) to drbd. When I want to start the drbd, I get this error:<br>
# drbdadm create-md data<br>v08 Magic number not found<br>md_offset 67225174016<br>al_offset 67225141248<br>bm_offset 67223089152<br><br>Found ext3 filesystem which uses 66589392 kB<br>current configuration leaves usable 65647548 kB<br>
<br>Device size would be truncated, which<br>would corrupt data and result in<br>'access beyond end of device' errors.<br>You need to either<br> * use external meta data (recommended)<br> * shrink that filesystem first<br>
* zero out the device (destroy the filesystem)<br>Operation refused.<br><br>Command 'drbdmeta /dev/drbd0 v08 /dev/sda5 internal create-md' terminated with exit code 40<br>drbdadm aborting<br><br>Here is my config file:<br>
global {<br> minor-count 1;<br>}<br>resource data {<br> protocol C;<br> #incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";<br> startup {<br> wfc-timeout 0; ## Infinite!<br>
degr-wfc-timeout 0; ## 1 minutes.<br> }<br>handlers{<br> local-io-error "echo 0> /proc/sysrq-trigger; halt -f";<br> #split-brain "echo split-brain. drbdadm -- --discard-my-data connect $DRBD_RESOURCE ? | mail -s 'DRBD Alert' root";<br>
}<br> disk {<br> on-io-error pass_on;<br> }<br> net {<br> # timeout 60;<br> # connect-int 10;<br> # ping-int 10;<br> max-buffers 2048;<br> ko-count 4;<br> after-sb-0pri discard-older-primary;<br>
after-sb-1pri call-pri-lost-after-sb;<br> after-sb-2pri call-pri-lost-after-sb;<br> # max-epoch-size 2048;<br> }<br> syncer {<br> rate 10M;<br> #group 1;<br> al-extents 257;<br> }<br>
<br> on YBKX007453 {<br> device /dev/drbd0;<br> disk /dev/sda5;<br> address <a href="http://192.168.10.13:7789">192.168.10.13:7789</a>;<br> meta-disk internal;<br> }<br><br> on YBKX007451 {<br>
device /dev/drbd0;<br> disk /dev/sda5;<br> address <a href="http://192.168.10.12:7789">192.168.10.12:7789</a>;<br><br> }<br>}<br><br>Where is my misstake?<br><br>Thank you!<br>