Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

Problem with upgrading drbd storage

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


s.priebe at allied-internet

Nov 23, 2009, 7:30 AM

Post #1 of 4 (810 views)
Permalink
Problem with upgrading drbd storage

Hi!

I want to upgrade disk space two servers running DRBD.

I've now done the following:
1.) stopped the backup machine
2.) upgraded the Raid 10 in that machine (without destroying any data)
3.) deleted partition and created new bigger partition on that device
4.) Data is still there when i mount the partition i see everything
5.) but drbd does not start to sync after starting drbd.

1: Failure: (119) No valid meta-data signature found.

==> Use 'drbdadm create-md res' to initialize meta-data area. <==

So now the status is:
Diskless/UpToDate on the backup machine.

Where has the metadata gone? Shouldn't drbd able to sync now?

Thanks!

Stefan
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


Robert at saq

Nov 23, 2009, 7:53 AM

Post #2 of 4 (763 views)
Permalink
Re: Problem with upgrading drbd storage [In reply to]

I think you need to create the Meta Data on the disk first.

You could try this on the upgraded machine but beware I'm pretty sure
its destructive:
drbdadm create-md RESOURCENAME

Then do this from the un-upgraded machine with the good data (Be warned
this is DESTRUCTIVE and will overwrite all data on the other machine):
drbdadm -- --overwrite-data-of-peer primary RESOURCENAME

My guess is the metadata was wiped when you edited the partition table.
You might want to wait for a second opinion on this as I am not a DRBD
expert.


Rob



-----Original Message-----
From: drbd-user-bounces [at] lists
[mailto:drbd-user-bounces [at] lists] On Behalf Of Stefan Priebe -
allied internet ag
Sent: 23 November 2009 15:30
To: drbd-user [at] lists
Subject: [DRBD-user] Problem with upgrading drbd storage

Hi!

I want to upgrade disk space two servers running DRBD.

I've now done the following:
1.) stopped the backup machine
2.) upgraded the Raid 10 in that machine (without destroying any data)
3.) deleted partition and created new bigger partition on that device
4.) Data is still there when i mount the partition i see everything
5.) but drbd does not start to sync after starting drbd.

1: Failure: (119) No valid meta-data signature found.

==> Use 'drbdadm create-md res' to initialize meta-data area.
<==

So now the status is:
Diskless/UpToDate on the backup machine.

Where has the metadata gone? Shouldn't drbd able to sync now?

Thanks!

Stefan
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

The SAQ Group

Registered Office: 18 Chapel Street, Petersfield, Hampshire GU32 3DZ
SAQ is the trading name of SEMTEC Limited. Registered in England & Wales
Company Number: 06481952

http://www.saqnet.co.uk AS29219

SAQ Group Delivers high quality, honestly priced communication and I.T. services to UK Business.

Broadband : Domains : Email : Hosting : CoLo : Servers : Racks : Transit : Backups : Managed Networks : Remote Support.

ISPA Member

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


nine at detonation

Nov 23, 2009, 7:53 AM

Post #3 of 4 (764 views)
Permalink
Re: Problem with upgrading drbd storage [In reply to]

On Monday 23 November 2009 16:30:23 Stefan Priebe - allied internet ag wrote:

> I've now done the following:
> 1.) stopped the backup machine
> 2.) upgraded the Raid 10 in that machine (without destroying any data)
> 3.) deleted partition and created new bigger partition on that device
> 4.) Data is still there when i mount the partition i see everything
> 5.) but drbd does not start to sync after starting drbd.
>
> Where has the metadata gone? Shouldn't drbd able to sync now?

DRBD stores it's meta data at the end of the used device. So it cannot find it
anymore since you moved the end away from the meta data. That's the reason why
one should follow the DRBD user's guide which tells you to do the resize while
drbd is online, so drbd still knows where it's meta data is and can move it to
the new end of the device. Offline resize is much more difficult.

Regards,
Stefan
Attachments: signature.asc (0.19 KB)


s.priebe at allied-internet

Nov 23, 2009, 7:56 AM

Post #4 of 4 (767 views)
Permalink
Re: Problem with upgrading drbd storage [In reply to]

Hi!

I thought the online resize only applies to resizing drbd block layer
and resizing the file system.

I thought resizing the partition is no problem. So when i set now the
old partition size it should work again :-)

Stefan

Stefan Seifert schrieb:
> On Monday 23 November 2009 16:30:23 Stefan Priebe - allied internet ag wrote:
>
>> I've now done the following:
>> 1.) stopped the backup machine
>> 2.) upgraded the Raid 10 in that machine (without destroying any data)
>> 3.) deleted partition and created new bigger partition on that device
>> 4.) Data is still there when i mount the partition i see everything
>> 5.) but drbd does not start to sync after starting drbd.
>>
>> Where has the metadata gone? Shouldn't drbd able to sync now?
>
> DRBD stores it's meta data at the end of the used device. So it cannot find it
> anymore since you moved the end away from the meta data. That's the reason why
> one should follow the DRBD user's guide which tells you to do the resize while
> drbd is online, so drbd still knows where it's meta data is and can move it to
> the new end of the device. Offline resize is much more difficult.
>
> Regards,
> Stefan
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.