[DRBD-user] bigger hard-disk

Lars Ellenberg lars.ellenberg at linbit.com
Thu May 24 11:10:18 CEST 2007

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

On Wed, May 23, 2007 at 02:50:51PM -0500, Kirby Bakken wrote:
> We have a pair of 80GB hard-drives in a drbd cluster, and we'll be replacing
> them with two 500GB hard-drives.  Can we just:
> 1) replace the secondary and invalidate/rsync it
> 2) replace the primary, and invalidate/rsync it

please talk about re-sync, not rsync,
to avoid confusion with one of my favorite tools...

> Or will we have to save all the data off to the side (or regenerate it later),
> and do a total re-install?  


3) make sure they are connected,
   go to the node with in "Connected Primary/Secondary",
   # drbdadm resize all

   I think, given the sequence of events, this should be enough already,
   but I may be wrong, so...,
   if there is no resync yet,
   go to the other node and
   # drbdadm resize all
   there too.
   now there should be a resync Primary -> Secondary of the part of the
   disk 80GB .. 500 GB.

   verify the size of drbd with "cat /proc/partitions"

4) once that resync is through (theoretically you can do it during the
   resync already, but I recommend to wait for it to finish)
   xfs_growfs /whereever
   (or resize2fs or pvresize whatever you use drbd for.)

: Lars Ellenberg                            Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :
please use the "List-Reply" function of your email client.

More information about the drbd-user mailing list