From: Nathaniel Rutman <Nathan.Rutman@Sun.COM>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] [RFC] "lctl readonly" modification proposal
Date: Thu, 28 Aug 2008 10:11:03 -0700 [thread overview]
Message-ID: <48B6DC27.5020308@sun.com> (raw)
In-Reply-To: <20080824020210.GY3392@webber.adilger.int>
Andreas Dilger wrote:
> On Aug 22, 2008 19:45 +0400, Alexander Zarochentsev wrote:
>
>> On 20 August 2008 23:29:22 Andreas Dilger wrote:
>>
>>> On Aug 20, 2008 11:39 -0600, Peter J. Braam wrote:
>>>
>>>> If I remember correctly the flush is only there to try to reduce
>>>> rollback. However, given that failover may happen on a system where
>>>> the software is not fully responsive, one could question the wisdom
>>>> of this reduction. In any case having more replay due to more
>>>> rollback is harmless.
>>>>
IIRC one other reason for the flush is that loopback disks tend not to
"really" flush everything to disk when asked, and additional sync calls
seem to help. So beware when running loopback disks...
>>> One major caveat is that with mountconf we ALWAYS mark the device as
>>> "readonly" when it is being unmounted.
>>> If we don't have the sync
>>> there I fear data loss after a clean server unmount, when all clients
>>> are also being unmounted and cannot do replay.
>>>
>>> I'd be thrilled if this was fixed so a normal shutdown did not do a
>>> "force" unmount and set the device read-only, because that would also
>>> avoid leaving the journal needing recovery.
>>>
>
umount does either force or failover shutdown; failover sets readonly
but force does not. Test-framework regularly does both. Andreas, if
you want to avoid journal recovery, use umount -f.
Really read-only is intended to simulate a power loss, so I think sync
before it is a bit of a cheat. Having said that, I think there were
real issues that prompted us to include the sync in the first place, and
some heavy recovery testing (including loopback devs) is in order if it
is removed.
next prev parent reply other threads:[~2008-08-28 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 11:23 [Lustre-devel] [RFC] "lctl readonly" modification proposal Alexander Zarochentsev
2008-08-20 17:39 ` Peter Braam
2008-08-20 19:29 ` Andreas Dilger
2008-08-22 15:45 ` Alexander Zarochentsev
2008-08-24 2:02 ` Andreas Dilger
2008-08-28 17:11 ` Nathaniel Rutman [this message]
2008-08-28 20:25 ` Andreas Dilger
2008-08-29 18:46 ` Nathaniel Rutman
2008-08-20 19:42 ` Mikhail Pershin
2008-08-20 19:59 ` Peter Braam
2008-08-21 9:24 ` Alexander Zarochentsev
2008-08-21 10:03 ` Mikhail Pershin
2008-08-21 10:43 ` Alex Zhuravlev
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=48B6DC27.5020308@sun.com \
--to=nathan.rutman@sun.com \
--cc=lustre-devel@lists.lustre.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.