* Re: v0.80.4 Firefly released
[not found] <alpine.DEB.2.00.1407151634250.21336@cobra.newdream.net>
@ 2014-07-16 9:22 ` Christoph Hellwig
2014-07-16 17:26 ` Gregory Farnum
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2014-07-16 9:22 UTC (permalink / raw)
To: Sage Weil; +Cc: ceph-devel, xfs
On Tue, Jul 15, 2014 at 04:45:59PM -0700, Sage Weil wrote:
> This Firefly point release fixes an potential data corruption problem
> when ceph-osd daemons run on top of XFS and service Firefly librbd
> clients. A recently added allocation hint that RBD utilizes triggers
> an XFS bug on some kernels (Linux 3.2, and likely others) that leads
> to data corruption and deep-scrub errors (and inconsistent PGs). This
> release avoids the situation by disabling the allocation hint until we
> can validate which kernels are affected and/or are known to be safe to
> use the hint on.
I've not really seen an report for that on the XFS list, could it be
that you're running into the issue fixed by
"xfs: Use preallocation for inodes with extsz hints"
(commit aff3a9edb7080f69f07fe76a8bd089b3dfa4cb5d)?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v0.80.4 Firefly released
2014-07-16 9:22 ` v0.80.4 Firefly released Christoph Hellwig
@ 2014-07-16 17:26 ` Gregory Farnum
2014-07-16 22:31 ` Dave Chinner
0 siblings, 1 reply; 4+ messages in thread
From: Gregory Farnum @ 2014-07-16 17:26 UTC (permalink / raw)
To: Christoph Hellwig, Samuel Just; +Cc: ceph-devel@vger.kernel.org, Sage Weil, xfs
On Wed, Jul 16, 2014 at 2:22 AM, Christoph Hellwig <hch@infradead.org> wrote:
> On Tue, Jul 15, 2014 at 04:45:59PM -0700, Sage Weil wrote:
>> This Firefly point release fixes an potential data corruption problem
>> when ceph-osd daemons run on top of XFS and service Firefly librbd
>> clients. A recently added allocation hint that RBD utilizes triggers
>> an XFS bug on some kernels (Linux 3.2, and likely others) that leads
>> to data corruption and deep-scrub errors (and inconsistent PGs). This
>> release avoids the situation by disabling the allocation hint until we
>> can validate which kernels are affected and/or are known to be safe to
>> use the hint on.
>
> I've not really seen an report for that on the XFS list, could it be
> that you're running into the issue fixed by
>
> "xfs: Use preallocation for inodes with extsz hints"
>
> (commit aff3a9edb7080f69f07fe76a8bd089b3dfa4cb5d)?
Sam reported the issue we're seeing in "consequences of
XFS_IOC_FSSETXATTR on non-empty file?", but didn't have it narrowed
down very far. I think he's trying to get a minimal reproducer and
identify as much as he can right now, but he's also trying to get out
the door for a vacation. :)
But yes, looking at the patch description that sounds about right.
-Greg
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v0.80.4 Firefly released
2014-07-16 17:26 ` Gregory Farnum
@ 2014-07-16 22:31 ` Dave Chinner
2014-07-16 23:41 ` Samuel Just
0 siblings, 1 reply; 4+ messages in thread
From: Dave Chinner @ 2014-07-16 22:31 UTC (permalink / raw)
To: Gregory Farnum
Cc: Christoph Hellwig, ceph-devel@vger.kernel.org, Sage Weil,
Samuel Just, xfs
On Wed, Jul 16, 2014 at 10:26:23AM -0700, Gregory Farnum wrote:
> On Wed, Jul 16, 2014 at 2:22 AM, Christoph Hellwig <hch@infradead.org> wrote:
> > On Tue, Jul 15, 2014 at 04:45:59PM -0700, Sage Weil wrote:
> >> This Firefly point release fixes an potential data corruption problem
> >> when ceph-osd daemons run on top of XFS and service Firefly librbd
> >> clients. A recently added allocation hint that RBD utilizes triggers
> >> an XFS bug on some kernels (Linux 3.2, and likely others) that leads
> >> to data corruption and deep-scrub errors (and inconsistent PGs). This
> >> release avoids the situation by disabling the allocation hint until we
> >> can validate which kernels are affected and/or are known to be safe to
> >> use the hint on.
> >
> > I've not really seen an report for that on the XFS list, could it be
> > that you're running into the issue fixed by
> >
> > "xfs: Use preallocation for inodes with extsz hints"
> >
> > (commit aff3a9edb7080f69f07fe76a8bd089b3dfa4cb5d)?
>
> Sam reported the issue we're seeing in "consequences of
> XFS_IOC_FSSETXATTR on non-empty file?",
Assuming you've created an extent size hint with a file with delayed
allocation on it and no blocks, then that's more than likely the
same issue. The above commit uses preallocation to allocate
unwritten extents rather than delayed allocation for files with
extent size hints because delayed allocation doesn't write zeros
over ranges in the allocated extents that don't have dirty data over
them.
Moral of the story: any time you get what appears to be data
corruption in the underlying data store, you should report it to the
relevant filesystem list rather than try to work around it....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v0.80.4 Firefly released
2014-07-16 22:31 ` Dave Chinner
@ 2014-07-16 23:41 ` Samuel Just
0 siblings, 0 replies; 4+ messages in thread
From: Samuel Just @ 2014-07-16 23:41 UTC (permalink / raw)
To: Dave Chinner
Cc: Christoph Hellwig, Gregory Farnum, xfs,
ceph-devel@vger.kernel.org, Sage Weil
[Apologies for the repost, attachment was too big]
Sorry for the delay. I've been trying to put together a simpler
reproducer since no one wants to debug a filesystem based on rbd
symptoms :). It doesn't appear to be related to using extsize on a
non-empty file. The linked archive below has a reproducer
(xfs_extsize_reproducer.cc), an input op sequence (trimmed-ops.in),
the resulting file and what it should be (test, test.correct), and a
summary (notes.txt).
http://filedump.ceph.com/samuelj/reproducer.tgz
I think this probably is fixed in the commit mentioned above (xfs: Use
preallocation for inodes with extsz hints).
Thanks!
-Sam
On Wed, Jul 16, 2014 at 3:31 PM, Dave Chinner <david@fromorbit.com> wrote:
> On Wed, Jul 16, 2014 at 10:26:23AM -0700, Gregory Farnum wrote:
>> On Wed, Jul 16, 2014 at 2:22 AM, Christoph Hellwig <hch@infradead.org> wrote:
>> > On Tue, Jul 15, 2014 at 04:45:59PM -0700, Sage Weil wrote:
>> >> This Firefly point release fixes an potential data corruption problem
>> >> when ceph-osd daemons run on top of XFS and service Firefly librbd
>> >> clients. A recently added allocation hint that RBD utilizes triggers
>> >> an XFS bug on some kernels (Linux 3.2, and likely others) that leads
>> >> to data corruption and deep-scrub errors (and inconsistent PGs). This
>> >> release avoids the situation by disabling the allocation hint until we
>> >> can validate which kernels are affected and/or are known to be safe to
>> >> use the hint on.
>> >
>> > I've not really seen an report for that on the XFS list, could it be
>> > that you're running into the issue fixed by
>> >
>> > "xfs: Use preallocation for inodes with extsz hints"
>> >
>> > (commit aff3a9edb7080f69f07fe76a8bd089b3dfa4cb5d)?
>>
>> Sam reported the issue we're seeing in "consequences of
>> XFS_IOC_FSSETXATTR on non-empty file?",
>
> Assuming you've created an extent size hint with a file with delayed
> allocation on it and no blocks, then that's more than likely the
> same issue. The above commit uses preallocation to allocate
> unwritten extents rather than delayed allocation for files with
> extent size hints because delayed allocation doesn't write zeros
> over ranges in the allocated extents that don't have dirty data over
> them.
>
> Moral of the story: any time you get what appears to be data
> corruption in the underlying data store, you should report it to the
> relevant filesystem list rather than try to work around it....
>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-16 23:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <alpine.DEB.2.00.1407151634250.21336@cobra.newdream.net>
2014-07-16 9:22 ` v0.80.4 Firefly released Christoph Hellwig
2014-07-16 17:26 ` Gregory Farnum
2014-07-16 22:31 ` Dave Chinner
2014-07-16 23:41 ` Samuel Just
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox