All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Geir A. Myrestrand" <geir.myrestrand@falconstor.com>
To: linux-xfs@oss.sgi.com
Subject: Re: Will xfs_growfs succeed on a full file system?
Date: Tue, 23 Jan 2007 12:18:59 -0500	[thread overview]
Message-ID: <45B64383.4030603@falconstor.com> (raw)
In-Reply-To: <45B63AA1.8010504@sandeen.net>

Eric Sandeen wrote:
> Geir A. Myrestrand wrote:
>> Does xfs_growfs depend on some space left on the file system in order to 
>> be able to grow it?
>>
>> I have a colleague who ran into an issue where a file system resize 
>> failed. The file system is 100% full.
>>
>> Aside from analyzing what happened in his case, should XFS be able to 
>> grow a file system that is 100% full?
>>
>> The device has already been expanded, it is the XFS file system that 
>> fails to resize. I just wonder if that is by design, or whether it is an 
>> issue.
>>
> 
> Off the top of my head, I think it should work ok even if full, although
> I could be (and apparently I am) wrong here.  How exactly did the growfs
> fail?
> 
> I actually wasn't able to completely fill my filesystem, got stuck at
> 20k left.  :)  but growing that from 50M to 100M worked fine for me.
> 
> -Eric

The only error I saw in his output was this line:

xfs_growfs:
XFS_IOC_FSGROWFSDATA xfsctl failed: No space left on device

He claims that the file system is actually resized after it has been 
re-mounted. He verifies with df:

After expansion (with xfs_growfs):

# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vbdi6               93504     93504         0 100% /nas/NASDisk-00006

# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/vbdi6                64       6      58   10% /nas/NASDisk-00006

After re-mount:

# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vbdi6              200000     93516    106484  47% /nas/NASDisk-00006

# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/vbdi6            204800       6  204794    1% /nas/NASDisk-00006


-- 

Geir A. Myrestrand

  reply	other threads:[~2007-01-23 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 15:19 Will xfs_growfs succeed on a full file system? Geir A. Myrestrand
2007-01-23 16:41 ` Eric Sandeen
2007-01-23 17:18   ` Geir A. Myrestrand [this message]
2007-01-24  2:07 ` David Chinner
2007-01-24  2:34   ` Geir A. Myrestrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45B64383.4030603@falconstor.com \
    --to=geir.myrestrand@falconstor.com \
    --cc=linux-xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.