linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evan Felix <evan.felix@pnl.gov>
To: Tom Oehser <tom@toms.net>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: mount-by-label finds drive not array ????
Date: Tue, 06 Jul 2004 08:55:11 -0700	[thread overview]
Message-ID: <1089129311.3463.23.camel@e-linux> (raw)
In-Reply-To: <Pine.LNX.4.58.0407010736180.15444@jupiter.toms.net>

I've always found the mount by Label system to be a little confused
about things.  My specific issues cam from haveing devfs turned on in
the kernel, but not mounting it.

Basically the mount code scans /proc/partitions and examines each one in
turn,  which usually lists devices as the were 'discovered' or in the
order device drivers were loaded.  so it sounds like the IDE drives come
up first, a valid label is found, and it tries to mount it.  if you
could magically load the md code before your ide code it would find it
first.(build the raid code into your kernel?)

I would suggest avoiding mount by label like the plauge, but thats just
me.  It just consuses things, doesent always work and makes reading
/etc/fstab confusing.

Evan

On Thu, 2004-07-01 at 04:41, Tom Oehser wrote:
> Hi,
> 
> I'm accustomed to doing something like:
> 
> LABEL=tomsvol2  /mnt/foo   ext3      defaults        0 2
> 
> But if I do that on my raid-5 md arrays, it tries to mount
> disk 1 of the 4 disks that make up the array!  Apparently,
> the first stripe has enough of the filesystem that it must
> be thinking that is what to mount!  Even with type "FD"!!!
> 
> So, with an array /dev/md0 made of hda1 hdb1 hdc1 hdd1, I
> am having to do a literal:
> 
> /dev/md0        /mnt/bar      ext3      defaults        0 4
> 
> Since if I do it by "LABEL=", it tries to mount hda1, not md0!
> 
> Is this just a known/accepted brain-deadness of the mount code?
> 
> -Tom
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2004-07-06 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 11:41 mount-by-label finds drive not array ???? Tom Oehser
2004-07-06 15:55 ` Evan Felix [this message]
2004-07-22 16:33 ` robin-lists
2004-07-22 17:54   ` Luca Berra
2004-07-22 18:46     ` robin-lists
2004-07-22 17:56   ` TJ Harrell

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=1089129311.3463.23.camel@e-linux \
    --to=evan.felix@pnl.gov \
    --cc=linux-raid@vger.kernel.org \
    --cc=tom@toms.net \
    /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).