Matt Domsch wrote:
> On Mon, Aug 17, 2009 at 01:04:41PM -0700, Sebastian Gutierrez wrote:
>> Hello
>>
>> I have a Poweredge R610 with the internal SAS 6iR raid controller and a
>> SAS 5e HBA.  It seems that the /dev/sd? devices keep getting reordered
>> when I connect disks to the enclosures attached to the SAS HBA.  I have
>> tried a couple of iterations of udev rules and have not been able to get
>>  the boot devices to stay as their initial device name.
> 
> the kernel's device name (e.g. /dev/sd?) is fundamentally arbitrary.
> That is seems deterministic is purely accidental.
> 
> 
> Instead of trying to fix the /dev/sd? names, use your udev rules to
> create /dev/disk/whateveryouwant -> /dev/sd?  such that the former
> always is what your apps use, and udev maintains the symlink on your
> behalf to the "proper" /dev/sd? device.
> 
> 
> 

Or just use the ones that are already there - on a RHEL 5.3 system there are
[jhan...@carenath ~]$ ls -l /dev/disk/
total 0
drwxr-xr-x 2 root root 240 Aug 23 20:35 by-id
drwxr-xr-x 2 root root  60 Aug 23 20:35 by-label
drwxr-xr-x 2 root root 280 Aug 23 20:35 by-path
drwxr-xr-x 2 root root  60 Aug 23 20:35 by-uuid

I would suggest by-path might be the easiest.
-- 
-----------------------------------------------------------------------
Jeff Hanson - [email protected] - Field Technical Analyst

You can choose a ready guide in some celestial voice.
If you choose not to decide, you still have made a choice.
You can choose from phantom fears and kindness that can kill;
I will choose a path that's clear
I will choose freewill. - Lee/Lifeson/Peart

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to