Skip to main content

Redhat iSCSI Connection Configuration

Making iSCSI connection from Redhat Linux server is easy to implement.

Requirement: iscsi-initiator-utils package has to be installed.
Redhat Server Name: saint
Ethernet MAC Address: 00:12:79:A5:81:6E
Redhat Server iqn Number: iqn.1994-05.com.redhat:saint
iSCSI Server IP: 192.168.1.11
iSCSI Server iqn Number: iqn.1992-08.com.netapp:sn.84177111





Giving Initiator Name as the server name makes easy to distinguish iscsi connections at the server side.
# vi /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:saint

assign an alias to the ethernet interface.
# iscsiadm -m iface -I intface0 –op=new



Associate interface's MAC address with ethernet interface.
# iscsiadm -m iface -I intface0 –op=update -n iface.hwaddress -v 00:12:79:A5:81:6E



Discover iSCSI server.
# iscsiadm -m discovery -t st -p 192.168.1.11 -I intface0 -P 1



Make the connection automatic at startup.
# iscsiadm -m node -T iqn.1992-08.com.netapp:sn.84177111 -p 192.168.1.11 -o update -n node.startup -v automatic




Comments

Popular posts from this blog