linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sedlak Anton <ased@cce.cz>
To: jakob@unthought.net, linux-raid@vger.kernel.org
Subject: raid1 allow unintentional mount of low devices ...!!!
Date: Thu, 13 Feb 2003 11:54:45 +0100	[thread overview]
Message-ID: <3E4B7975.2010005@cce.cz> (raw)

|Problem description in RAID1 - MIRROR - kernel-2.4.20, 
raidtool2-0.90.200109:
it look that while mirror raiddev is mounted and working it is possible 
to mount devices
that constitute that raid1. It means that it is also possible to mount 
it when raid is stopped.
And here is the problem: while in first case I can check if there is any 
raid devices in advance using 'mount'
in second I have no chance to do that - no partition type FD.

Consider raid1 setup: /dev/md0 consist of /dev/hda1 and /dev/hdb1
After (unintentional||) mounting /dev/hda1 I see on ext3 or ReiserFS: 
journal reply n records.
These records was replied without notice of raid system - later I made 
check - creating dir or file
on /dev/hda1 was not recognised by /dev/md0.

Because I don't know in which state is now raid1 I always copy 
everything to clean disk,
reformat raid and copy back - but this take a lot of time.

I appreciate any suggestion how to synchronise low devices with raid 
device or how
to recognise in advance that given device is part of raid or to patch 
'mount' to roar
that there could be such problem.

Sedlak Anton <ased@cce.cz>

used config: /etc/raidtab

raiddev /dev/md0
|

|        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size     4
        persistent-superblock 1
        device          /dev/hda1
        raid-disk       0
        device          /dev/hdb1
        raid-disk       1
|




                 reply	other threads:[~2003-02-13 10:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3E4B7975.2010005@cce.cz \
    --to=ased@cce.cz \
    --cc=jakob@unthought.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).