From: Brian Foster <bfoster@redhat.com>
To: "peng.hse" <peng.hse@xtaotech.com>
Cc: djwong@kernel.org, linux-xfs@vger.kernel.org, darrick.wong@oracle.com
Subject: Re: xfs wrongly report ENOSPACE
Date: Mon, 6 Feb 2017 08:14:35 -0500 [thread overview]
Message-ID: <20170206131435.GA57865@bfoster.bfoster> (raw)
In-Reply-To: <58986E06.5050500@xtaotech.com>
Please use the XFS list, updated cc.
On Mon, Feb 06, 2017 at 08:37:26PM +0800, peng.hse wrote:
> Hi DJ and xfs developers,
>
> i am ceph developer, build the OSD on top of the xfs mount point. the kernel
> xfs module i used was build from the 4.9.8 kernel release from
> kernel.org, that includes your recent changes in Dec, 2016.
>
> recently, i found our cluster will get faulted due to the xfs mount wrongly
> report there is no space to create the new file as
> " No space left on device ", but apparently the xfs mount point only be
> around 50% full.
>
> i used the systemtap to narrow it down the the function xfs_ialloc_ag_select
> which reports no free ag selected, the problem seems
> still exist, not sure your recent patches will fix it or not.
>
> i am very glad to provide more info if your like to assist you to identify
> the problem.
http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F
In this case, please at least provide the output from 'df -i <mnt>,'
'xfs_info <mnt>' and 'xfs_db -c "freesp -s" <dev>.'
Chances are that this is caused by free space fragmentation. This means
that while there might be plenty of free space, there isn't a contiguous
free extent large enough to allocate an inode chunk. We've seen this
kind of thing before with Ceph and it can be exacerbated by the use of
large inodes. Potential workarounds may be to use the default inode size
and/or enable the use of sparse inodes ('mkfs.xfs -i sparse <dev>').
Another possible cause is that you've simply hit the maximum inode
allocation limit (see the xfs_growfs manpage and the '-m' option)...
Brian
next parent reply other threads:[~2017-02-06 13:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <58986E06.5050500@xtaotech.com>
2017-02-06 13:14 ` Brian Foster [this message]
2017-02-07 12:39 ` xfs wrongly report ENOSPACE peng.hse
2017-02-07 13:01 ` Carlos Maiolino
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=20170206131435.GA57865@bfoster.bfoster \
--to=bfoster@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=djwong@kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=peng.hse@xtaotech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox