From: Bill Davidsen <davidsen@tmr.com>
To: "michael@kmaclub.com" <michael@kmaclub.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Confused about UUID mounting and mirrors
Date: Sun, 22 Jun 2008 16:05:36 -0400 [thread overview]
Message-ID: <485EB090.9070006@tmr.com> (raw)
In-Reply-To: <4856A8C6.3030609@kmaclub.com>
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?
After reading the whole thread, I'm not sure anyone has explained what's
happening. Te reason for using a UUID is to get a mount to work even
when the path to data changes dues to physical device renaming. However,
it's perfectly safe to mount bd devices by device name, providing that
the UUID is used in the mdadm.conf file to assure that the right
physical components are using in the md device.
There may also be come confusion due to two kinfs of UUID, the one for
the filesystem, which you know is replicated on all mirrors, and the one
on the md array, which is used to assemble to array. So if you use the
array UUID in tour mdadm.conf file, the name of the array will remain
constant, and you can safely use that for mounting.
As you have been told, the tools are supposed to be smart enough to use
the filesystem on the md array and not on the components when a
filesystem UUID is in the fstab. But you have found the hard way that
this is not always going to work correctly, due to factors I haven't
identified yet, other than "every once in a while this ***'s up!"
I'm not making a recommendation, just trying to clarify what's happening
and why.
--
Bill Davidsen <davidsen@tmr.com>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
prev parent reply other threads:[~2008-06-22 20:05 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
2008-06-22 20:05 ` Bill Davidsen [this message]
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=485EB090.9070006@tmr.com \
--to=davidsen@tmr.com \
--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).