From: dexen deVries <dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Zahid Chowdhury
<zahid.chowdhury-VJizFkI/10gAspv4Qr0y0gC/G2K4zDHf@public.gmane.org>
Subject: Re: nilfs_cleanerd from nilfs-utils shutdown on version 2.0 and 2.1 does not fail but says nothing and does not clean the old checkpoints nor newer (actually older) ones.
Date: Sat, 3 Dec 2011 13:34:29 +0100 [thread overview]
Message-ID: <201112031334.30221.dexen.devries@gmail.com> (raw)
In-Reply-To: <053D39D3D76C474EB2D2A284AA6BA3181F26A4F05D-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
Hi Zahid,
On Saturday 03 December 2011 01:33:09 you wrote:
> (...)
> I cannot ever start up the daemon. If I move to a 2.1 daemon, then it logs
> no errors, but it cleans no old or newer (really older) checkpoints - it
> just sits in a do-nothing mode (strace(1) shows he is hung on a
> mq_timedreceive syscall).
> (...)
nilfs_cleanerd creates sort of a lock file in /dev/shm, named `sem.nilfs-
cleanerd-$PID'. nilfs_cleanerd version 2.1 refuses to process a filesystem if
it has an associated /dev/shm/sem.nilfs-cleanerd-$PID file -- to protect from
corruption occuring when multiple cleanerds accessed same filesystem. This
looks in strace as being stuck at mq_timedreceive syscall.
All files in /dev/shm/ disappear after reboot (it's a temporary filesystem) so
you don't usually see this behavior. However, when you start a new
nilfs_cleanerd (v2.1) process without reboot, you need to clean relevant file
by hand. Do ensure the old cleanerd process is dead before deleting the file.
Otherwise corruption will happen when multiple cleanerd access same
filesystem.
On Saturday 03 December 2011 01:33:09 you wrote:
> If I move the system date forward, have some checkpoints created and then
> move the date backward a 2.0 cleanerd daemon fails on this error: Nov 30
> 14:39:37 nilfs_cleanerd[5789]: start
> Nov 30 14:39:38 kernel: nilfs_ioctl_move_inode_block: conflicting data
> buffer: ino=4, cno=0, offset=0, blocknr=665655, vblocknr=566462
> Nov 30 14:39:38 kernel: NILFS: GC failed during preparation: cannot
> read source blocks: err=-17
> Nov 30 14:39:38 nilfs_cleanerd[5789]: cannot clean segments: File
> exists Nov 30 14:39:38 nilfs_cleanerd[5789]: shutdown
> (...)
I got similar (or same) error with older kernel. Removing all checkpoints with
rmcp helped -- but that doesn't seem like a 100% reliable solution to me.
Right now I'm using kernels v3.1 and 3.2-rc3; seem rock-solid.
Regards,
--
dexen deVries
> Gresham’s Law for Computing:
> The Fast drives out the Slow even if the Fast is Wrong.
William Kahan in
http://www.cs.berkeley.edu/~wkahan/Stnfrd50.pdf
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-12-03 12:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-03 0:33 nilfs_cleanerd from nilfs-utils shutdown on version 2.0 and 2.1 does not fail but says nothing and does not clean the old checkpoints nor newer (actually older) ones Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181F26A4F05D-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-12-03 12:34 ` dexen deVries [this message]
[not found] ` <201112031334.30221.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-12-05 19:05 ` Zahid Chowdhury
2011-12-04 14:56 ` Ryusuke Konishi
[not found] ` <20111204.235640.258486441.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-12-04 17:26 ` Ryusuke Konishi
2011-12-05 22:15 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181F26A4F1F5-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-12-08 1:43 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181F26A4F56B-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-12-09 4:22 ` Ryusuke Konishi
[not found] ` <20111209.132225.33374267.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-12-09 22:39 ` Zahid Chowdhury
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=201112031334.30221.dexen.devries@gmail.com \
--to=dexen.devries-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=zahid.chowdhury-VJizFkI/10gAspv4Qr0y0gC/G2K4zDHf@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.