xfs
[Top] [All Lists]

Re: xfs growth?

To: Drew Bloechl <drew@xxxxxxxxxxxx>
Subject: Re: xfs growth?
From: Daniel Moore <dxm@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 07 Feb 2001 16:40:12 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Tue, 06 Feb 2001 21:27:47 -0800." <20010206212746.C24260@perilith.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Drew Bloechl writes:
 => On Tue, Feb 06, 2001 at 11:47:11PM -0600, smounico@xxxxxxxxxxx wrote:
 => > I apologize for the newbie question but I've parsed the mailing list and 
 => I
 => > can't seem to find an answer. If xfs continuously grows (more space
 => > taken per file) due to the journaling, and there is no xfs_shrink ( I saw
 => > the posts on the list), will my filesystem continue to fill so much so
 => > that eventually, I will run out of space?  Is the only way around this to
 => > perform an xfs_dump and restore?
 => 
 => What gave you the idea the filesystem continuously grows?  The journal
 => gets reused and it will never take more space than you've allocated for
 => it.

There was a discussion on this list last week regarding xfs_growfs.
What xfs_growfs does is grow a filesystem ie if you created a 1Gb
XFS filesystem on a 2Gb disk and then wanted to use up the remaining
1Gb, you could use xfs_growfs to grow the existing filesystem out
to fill the available space.

There is no xfs_shrinkfs, because making a filesystem smaller 
(non-destructively) is much harder.

I think that discussion must have been what confused Sonny - we were
talking about changing the size of the filesystem, not anything relating
to the log. The log is allocated when you generate the filesystem, and
is used for journalling all meta-data changes. As Drew points out,
it doesn't change size, instead it is continually reused.

Hope that clears it up a little...

-----------------------------------------------------
 Daniel Moore                  dxm@xxxxxxx
 R&D Software Engineer         Phone: +61-3-98348209
 SGI Performance Tools Group   Fax:   +61-3-98132378
-----------------------------------------------------


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