Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make scsi lun persistent device mapping? (ie Lun10=/dev/sda)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Thu Jun 14, 2007 12:48 am    Post subject: Make scsi lun persistent device mapping? (ie Lun10=/dev/sda) Reply with quote

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
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Thu Jun 14, 2007 5:18 am    Post subject: don't use the old-fashioned names Reply with quote

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
View user's profile Send private message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Thu Jun 14, 2007 7:11 pm    Post subject: Re: don't use the old-fashioned names Reply with quote

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
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Fri Jun 15, 2007 4:03 am    Post subject: I dont use initrd Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum