From: Dave Chinner <david@fromorbit.com>
To: "Sławomir Nowakowski" <nailman23@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: XFS issue under 2.6.25.13 kernel
Date: Sat, 23 Aug 2008 11:05:24 +1000 [thread overview]
Message-ID: <20080823010524.GM5706@disturbed> (raw)
In-Reply-To: <50ed5c760808220303p37e03e8dge5b868a572374e0b@mail.gmail.com>
On Fri, Aug 22, 2008 at 12:03:40PM +0200, Sławomir Nowakowski wrote:
> Dear All,
>
> We have a problem with implementing xfs file system for Linux. The problem
> appears after mounting xfs file system on 2.6.25.13 kernel that is created on
> 2.6.17.13 kernel.
>
> File system is created on logical volume in the following way:
>
> lvcreate -L 4G volume1 -n test
> mkfs.xfs /dev/volume1/test
> mount /dev/volume1/test /mnt/x
>
> After mounting it on 2.6.17.13 kernel "df -B 1" output looks like this:
>
> /dev/volume1/test 4284481536 147456 4284334080 1% /mnt/x
>
> but in case of 2.6.25.13 kernel:
>
> /dev/volume1/test 4284481536 4489216 4279992320 1% /mnt/x
>
> The same happens in case of 2.6.26.3 kernel.
Yeah, we reserved 4MB of space for unreserved delayed metadata
allocations to allow transactions to succeed when at ENOSPC. That
reservation is accounted as 'used space' to prevent it being used by
data.
> As it is shown after mounting the volume in newer kernel size of file system
> is visible smaller. The problem appears when on this volume exists one big
> file, occupying all available space. After trying to mount it under newer
> kernel, the file is cut because available free space is smaller.
What is on disk will not change - the reservation is purely an
in-memory construct. i.e. if the file already exists then it
won't change on upgrade. Can you show how the file changes just
by booting a different kernel (e.g. ls -l output, md5sums, etc).
> Is it known issue and/or does solution or workaround exists?
$ sudo xfs_io -x -c 'resblks 0' <file in filesystem>
will remove the reservation. This means your filesystem can shutdown
or lose data at ENOSPC in certain circumstances....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2008-08-23 1:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-22 10:03 XFS issue under 2.6.25.13 kernel Sławomir Nowakowski
2008-08-23 1:05 ` Dave Chinner [this message]
2008-08-25 11:08 ` Sławomir Nowakowski
2008-08-26 1:41 ` Dave Chinner
2008-08-26 12:53 ` Sławomir Nowakowski
2008-08-27 0:52 ` Dave Chinner
2008-08-27 18:09 ` Sławomir Nowakowski
2008-08-28 0:20 ` Dave Chinner
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=20080823010524.GM5706@disturbed \
--to=david@fromorbit.com \
--cc=nailman23@gmail.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox