View previous topic :: View next topic |
Author |
Message |
planet-admin Apprentice
Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Thu Jun 14, 2007 12:48 am Post subject: Make scsi lun persistent device mapping? (ie Lun10=/dev/sda) |
|
|
Can someone please point me in the right direction to set up persistent device mapping for scsi devices? I have several servers all booting off of fiber channel, and I want to persistently map a particular lun on a per server basis to say /dev/sda
Any help or info is very appreciated.
Thanks,
Michael _________________ Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com |
|
Back to top |
|
|
vaxbrat l33t
Joined: 05 Oct 2005 Posts: 731 Location: DC Burbs
|
Posted: Thu Jun 14, 2007 5:18 am Post subject: don't use the old-fashioned names |
|
|
Instead of mapping to /dev/sda, let udev do the heavy lifting for you. Make sure you have your filesystems labeled, using e2label for ext2/ext3, "xfs_admin -L" for xfs and so on.
Then use the /dev/disk/by-label entry for the appropriate label as the replacement for /dev/sdxx in the device column of your fstab. |
|
Back to top |
|
|
planet-admin Apprentice
Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Thu Jun 14, 2007 7:11 pm Post subject: Re: don't use the old-fashioned names |
|
|
vaxbrat wrote: | Instead of mapping to /dev/sda, let udev do the heavy lifting for you. Make sure you have your filesystems labeled, using e2label for ext2/ext3, "xfs_admin -L" for xfs and so on.
Then use the /dev/disk/by-label entry for the appropriate label as the replacement for /dev/sdxx in the device column of your fstab. |
I'd like to do this, but sometimes the labels would be the same for the various volumes. Also, if I remember correctly, doesn't this require you to use an initrd? I'm a monolithic sort of guy.
Michael _________________ Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com |
|
Back to top |
|
|
vaxbrat l33t
Joined: 05 Oct 2005 Posts: 731 Location: DC Burbs
|
Posted: Fri Jun 15, 2007 4:03 am Post subject: I dont use initrd |
|
|
I don't bother with initrd as I build my own kernels to include in-kernel support for all disk controllers and filesystems that I use. You're right that another distro like Fedora or even gentoo itself with genkernel sources would need an initrd for a non-standard (ie xfs) filesystem and for most scsi controllers.
As for the filesystems having the same label, not a good idea. If they are really two different filesystems, they should get a unique label unless they were removable media and not likely to be mounted at the same time.
You may also want to look at the by-id and by-path alternatives to find something unique that doesn't float around on you. |
|
Back to top |
|
|
|