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

Sending Jboss Server Logs to Logstash Using Filebeat with Multiline Support

In addition to sending system logs to logstash, it is possible to add a prospector section to the filebeat.yml for jboss server logs. Sometimes jboss server.log has single events made up from several lines of messages. In such cases Filebeat should be configured for a multiline prospector.
Filebeat takes lines do not start with a date pattern (look at pattern in the multiline section "^[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}" and negate section is set to true) and combines them with the previous line that starts with a date pattern.

server.log file excerpt where DatePattern: yyyy-MM-dd-HH and ConversionPattern: %d %-5p [%c] %m%n
Logstash filter: