[DRBD-user] resize an drbd/lvm/xen

Daniel Bourque dbourque at weatherdata.com
Mon Jun 15 20:36:51 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.


you can resize an LVM backed DRBD volume live. I tested prior to going 
live with our NFS cluster.


assuming that /dev/drbd0 sits on top of /dev/vg00/lv05 ,


while both nodes in connected sates

        both nodes:
                lvextend -L+5G /dev/vg00/lv05
        master:
                drbdsetup /dev/drbd0 resize
                wait for sync complete
                resize2fs /dev/drbd0 ( assuming ext3 )


enjoy

Dan


Rainer Sokoll wrote:
> On Mon, Jun 15, 2009 at 05:21:49PM +0200, Heiko wrote:
>   
>> Hello,
>>
>> i have to grow one VM that is mirrored with drbd.
>> We use LVM partitions for drbd.
>>
>> Will the following steps be enough?
>>
>> shutdown vm
>> shutdown drbd devices
>> lvresize on both servers
>> connect drbd devices
>>     
>
> I never did this, but there is a subcommand for drbdadm: resize.
> >From the man page:
>
> resize   Causes  DRBD  to re-examine all sizing constraints, and resize
>        the resource's device  accordingly.  For  example  in case  you
>        increased  the  size  of  your  backing storage devices (on both
>        nodes of course), then DRBD will adopt to the new size after you
>        called  this  command  on  one  of your nodes. Since new storage
>        space must be synchronised this command only works if there  is
>        at least one primary node present.
>
> Rainer
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>
>
>   



More information about the drbd-user mailing list