[DRBD-user] Migrate data to bigger disks

Lars Ellenberg lars.ellenberg at linbit.com
Thu Feb 26 14:46:22 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 Thu, Feb 26, 2009 at 11:05:16AM +0100, Heiko Petzsch wrote:
> Hello Jürgen,
> 
> > You need to remove the ext3 journal first. Then resize. And after
> > that  add the journal again.
> > Remove: tune2fs -O ^has_journal /dev/drbd0
> > Add:    tune2fs -j /dev/drbd0
> > 
> > After my experience I looked at
> > http://www.howtoforge.com/linux_resizing_ext3_partitions
> > - seems fairly complete.
> 
> The example includes resizing the partition with the help of fdisk - do I have 
> to do that too ?

no need.
there are no partitions on DRBD.
the DRBD is already the correct size.

resize2fs is supposed to "just work", even "online", if the file system
was "mkfs"ed with a recent enough (like, less than ~two years old)
mke2fs.

that "tune2fs" stuff above may have been necessary during _shrinking_,
or with "old" e2fs tools.

but, personally I have not seen any problems with it
within the last two years.

e2fsck -f before cannot hurt, though,
because, I mean, in case it was corrupted before the resize,
things will hardly improve...


-- 
: 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