linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: "michael@kmaclub.com" <michael@kmaclub.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Confused about UUID mounting and mirrors
Date: Thu, 19 Jun 2008 13:56:36 +1000	[thread overview]
Message-ID: <18521.55540.663213.931163@notabene.brown> (raw)
In-Reply-To: message from michael@kmaclub.com on Monday June 16

On Monday June 16, michael@kmaclub.com wrote:
> Hello,
> 
> I am making the transition from hardware raid to software raid and 
> things have gone pretty well.
> 
> I am trying to mount everything by UUID to account for devices moving 
> around, etc.
> 
> I have moved all mounts in /etc/fstab to uuid except /boot which is a 
> mirror sitting on /dev/md0.
> 
> Since it is a mirror, blkid returns the same uuid for /dev/md0, 
> /dev/sda1, and /dev/sdb1.
> 
> This confuses mount at boot time.
> 
> How to I get it to correctly find md0 and not the components of the mirror?

One option could be to not use UUIDs for mount md devices.  md devices
do not suffer from random name changes when devices config changes
because they are named based on content rather than location.

I realise that it might be more elegant to use UUIDs for everything,
but if you are just after "practical", but don't bother with UUIDs to
mount md arrays.

NeilBrown

  parent reply	other threads:[~2008-06-19  3:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-16 17:54 Confused about UUID mounting and mirrors michael
2008-06-16 20:41 ` Michal Soltys
2008-06-16 21:29   ` michael
2008-06-16 21:38     ` David Greaves
2008-06-17  2:29       ` michael
2008-06-17  7:11         ` Michael Tokarev
2008-06-17 14:19           ` michael
2008-06-17 16:10             ` Clive Messer
2008-06-18 14:00             ` Michael Tokarev
2008-06-18 14:42               ` michael
2008-06-20  2:17               ` michael
2008-06-17 19:17         ` Peter Grandi
2008-06-17 21:37     ` Michal Soltys
2008-06-19  3:56 ` Neil Brown [this message]
2008-06-22 20:05 ` Bill Davidsen

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=18521.55540.663213.931163@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=michael@kmaclub.com \
    /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).