[DRBD-user] Problem with create-md

Lars Ellenberg lars.ellenberg at linbit.com
Thu Aug 23 16:27:34 CEST 2007


On Thu, Aug 23, 2007 at 01:49:30PM +0200, Rene Mayrhofer wrote:
> Hi list,
> 
> I am currently using drbd8-utils 8.0.4 under Debian (package from testing, 
> recompiled for etch). For most of the resources, it works without a problem, 
> but for some I get:
> 
> [root at jupiter1 ~]# drbdadm create-md xenswap-ns1
> v08 Magic number not found
> v07 Magic number not found
> About to create a new drbd meta data block
> on /dev/mapper/xendomains-swap_ns1.
> 
>  ==> This might destroy existing data! <==
> 
> Do you want to proceed?
> [need to type 'yes' to confirm] yes
> 
> lseek64() failed: Invalid argument
> Command 'drbdmeta /dev/drbd3 v08 /dev/mapper/xendomains-swap_ns1 internal 
> create-md' terminated with exit code 20
> drbdadm aborting
> 
> xendomains-swap_ns1 is a LV on LVM:
> 
> [root at jupiter1 ~]# lvdisplay xendomains
> ...
>   --- Logical volume ---
>   LV Name                /dev/xendomains/swap_ns1
>   VG Name                xendomains
>   LV UUID                a1kpVJ-CONz-Q2vY-qhBC-uF1N-50ju-hI2C4B
>   LV Write Access        read/write
>   LV Status              available
>   # open                 0
>   LV Size                100.00 MB

configure for "flexible-internal".
for drbd 0.7-style fixed size 128MB meta data, 100MB backend is
obviously too small :)
 drbdmeta /dev/drbd3 v08 /dev/mapper/xendomains-swap_ns1 flex-internal create-md

(flexible-meta-disk internal; in drbd.conf)

-- 
: Lars Ellenberg                            Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list