Re: mount-by-label finds drive not array ????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux