xfs
[Top] [All Lists]

Re: GrowFSing

To: Josh Durham <jmd@xxxxxxxxxx>
Subject: Re: GrowFSing
From: Steve Lord <lord@xxxxxxx>
Date: Wed, 23 May 2001 14:25:46 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Message from Josh Durham <jmd@xxxxxxxxxx> of "Wed, 23 May 2001 15:08:09 EDT." <Pine.LNX.4.21.0105231504000.17257-100000@xxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> We're trying to migrate a large volume from ReiserFS to XFS.  We have a
> 350GB volume, with a 150GB reiserfs partition.  If I create an XFS
> parition(it would be after the reiserfs one), copied the data from the
> reiserfs partition to the xfs one, remove the reiserfs partition, would I
> be able to growfs the xfs partition to use the entire volume?
> 
> Thanks alot,
> 
>   - Josh


Unfortunately not, you can only grow at the end, not the beginning. Now,
if this is LVM or md, there may be tricks you can play to move things about,
but that would require boundaries to align correctly.

You could do this (CAREFULLY):

        o create a temporary partition at the end of the device,
        o copy the reiserfs data into this partition
        o remove the original partition which contained the reiserfs filesystem
        o make a larger partition containing all the space except that in
          the new end of device partition, and put xfs on it.
        o copy the data from the temp partition into xfs
        o remove the temp partition and extend the xfs partition to the full
          device
        o run growfs

I wish I had a simpler suggestion! I have done this type of thing, but not with
that much data. Moving the reiserfs filesystem might be faster at the block
level or the filesystem level (i.e. dd or cp -r) depending on how full it is.

Steve



<Prev in Thread] Current Thread [Next in Thread>