Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DRBD replication

Status
Not open for further replies.

szpuni

Technical User
Feb 12, 2008
69
IE
Hi all,

I have a problem with a drbd replication.
When I create my resorce by drbdadmin I`m getting this:

drbdadm create-md r0
md_offset 58991669248
al_offset 58991636480
bm_offset 58989834240

Found ext3 filesystem which uses 57609056 kB
current configuration leaves usable 57607260 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 create-md r0: exited with code 40

Partitions look like that:

fdisk -l

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfb51107f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 61 489951 83 Linux
/dev/sda2 62 2493 19535040 83 Linux
/dev/sda3 2494 2554 489982+ 82 Linux swap / Solaris
/dev/sda4 2555 9726 57609090 5 Extended
/dev/sda5 2555 9726 57609058+ 83 Linux

and space on them:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 19G 1.5G 16G 9% /
tmpfs 244M 0 244M 0% /lib/init/rw
varrun 244M 88K 244M 1% /var/run
varlock 244M 4.0K 244M 1% /var/lock
udev 244M 136K 244M 1% /dev
tmpfs 244M 0 244M 0% /dev/shm
lrm 244M 2.4M 242M 1% /lib/modules/2.6.28-11-server/volatile
/dev/sda1 464M 24M 417M 6% /boot
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 19G 1.5G 16G 9% /
tmpfs 244M 0 244M 0% /lib/init/rw
varrun 244M 88K 244M 1% /var/run
varlock 244M 4.0K 244M 1% /var/lock
udev 244M 136K 244M 1% /dev
tmpfs 244M 0 244M 0% /dev/shm
lrm 244M 2.4M 242M 1% /lib/modules/2.6.28-11-server/volatile
/dev/sda1 464M 24M 417M 6% /boot


Can somebody give me some tip why my drbd is failing to create resource?
 
It looks to me like it's telling you why it failed to create the resource... do you disagree with what it says for some reason? Have you tried shrinking the filesystem like it suggests?

Annihilannic.
 
Nope I haven`t.
/boot and / partitions have 20500MB and partition for DRBD is 50GB.

I have solve this problem by making another primary partition instead of logical one and everything went perfect

I don`t understand why there was a problem with logical partition for drbd. Any way it`s working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top