DRBD setup problem

 

DRBD setup problem

Click to flag this post

by Szasz Tamas-2 Mar 26, 2008; 03:15am :: Rate this Message: - Use ratings to moderate (?)

Reply | Reply to Author | Print | View Threaded | Show Only this Message

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@...
http://lists.linbit.com/mailman/listinfo/drbd-user

Re: DRBD setup problem

Click to flag this post

by Florian Haas-3 Mar 26, 2008; 03:43pm :: Rate this Message: - Use ratings to moderate (?)

Reply | Reply to Author | Print | View Threaded | Show Only this Message

On Tuesday 25 March 2008 20:15:57 Szasz Tamas 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.

Autoresponder says:

- you created your filesystem before you created your DRBD resource, or
- you created your filesystem on your backing device, rather than your DRBD
device,
- neither of which is a problem by itself
- except you need to enlarge the device, shrink the filesystem, or place the
metadata somewhere else.

Cheers,
Florian

--
: Florian G. Haas
: LINBIT Information Technologies GmbH
: Vivenotgasse 48, A-1120 Vienna, Austria

When replying, there is no need to CC my personal address.
I monitor the list on a daily basis. Thank you.
_______________________________________________
drbd-user mailing list
drbd-user@...
http://lists.linbit.com/mailman/listinfo/drbd-user

Re: DRBD setup problem

Click to flag this post

by Darlan Segalin May 20, 2008; 02:56am :: Rate this Message: - Use ratings to moderate (?)

Reply | Reply to Author | Print | View Threaded | Show Only this Message

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值