Solved

OpenFiler drbdadm create-md cluster_metadata exited with code 40

Posted on 2011-09-21
5
578 Views
Last Modified: 2014-02-03
Hi everyone

I am trying to configure DRBD using Openfiler . I followed the links
http://www.howtoforge.com/installing-and-configuring-openfiler-with-drbd-and-heartbeat
http://www.crebelo.co.uk/openfiler-guide-print.php

in both cases I have got the following error  
[root@filer01 ~]# drbdadm create-md cluster_metadata
md_offset 534638592
al_offset 534605824
bm_offset 534589440

Found ext3 filesystem
      522112 kB data area apparently used
      522060 kB left usable by current configuration

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 0 v08 /dev/sda3 internal create-md' terminated with exit code 40
drbdadm create-md cluster_metadata: exited with code 40

Please help
Thanks
Kunal
0
Comment
Question by:Kmitra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 38

Assisted Solution

by:wesly_chen
wesly_chen earned 200 total points
ID: 36577565
Please post
fdisk  -l   (on both machines)
mount    (on both machines)
drbd.conf
0
 
LVL 2

Accepted Solution

by:
Roy earned 300 total points
ID: 36592847
[root@filer01 ~]# drbdadm create-md cluster_metadata
md_offset 534638592
al_offset 534605824
bm_offset 534589440

Found ext3 filesystem
      522112 kB data area apparently used
      522060 kB left usable by current configuration

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.

which means

    you created your filesystem before you created your DRBD resource, or
    you created your filesystem on your backing device, rather than your DRBD,

Replace /dev/sdaX with the block device you are targeting.

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

Once this has completed the drbdadm create-md cluster_metadata command will complete with a "success."

PS: i hope you are trying to create a new Cluster so whatever data you have on the petition is not required because that "DD" command will erase everything on it.
1
 
LVL 5

Author Comment

by:Kmitra
ID: 37174185
Will try that tomorrow
0
 
LVL 5

Author Comment

by:Kmitra
ID: 38046376
Left the project for few month as I have some other things to take care for now. I will restart on this project some time after December 2012
0
 
LVL 5

Author Comment

by:Kmitra
ID: 39830991
moved on with VMware VSA and starwind HA iscsi solutions,
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question