From: Asdo <asdo@shiftmail.org>
To: Asdo <asdo@shiftmail.org>
Cc: linux-raid <linux-raid@vger.kernel.org>, linux-ext4@vger.kernel.org
Subject: Re: Sync does not flush to disk!?
Date: Fri, 08 Jun 2012 13:39:41 +0200 [thread overview]
Message-ID: <4FD1E47D.2050908@shiftmail.org> (raw)
In-Reply-To: <4FD1CB8A.9080805@shiftmail.org>
On 06/08/12 11:53, Asdo wrote:
> .....
> Then I tried to do :
>
> for i in /dev/md? /dev/sda /dev/sdb ; do blockdev --flushbufs $i ; done
> ....
> and NOW it is seeing the changes.
After some further tests:
Flushbuf'ing just the MD devices only, generated an even more
intermediate situation in which the file being changed assumed garbage
content coming from another old file.
Flushbufing just /dev/sda /dev/sdb has worked a few times I tried. I'm
not sure that it is enough in general.
Flushbufing everything appears to work reliably.
Still I am puzzled. Wasn't "sync" from bash enough to commit to disk
even in case of power failure?
Or is there any chance that KVM "sees" a version of sda and sdb which is
actually *older* than the actual content on the platters?
Thank you
next prev parent reply other threads:[~2012-06-08 11:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-08 9:53 Sync does not flush to disk!? Asdo
2012-06-08 11:39 ` Asdo [this message]
2012-06-08 12:33 ` NeilBrown
2012-06-08 13:49 ` Phil Turmel
2012-06-08 13:57 ` Asdo
2012-06-08 14:11 ` Jan Kara
2012-06-08 14:16 ` Jan Kara
2012-06-08 18:28 ` Ted Ts'o
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=4FD1E47D.2050908@shiftmail.org \
--to=asdo@shiftmail.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-raid@vger.kernel.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.