[DRBD-user] Drdb migration help!

Matt Graham danceswithcrows at usa.net
Wed Aug 3 18:02:14 CEST 2011

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


From: Hell Fire <hellanfire at gmail.com>
> I have a 2 node openfiler cluster using drbd for replication. Drbd
> version 8.2.7, kernel 2.6.26.
> 
> /dev/sda1 -> /  root partition where openfiler resides 2GB
> /dev/drbd0 on top /dev/sda2  /cluster_metadata   512 MB
> /dev/drbd1 on top /dev/cciss/c0d1p1  used for LVM    66GB
> /dev/drbd2 on top /dev/cciss/c0d2p1  used for LVM   66GB
> 
> I'm planning to migrate those servers to centos 5.6, kernel 2.6.18,
> but my idea is to reuse the drbd disks without losing data. Is that
> possible?  I mean I just want to install centos on /dev/sda1 where
> openfiler is located, wiping it out and hoping that centos will
> detect my drbd disks data without problems...

I've done something similar, though it was taking RHEL drbd clusters and
turning them into CentOS drbd clusters.  Whatever you do, don't have the
installer write anything to sda2 or the cciss disks.  Of course, copy your
drbd.conf somewhere safe before doing anything.  Is this primary/secondary or
dual-primary?  If the former, do the install on the secondary box first to
minimize the chance of stupid things causing downtime.

The base CentOS DRBD RPM appears to be 8.0.12, so you may have to roll your
own RPM for 8.3, but this is pretty easy.  Just install the kernel-dev package
and follow the directions in the drbd tarball.  IIRC, the 8.0.12 stuff can
read and use the 8.2.7 metadata and talk to an 8.2.7 without having a cow. 
However, the 8.3 series performs better wrt I/O than 8.0.12 according to my
tests.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see




More information about the drbd-user mailing list