Solved

OpenFiler drbdadm create-md cluster_metadata exited with code 40

Posted on 2011-09-21
5
523 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
  • 3
5 Comments
 
LVL 38

Assisted Solution

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

Accepted Solution

by:
Roy earned 300 total points
Comment Utility
[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
Comment Utility
Will try that tomorrow
0
 
LVL 5

Author Comment

by:Kmitra
Comment Utility
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
Comment Utility
moved on with VMware VSA and starwind HA iscsi solutions,
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now