[DRBD-user] How to add a new DRBD resource on a production cluster

Schmidt, Florian florian.schmidt at centric.eu
Thu Sep 10 17:33:31 CEST 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

> Centric altro GmbH
Mittelbacher Str. 3
09224 Chemnitz

Phone  +49 371 8817 015
Fax    +49 371 8817 460

Email  florian.schmidt at centric.eu 
Web    www.centric-it.de

Neue E-Mail-Adresse per 1. August 2009: mailto:florian.schmidt at centric.eu

Special Expertise Partner SAP for Human Capital Management

Geschäftsführung: Gerard Sanderink ~ Sitz der Gesellschaft: Oberhausen
Registergericht: Duisburg HRB 17807 ~ Steuer-Nr.: 124/5704/1303 ~ USt.-Id.-Nr.: DE246840541 

The information included in this message is personal and/or confidential and intended exclusively for the addressees as stated. This message and/or the accompanying documents may contain confidential information and should be handled accordingly. If you are not the intended reader of this message, we urgently request that you notify Centric immediately and that you delete this e-mail and any copies of it from your system and destroy any printouts immediately. It is forbidden to distribute, reproduce, use or disclose the information in this e-mail to third parties without obtaining prior permission from Centric. We expressly point out that there are risks associated with the use of e-mail. Centric and the companies within the group shall not accept any liability whatsoever for damage resulting from the use of e-mail. Legally binding obligations can only arise for Centric by means of a written instrument, signed by an authorized representative of Centric. 

-----Ursprüngliche Nachricht-----
> Von: Mark Watts [mailto:m.watts at eris.qinetiq.com]
> Gesendet: Donnerstag, 10. September 2009 12:40
> An: Schmidt, Florian
> Cc: drbd-user at lists.linbit.com
> Betreff: Re: [DRBD-user] How to add a new DRBD resource on a production cluster
> On Thu, 2009-09-10 at 12:06 +0200, Schmidt, Florian wrote:
> > Hi list,
> >
> > i have to add a new DRBD-volume to our production cluster.
> >
> > This are the steps I would do:
> >
> > - create a new partition on both cluster nodes (fdisk)
> > - reboot both machines, so the kernel knows about the new partitions

Comment: I just learned, that one can trigger a reload of the partition table by hand with the command partprobe. So you can do this without a switchover (rebooting both servers would imply this), and no service interruption (if everything works fine ;) )

> > - edit the /etc/drbd.conf and add the new resource (both nodes)
> > - create internal metadata with drbdadm create-md
> > - bringing the thing up with drbdadm up (both nodes?)
> > - doing the initial sync with drbdadm -- --overwrite-data-of-peer
> > primary
> > - create a filesystem on the device
> > - use it!
> >
> > Did I miss something?
> >
> > Will I have to create new special device files in /dev/ with mknod and
> > if so, what is the correct command for this?
> I've just done exactly this, although I shrank an existing
> filesystem/LVM volume to create another volume.
> The only thing you have missing is at the end where you configure
> auto-mounting of the device, probably by making it a heartbeat-manager
> resource.

Yes that's what I will do later, but I first have to check some encryption and certificate-issues.


> Mark.
> --
> Mark Watts BSc RHCE MBCS
> Senior Systems Engineer, Managed Services Manpower
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
> GPG Key: http://www.linux-corner.info/mwatts.gpg

More information about the drbd-user mailing list