Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi, i just got it working. these are the steps i took: shutdown VM lvextend on botch machines drbdadmin /dev/drbd17 resize wait for sync complete fdisk /dev/drbd17 delete the old partition create a new partition, just with the new full size kpartx -qv /dev/drbd17 now I have the FS under /dev/mapper/drbd17p1 e2fsck -f /dev/mapper/drbd17p1 resize2fs /dev/mapper/drbd17p1 kpartx -d /dev/drbd17 now boot the VM and check with df -h if the HD is now bigger Hope I didnt miss anything. thnx for your help .r On Mon, Jun 15, 2009 at 8:36 PM, Daniel Bourque <dbourque at weatherdata.com>wrote: > 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 > > > > > > > > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090616/e5a5c50e/attachment.htm>