[Top] [All Lists]

Re: How to determine the reserved blocks in xfs filesystem ?

To: Mukul Malhotra <smilemukul2005@xxxxxxxxx>
Subject: Re: How to determine the reserved blocks in xfs filesystem ?
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Tue, 18 Nov 2014 08:32:07 -0500
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAJtCNH0tgtCw0F7322b_qvbM9-uGGSsLLiPQj6jk1yyvWDQMYg@xxxxxxxxxxxxxx>
References: <CAJtCNH0tgtCw0F7322b_qvbM9-uGGSsLLiPQj6jk1yyvWDQMYg@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.23 (2014-03-12)
On Tue, Nov 18, 2014 at 06:05:58PM +0530, Mukul Malhotra wrote:
> âHello,
> Does xfs have reserved blocks too, like ext* ? if yes, how can they be
> determined ?â

XFS reserves blocks internally such that it can perform operations when
all free space is consumed, etc. It looks like 5% is the default.

I don't think it's "like ext4," however, which reserves blocks for the
root user. I don't believe the reserved blocks in XFS are accessible for
file allocation by any user unless the reserve pool is modified as such.

> Can you provide the specific command.

The following command can get/set the reserved block count on an active

xfs_io -x -c "resblks" <mnt>

Note that this can lead to problems if reduced too much and all space is
consumed, as sometimes block allocation is required to perform space
freeing operations (removing a file, etc.). This is probably a reason
the resblks command is only available in xfs_io expert mode. ;)


> Thanks
> Mukul

> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

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