[DRBD-user] How to resize DRBD on top of LVM (online)

Lars Ellenberg lars.ellenberg at linbit.com
Tue Feb 3 09:45:14 CET 2009

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


On Mon, Feb 02, 2009 at 09:09:20PM +0100, ml at bortal.de wrote:
> Hello List,
>
> i would like to resize my drbd resource online. My 2nd node is offline  
> and the one i use here is connected, sync and primary.
>
> Some of my drbd.conf:
> --------------------------
>        on host1 {
>                address 10.0.0.1:7789;
>                device /dev/drbd1;
>                disk /dev/vg/pgone-disk;
>                meta-disk /dev/vg/meta[0];
>        }
>
> My current partition size of /dev/drbd1 is 29G (it was 20GB at the very  
> beginning- Then i played around with it. :) )
>
> 1.) Create a empty drbd1 resource for proove of concept:
> mkfs.ext3 /dev/drbd1
> mount /dev/drbd1 /mnt
> dmesg > /mnt/test
>
> 2.) Resize lvm
> lvresize -L +2G /dev/vg/pgone-disk
>  Extending logical volume pgone-disk to 31.00 GB
>  Logical volume pgone-disk successfully resized
>
>
> 3.) Now i try to resize my drbd resource:
> drbdsetup /dev/drbd1 resize --size=30G
>
> But in my logs i get:
> ---
> kernel: drbd1: Requested disk size is too big (31457280 > 20971520)
>
>
> What am i doing wrong? How can i resize my drbd partition on top of lvm  
> online? Whats causing that 20GB limit from the logs?

DRBD must not attempt to resize just one node.

you need to resize the lower level device on the peer as well.
if there is no peer right now, you cannot resize.

if there never has been a peer,
I'm uncertain wether resizing is
supposed to work or not.

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

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list