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

Re: Random sd* devices numbering



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco De Vitis wrote:
> Hi, I'm configuring Etch (kernel 2.6) on a machine which has a builtin
> Intel ICH7 SATA controller (I'm using two HDs in software RAID on it),
> plus an Areca PCI-X SATA RAID controller (4 HDs in hardware RAID), plus
> a LSI PCI-X SCSI controller (connected to an external storage unit).
> 
> It all works, but the problem is that the devices are more or less
> randomly named at boot, i.e. the Areca device is sometimes /dev/sda,
> other times sdb, or even sdd, so using device names in fstab or
> elsewhere is dangerous.
> 
> I've googled a bit and found out about the "scsihosts" kernel boot
> parameter, but it doesn't seem to work.
> So, for the moment, I've worked around the problem by assigning labels
> to the partitions and mounting them in fstab using the label references.
> 
> Isn't there a better way? Isn't there a way to be sure that the devices
> order will always be the same?

Sounds to me like a call for udev.  Naming the disks by UUID should
solve your problem.  Exactly how do you implement it?  Don't know.

- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8Ff6iXBCVWpc5J4RAmZPAJ0fpHwS9Kf6EuoZnMdCkOsF7V95ywCeO+gW
pqgfizcHlBX+b+I2QhJx2V4=
=7fwZ
-----END PGP SIGNATURE-----



Reply to: