Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Fri, Feb 29, 2008 at 03:13:11PM +0800, xu Feng wrote: > HI > > I am new to DRBD and I meet problems when I issue "drbdadm create-md all" on > the drbd node. > > Basic info is > > drbd-8.2.5 > > centos 4.4 > > [root at drbd01 ~]# uname -a > Linux drbd01 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 > i386 > GNU/Linux > > [root at drbd01 ~]# df -h > Filesystem Size Used Avail Use% Mounted on > /dev/sda2 6.9G 2.3G 4.3G 36% / > /dev/sda1 145M 12M 126M 9% /boot > none 125M 0 125M 0% /dev/shm > > [root at drbd01 ~]# fdisk -l > > Disk /dev/sda: 10.7 GB, 10737418240 bytes > 255 heads, 63 sectors/track, 1305 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sda1 * 1 19 152586 83 Linux > /dev/sda2 20 933 7341705 83 Linux > /dev/sda3 934 1194 2096482+ 83 Linux > /dev/sda4 1195 1305 891607+ 5 Extended > /dev/sda5 1195 1240 369463+ 83 Linux > /dev/sda6 1241 1305 522081 82 Linux swap > > Part of drbd.conf > > on drbd01 { > device /dev/drbd0; > disk /dev/sda3; > address 192.168.1.53:7788; > meta-disk /dev/sda5[0]; > } > > on drbd02 { > device /dev/drbd0; > disk /dev/sda3; > address 192.168.1.31:7788; > meta-disk /dev/sda5[0]; > } > > ERROR MESSAGE is > > [root at drbd01 ~]# drbdadm create-md all > v08 Magic number not found > md_offset 0 > al_offset 4096 > bm_offset 36864 > > Found ext3 filesystem > This would corrupt existing data. > If you want me to do this, you need to zero out the first part > of the device (destroy the content). > You should be very sure that you mean it. > Operation refused. > > Command 'drbdmeta /dev/drbd0 v08 /dev/sda5 0 create-md' terminated with exit > code 40 > command exited with code 40 > [root at drbd01 ~]# > > Though I googled on the Internet, nothing useful turned up. > > Any suggestions will be welcomed. > > Thank You in Advance. This is the safeguard in drbdadm at work. Aparently something/someone did at some point create an ext3 on sda5. If that was not intentional, and does not contain any useful data, you just have to follow the steps the error message suggests. Otherwise my safeguards in drbd meta data creation have just prevented you from doing something that would have hurt. -- : Lars Ellenberg http://www.linbit.com : : DRBD/HA support and consulting sales at linbit.com : : LINBIT Information Technologies GmbH Tel +43-1-8178292-0 : : Vivenotgasse 48, A-1120 Vienna/Europe Fax +43-1-8178292-82 : __ please use the "List-Reply" function of your email client.