linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "michael@kmaclub.com" <michael@kmaclub.com>
To: Michal Soltys <soltys@ziu.info>
Cc: linux-raid@vger.kernel.org
Subject: Re: Confused about UUID mounting and mirrors
Date: Mon, 16 Jun 2008 14:29:48 -0700	[thread overview]
Message-ID: <4856DB4C.20905@kmaclub.com> (raw)
In-Reply-To: <4856CFE1.1020105@ziu.info>

Michal Soltys wrote:
> michael@kmaclub.com wrote:
>> Hello,
>>
>> This confuses mount at boot time.
>>
>> How to I get it to correctly find md0 and not the components of the 
>> mirror?
>>
> 
> You mean you mount by /dev/disk/by-uuid/* ?


In /etc/fstab,  I have entries like this:

UUID=8e651838-38c1-4783-8bde-4174ec484d52 /     ext3    defaults  1 1
UUID=aaeca70c-f0fe-470c-b631-87248648d275 /export xfs defaults,nobarrier 1 2
UUID=6e22c5b0-2874-4826-a871-ed733f8da643 swap swap    defaults   0 0
UUID=323cd094-4cbe-4c3b-9096-366c05465e7c /export/services xfs defaults 1 2

so it is referring to the UUID of the filesystem and not necessarily the 
device.  Some are single partitions, some md devices, and some sit on 
top of LVM.


> The 0.9x or 1.0 superblocks (the ones working nicely with grub and 
> raid1) are placed at the end of the device, thus existing filesystem can 
> be detected both from /dev/sd{a,b}1 and /dev/md0.
> 
> In such case, you will have to adjust udev rules, so sd{a,b}1 filesystem 
> uuid symlinks will not be created, or will be overwritten by the symlink 
> to /dev/md0.
> 
> You can achieve the latter with higher link_priority in OPTIONS, in your 
> udev rules.

Do you have an example?  I am not sure I follow.

So what happens if someone sticks in a USB key and boots the machine. 
The key bcomes sda, and each following drive shifts.  Is UDEV in this 
case going to know to account for this?  The goal is to be able to 
always find the filesystem regardless of what the disk name might be.

Michael

  reply	other threads:[~2008-06-16 21:29 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 [this message]
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

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=4856DB4C.20905@kmaclub.com \
    --to=michael@kmaclub.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=soltys@ziu.info \
    /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).