[DRBD-user] Initializing DRBD resource and Data loss?

Alireza Nematollahi alirezan at redback.com
Fri Nov 7 23:43:51 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.

Sorry I just checked my emails.
Please see inline (with [ALI] tags) for replies.


-----Original Message-----
From: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Lars Ellenberg
Sent: Thursday, November 06, 2008 7:39 AM
To: drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] Initializing DRBD resource and Data loss?

On Wed, Nov 05, 2008 at 08:47:02PM -0800, Alireza Nematollahi wrote:
> Hi guys,
> I have configured a resource say drbd0 and it is up and everything is alright. Now, I stop DRBD and do:
> #drbdadm create-md drbd0
> e-md drbd0
> md_offset 0
> al_offset 4096
> bm_offset 36864
> Found some data
>  ==> This might destroy existing data! <==
> Do you want to proceed?
> [need to type 'yes' to confirm] yes
> Valid meta data seems to be in place.
> Do you really want to overwrite?
> [need to type 'yes' to confirm]
> Does this really destroy the data on the disk?

it re-initializes the meta data area.
yes, that is a destructive operation.

[ALI] Okay. Good to know that!

> I am working on a bash script to automate some of the day-to-day tasks
> like this

why would you want to re-initialize the drbd meta data area?
and why would you think re-initializing the drbd meta data would be a
day-to-day task?

[ALI] Well, I didn't say re-initializing meta data is a day-to-day task. I said I'm trying to automate those that are!

I am not really sure about the usefulness of meta data and even what it is so that's maybe why my question sounded kinda stupid! Sorry about that!

> and wanted to know if this really has a negative effect on my existing
> data. By the way, I am using external meta data.

may I curiously ask what exactly you are up to?
[ALI] I'm working on a program that allows users setup DRBD through a set of scripts so that they don't need to know about the underlying technicalities of DRBD and ...

: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD(r) and LINBIT(r) are registered trademarks of LINBIT, Austria.
please don't Cc me, but send to list   --   I'm subscribed
drbd-user mailing list
drbd-user at lists.linbit.com

More information about the drbd-user mailing list