public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Pedro Ribeiro <pedrib@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: xfs log error: head behind tail
Date: Wed, 14 Mar 2012 08:57:49 +1100	[thread overview]
Message-ID: <20120313215749.GJ5091@dastard> (raw)
In-Reply-To: <CAEDdjHeXsv6ySy7_QVtSb-LcFG1Q+_aDOdq4QENZk1mvFWgUzw@mail.gmail.com>

On Tue, Mar 13, 2012 at 06:07:56PM +0000, Pedro Ribeiro wrote:
> Hi,
> 
> I'm running a custom kernel in one of my production systems. It is
> basically a 2.6.39.4 patched with TuxOnIce and backporting of a number
> of xfs and vfs patches from the 3.0 series:
> xfs-avoid-direct-i-o-write-vs-buffered-i-o-race.patch
> xfs-avoid-synchronous-transactions-when-deleting-attr-blocks.patch
> xfs-do-not-update-xa_last_pushed_lsn-for-locked-items.patch
> xfs-dont-serialise-direct-io-reads-on-page-cache.patch
> xfs-fix-attr2-vs-large-data-fork-assert.patch
> xfs-fix-buffer-flushing-during-unmount.patch
> xfs-fix-error-handling-for-synchronous-writes.patch
> xfs-fix-nfs-export-of-64-bit-inodes-numbers-on-32-bit-kernels.patch
> xfs-fix-possible-memory-corruption-in-xfs_readlink.patch
> xfs-fix-write_inode-return-values.patch
> xfs-fix-xfs_mark_inode_dirty-during-umount.patch
> xfs-force-buffer-writeback-before-blocking-on-the-ilock-in-inode-reclaim.patch
> xfs-force-the-log-if-we-encounter-pinned-buffers-in-.iop_pushbuf.patch
> xfs-return-eio-when-xfs_vn_getattr-failed.patch
> xfs-revert-to-using-a-kthread-for-ail-pushing-botto.patch
> xfs-start-periodic-workers-later.patch
> xfs-use-a-cursor-for-bulk-ail-insertion.patch
> xfs-use-doalloc-flag-in-xfs_qm_dqattach_one.patch
> xfs-validate-acl-count.patch
> vfs-add-device-tag-to-proc-self-mountstats.patch
> vfs-automount-should-ignore-lookup_follow.patch
> vfs-fix-automount-for-negative-autofs-dentries.patch
> vfs-fix-statfs-automounter-semantics-regression.patch
> vfs-fix-the-remaining-automounter-semantics-regressions.patch
> vfs-pathname-lookup-add-lookup_automount-flag.patch
> vfs-show-o_cloexe-bit-properly-in-proc-pid-fdinfo-fd-files.patch
> (among other non-fs backported patches)
> 
> 
> My syslog is showing a lot of these messages:
> 
> Mar 13 18:01:49 Biramilho kernel: [509425.318618] XFS (dm-1):
> xlog_space_left: head behind tail
> Mar 13 18:01:49 Biramilho kernel: [509425.318620]   tail_cycle = 345,
> tail_bytes = 103334400
> Mar 13 18:01:49 Biramilho kernel: [509425.318623]   GH   cycle = 345,
> GH   bytes = 103334192
> Mar 13 18:05:56 Biramilho kernel: [509672.560893] XFS (dm-1):
> xlog_space_left: head behind tail
> Mar 13 18:05:56 Biramilho kernel: [509672.560897]   tail_cycle = 345,
> tail_bytes = 103366144
> Mar 13 18:05:56 Biramilho kernel: [509672.560900]   GH   cycle = 345,
> GH   bytes = 103365936
> Mar 13 18:05:56 Biramilho kernel: [509672.560911] XFS (dm-1):
> xlog_space_left: head behind tail
> Mar 13 18:05:56 Biramilho kernel: [509672.560914]   tail_cycle = 345,
> tail_bytes = 103366144
> Mar 13 18:05:56 Biramilho kernel: [509672.560917]   GH   cycle = 345,
> GH   bytes = 103365936
> 
> dm-1 is a partition in a LVM device inside a LUKS encrypted container.
> My uptime is about 67 days with 70 TuxOnIce hibernaitons in between.
> This started to happen at least 10 days ago.

TuxOnIce freezes filesystems during hibernation, doesn't it? We've
recently had a report of this problem to do with a test that
repeatedly froze a filesystem, and it looked like the freeze was
leaking 8 bytes of log space on every freeze/thaw cycle. This is
probably the same issue.

> Is this dangerous? Should I be worried?

Not particularly dangerous, though I'd suggest a unmount/mount on
the filesystem to get the head and tail back in sync.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

      reply	other threads:[~2012-03-13 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 18:07 xfs log error: head behind tail Pedro Ribeiro
2012-03-13 21:57 ` Dave Chinner [this message]

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=20120313215749.GJ5091@dastard \
    --to=david@fromorbit.com \
    --cc=pedrib@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