[CentOS] Mounting LUNs from a SAN array - LUN mappings to devices in /dev/ - are they static?

Sat Oct 4 16:49:02 UTC 2014
Alexander Dalloz <ad+lists at uni-x.org>

Am 04.10.2014 um 18:22 schrieb Rafał Radecki:

[ ... ]

> In sysfs in /sys/bus/scsi/devices/7:0:0:8 I found:
>
> # ll block\:sdj
> lrwxrwxrwx 1 root root 0 Oct  4 17:57 block:sdj ->
> ../../../../../../../../../../block/sdj
>
> Where else can I look for the LUN<->/dev/ device mapping rules? How are the
> LUNs mapped to operating system devices? Is there a way to add a static
> mapping so that also on a new server after attaching SAN array LUN number 8
> will be visible as /dev/sdj? I think that there is a possibility that on a
> new server mentioned LUN will be visible as a different /dev/sd? :( That
> could potentially break my logical volume setup on the destination server.
>
> Any info will be greatly appreciated :)
>
> BR,
> Rafal.


Please see

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/persistent_naming.html

https://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Virtualized_block_devices-Configuring_persistent_storage_in_a_Red_Hat_Enterprise_Linux_5_environment.html

Alexander