1753506 Members
5107 Online
108794 Solutions
New Discussion юеВ

iscsi initiator

 
Fawzi
Occasional Contributor

iscsi initiator

RedHat Enter Prise linux 5 u2

i have 2 servers DB1 DB2 , and i have scsi storage, i create shared storage
/dev/sda 2G
/dev/sdb 5G
/dev/sdc 2G
/dev/sdd 300G
i have iscsi intiator ,when i restart the iscsi service or reboot the server the node will be changed.
/dev/sda 2G
/dev/sdb 300G
/dev/sdc 5G
/dev/sdd 2G
i have singel path
so i Create Persistent Local SCSI Device Names

the steps
1.Edit the /etc/scsi_id.config file.
options=-g
2.To display the UUID for a given device run the scsi_id -g -s /block/sd* command. For example:

# scsi_id -g -s /block/sda
3600a0b800013275100000015427b625e



3.Create a rule to name the device. Create a file named 20-names.rules in the /etc/udev/rules.d directory. Add new rules to this file. All rules are added to the same file using the same format. Rules follow this format:
KERNEL=="sd[a-z]", BUS=="scsi", PROGRAM="/sbin/scsi_id -g -", RESULT=="3600a0b800013275100000015427b625e
", NAME="sda"



5.Append this line to /etc/rc.local
/sbin/start_udev

6: #start_udev


i write this steps, but the the node still random sort evry restart service or reboot.

when i make the 6 step
#start_udev the network is disapear until i do
#service network restart.

Please any one now the solutions.
3 REPLIES 3
Chhaya_Z
Valued Contributor

Re: iscsi initiator

Hi,

Please check the syntax of the rule.

The correct syntax is
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="3600a0b800013275100000015427b625e",
SYMLINK+="mydevice%n"

Refer this Redhat Doc:

https://access.redhat.com/kb/docs/DOC-7319



Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
Fawzi
Occasional Contributor

Re: iscsi initiator

i have hp lfthand storage , this solution not suitable for this case.
Fawzi
Occasional Contributor

Re: iscsi initiator

chek the syantak.