linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: maarten <maarten@ultratux.net>
To: linux-raid@vger.kernel.org
Subject: Re: Checking if RAID does work?
Date: Wed, 19 Jan 2005 22:47:47 +0100	[thread overview]
Message-ID: <200501192247.47026.maarten@ultratux.net> (raw)
In-Reply-To: <bqv2c2-uec.ln1@news.it.uc3m.es>

On Wednesday 19 January 2005 22:24, Peter T. Breuer wrote:
> maarten <maarten@ultratux.net> wrote:
> > On Wednesday 19 January 2005 21:19, Peter T. Breuer wrote:
> > > Poonam Dalya <poonamsbox@yahoo.com> wrote:

> > Sigh.
>
> You don't understand - he mounted the raw partitions that make up the
> raid array WHILE THE RAID WAS RUNNING somewhere else.

In that case, okay.

> If the mount had failed he would have said. Therefore it did not fail.
> If he had unmounted the raid array first, then the umount would have
> flushed buffers to that device (the kernel sends flush_buffers or
> whatever it is called nowadays) and the file would have been visible
> when he did the later mount.

I tried to reproduce it, and it is even more serious than that, upon first 
glance.  So you're right.  Witness below:

dozer:~ # df
/dev/md0               1953344   1758636    194708  91% /

dozer:~ # cat /proc/mdstat
md0 : active raid1 hde1[1]
      1953408 blocks [3/1] [_U_]

dozer:~ # mount -o ro /dev/hde1 /mnt/
dozer:~ # df
/dev/md0               1953344   1758640    194704  91% /
/dev/hde1              1953344   1758636    194708  91% /mnt

dozer:~ # touch /foobar

dozer:~ # ls -l /mnt/foobar
/bin/ls: /mnt/foobar: No such file or directory

dozer:~ # sync

dozer:~ # ls -l /mnt/foobar
/bin/ls: /mnt/foobar: No such file or directory

dozer:~ # umount /mnt/
dozer:~ # mount -o ro /dev/hde1 /mnt/
dozer:~ # ls -l /mnt/foobar
/bin/ls: /mnt/foobar: No such file or directory

dozer:~ # ls -l /foobar
-rw-r--r--    1 root     root            0 Jan 19 22:33 /foobar

Strange, eh ? (obviously I can't umount /dev/md0 to see...)

Maarten

-- 


  reply	other threads:[~2005-01-19 21:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050117010355.GH347@unthought.net>
2005-01-19 19:51 ` Checking if RAID does work? Poonam Dalya
2005-01-19 20:19   ` Peter T. Breuer
2005-01-19 21:17     ` maarten
2005-01-19 21:22       ` Måns Rullgård
2005-01-19 21:59         ` maarten
2005-01-19 22:52           ` Måns Rullgård
2005-01-20  0:05             ` Neil Brown
2005-01-19 21:24       ` Peter T. Breuer
2005-01-19 21:47         ` maarten [this message]
2005-01-19 20:59   ` Guy

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=200501192247.47026.maarten@ultratux.net \
    --to=maarten@ultratux.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).