[DRBD-user] DRBD setup problem

Darlan Segalin darlan at cbainfo.com.br
Mon May 19 20:56:47 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi, to solve this problem, go to the steps

    * you created your filesystem before you created your DRBD resource, or
    * you created your filesystem on your backing device, rather than your
DRBD, 


dd if=/dev/zero bs=1M count=1 of=/dev/sdXYZ; sync 
drbdadm create-md $r
drbdadm -- -o primary $r
mkfs /dev/drbdY


Darlan Segalin
TI Manager
Chapecó - SC - Brazil
http://www.darlansegalin.net







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

-- 
View this message in context: http://www.nabble.com/DRBD-setup-problem-tp16286872p17325610.html
Sent from the DRBD - User mailing list archive at Nabble.com.




More information about the drbd-user mailing list