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:
iSCSI Server IP:
iSCSI Server iqn Number:

Giving Initiator Name as the server name makes easy to distinguish iscsi connections at the server side.
# vi /etc/iscsi/initiatorname.iscsi

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 -I intface0 -P 1

Make the connection automatic at startup.
# iscsiadm -m node -T -p -o update -n node.startup -v automatic


Popular posts from this blog

Find and replace with sed command in Linux

Find and replace feature is always handy. It can turn into a torture when it comes to change or delete a simple constant string in a text file. There is a handy tool in linux for doing these kind of tihngs. Actually sed is not a text editor but it is used outside of the text file to make changes.