<br>Hi,<br><br>i just got it working.<br><br>these are the steps i took:<br><br>shutdown VM<br>lvextend on botch machines<br>drbdadmin /dev/drbd17 resize<br>wait for sync complete<br>fdisk /dev/drbd17<br>delete the old partition<br>
create a new partition, just with the new full size<br>kpartx -qv /dev/drbd17<br>now I have the FS under /dev/mapper/drbd17p1<br>e2fsck -f /dev/mapper/drbd17p1<br>resize2fs /dev/mapper/drbd17p1<br>kpartx -d /dev/drbd17<br>
<br>now boot the VM and check with df -h if the HD is now bigger<br>Hope I didnt miss anything.<br><br>thnx for your help<br><br><br>.r<br><br><div class="gmail_quote">On Mon, Jun 15, 2009 at 8:36 PM, Daniel Bourque <span dir="ltr"><<a href="mailto:dbourque@weatherdata.com">dbourque@weatherdata.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">you can resize an LVM backed DRBD volume live. I tested prior to going<br>
live with our NFS cluster.<br>
<br>
<br>
assuming that /dev/drbd0 sits on top of /dev/vg00/lv05 ,<br>
<br>
<br>
while both nodes in connected sates<br>
<br>
both nodes:<br>
lvextend -L+5G /dev/vg00/lv05<br>
master:<br>
drbdsetup /dev/drbd0 resize<br>
wait for sync complete<br>
resize2fs /dev/drbd0 ( assuming ext3 )<br>
<br>
<br>
enjoy<br>
<br>
Dan<br>
<div><div></div><div class="h5"><br>
<br>
Rainer Sokoll wrote:<br>
> On Mon, Jun 15, 2009 at 05:21:49PM +0200, Heiko wrote:<br>
><br>
>> Hello,<br>
>><br>
>> i have to grow one VM that is mirrored with drbd.<br>
>> We use LVM partitions for drbd.<br>
>><br>
>> Will the following steps be enough?<br>
>><br>
>> shutdown vm<br>
>> shutdown drbd devices<br>
>> lvresize on both servers<br>
>> connect drbd devices<br>
>><br>
><br>
> I never did this, but there is a subcommand for drbdadm: resize.<br>
> >From the man page:<br>
><br>
> resize Causes DRBD to re-examine all sizing constraints, and resize<br>
> the resource's device accordingly. For example in case you<br>
> increased the size of your backing storage devices (on both<br>
> nodes of course), then DRBD will adopt to the new size after you<br>
> called this command on one of your nodes. Since new storage<br>
> space must be synchronised this command only works if there is<br>
> at least one primary node present.<br>
><br>
> Rainer<br>
> _______________________________________________<br>
> drbd-user mailing list<br>
> <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
><br>
><br>
><br>
><br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</div></div></blockquote></div><br>