[DRBD-user] drbdadm create-md all -- failed

xu Feng xufeng at yuanjie.net
Tue Mar 4 04:30:15 CET 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,

I solved this problem by doing a 

dd if=/dev/zero of=/dev/sda5 bs=1M count=128

By the way, I suppose that the error message "If you want me to do this, you
need to zero out the first part of the 
device (destroy the content)."
should be more detailed and with the suggestion command like above 
" dd if=/dev/zero of=/dev/sda5 bs=1M count=128"included.It will help a lot
for new comers.

Thank You All.

Xu Feng
 
Yuanjie Networks,Shanghai,China
 
MSN: xufengnju at 163.com
 

> -----Original Message-----
> From: drbd-user-bounces at lists.linbit.com
> [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of xu Feng
> Sent: 2008年2月29日 15:13
> To: drbd-user at lists.linbit.com
> Subject: [DRBD-user] drbdadm create-md all -- failed
> 
> 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.
> 
> 
> Xu Feng
> 
> Yuanjie Networks,Shanghai,China
> 
> MSN: xufengnju at 163.com
> 
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user




More information about the drbd-user mailing list