[rhelv6-list] Renaming scsi disks with udev rules on RHEL6

carlopmart carlopmart at gmail.com
Mon Feb 7 09:42:57 UTC 2011


Hi all,

  I have a very strange problem. I have installed a virtual RHEL6 machine under an 
ESXi host using paravirtual disk devices. I need to assign static names to these 
disk but I can't.

  I have read the following guide form RedHat's knowledge: 
https://access.redhat.com/kb/docs/DOC-45628, but it doesn't works for vmware 
paravirtual devices.

  For example:

[root at hobbiton by-path]# ls -al
total 0
drwxr-xr-x 2 root root 200 Feb  7 10:29 .
drwxr-xr-x 4 root root  80 Feb  7 10:08 ..
lrwxrwxrwx 1 root root   9 Feb  7 10:08 pci-0000:03:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root  10 Feb  7 10:08 pci-0000:03:00.0-scsi-0:0:0:0-part1 -> 
../../sda1
lrwxrwxrwx 1 root root  10 Feb  7 10:08 pci-0000:03:00.0-scsi-0:0:0:0-part2 -> 
../../sda2
lrwxrwxrwx 1 root root   9 Feb  7 10:29 pci-0000:04:00.0-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root  10 Feb  7 10:29 pci-0000:04:00.0-scsi-0:0:0:0-part1 -> 
../../sdb1
lrwxrwxrwx 1 root root   9 Feb  7 10:08 pci-0000:04:00.0-scsi-0:0:1:0 -> ../../sdc
lrwxrwxrwx 1 root root   9 Feb  7 10:08 pci-0000:0c:00.0-scsi-0:0:0:0 -> ../../sdd
lrwxrwxrwx 1 root root   9 Feb  7 10:08 pci-0000:14:00.0-scsi-0:0:0:0 -> ../../sde

  I need to rename sdb, sdc, sdd and sde disks. But when I execute scsi_id command, 
it doesn't returns any result:

[root at hobbiton by-path]#  scsi_id --whitelisted --replace-whitespace --device=/dev/sdb
[root at hobbiton by-path]#

  If I use lsilogic driver on these disks instead pvscsi drivers, all works as a 
expected but I loose performance.

  My question is: how can I assign static device names with udev rules using by-path 
or ID_PATH strings??

  I need to create lvm volumes with these disks.

  Many thanks.

-- 
CL Martinez
carlopmart {at} gmail {d0t} com




More information about the rhelv6-list mailing list