| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 04/23/2010 07:09 AM, bambara wrote:
>
> hello i did all what you post but it dosnt work
> i type same code
> i m working on redhat 5.3 and i want use udev for scsi
> when i reboot i have this message :
> udevd-event[11587]: run_program: exec of program
> '/etc/udev/scripts/iscsidev' failed
iscsidev does not exist on RHEL 5.
udev should already be making names in /dev/disk/ for you. What is wrong
with them?
> plzz help
> i dont know wich udev version is compatible with my redhat 5.3
> thanks
>
>
> Phani Sikharam wrote:
>>
>> Hi, it works fine with the below configuration on RHEL4...
>>
>> #cat /etc/udev/rules.d/55-iscsi.rules
>>
>>
>> KERNEL="sd[a-z]*", BUS="scsi", PROGRAM="/etc/udev/scripts/iscsi.sh
>> %b",SYMLINK="iscsi/%c/part%n"
>>
>>
>>
>> #cat /etc/udev/scripts/iscsi.sh
>>
>>
>> #!/bin/sh
>>
>> # FILE: /etc/udev/scripts/iscsi.sh
>>
>> BUS=${1}
>> HOST=${BUS%%:*}
>>
>> [ -e /sys/class/iscsi_host ] || exit 1
>>
>> #file="/sys/class/iscsi_host/host${HOST}/device/session*/iscsi_session*/targetname"
>> file="/sys/class/iscsi_transport/target${HOST}:0:0/target_name"
>>
>> target_name=$(cat ${file})
>>
>> # This is not an open-scsi drive
>> if [ -z "${target_name}" ]; then
>> exit 1
>> fi
>>
>> echo "${target_name##*.}"
>> #echo "${target_name}"
>>
>
------------------------------------------------------------------------------
_______________________________________________
linux-iscsi-users mailing list
linux-iscsi-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/linux-iscsi-users
[IP Storage] [IETF] [Linux SCSI] [iSCSI Book] [Linux Resources] [Yosemite News] [Photo] [Home] [IETF Announcements] [IETF Discussion] [SCSI Hardware]