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