DRBD setup problem![]() ![]() ![]() ![]() by Szasz Tamas-2 Mar 26, 2008; 03:15am :: Rate this Message: 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![]() ![]() ![]() by Florian Haas-3 Mar 26, 2008; 03:43pm :: Rate this Message: 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.
« [
hide part of quote]
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![]() ![]() ![]() ![]() by Darlan Segalin May 20, 2008; 02:56am :: Rate this Message: 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 |
DRBD setup problem
最新推荐文章于 2022-03-14 16:34:01 发布