I'm trying ton install Oracle 11g R2 on RHEL 5 with openfiler as Storage using the link http://www.oracle.com/technetwork/articles/hunter-rac11gr2-iscsi-088677.html
However, I got stuck with strage error when discovering the targets from one of the node. Please see below output when discovering targets:
[root@node1 ifaces]# iscsiadm -m discovery -t st -p private.storage
PING private.storage (192.168.2.100) 56(84) bytes of data.
64 bytes from private.storage (192.168.2.100): icmp_seq=1 ttl=64 time=8.97 ms
64 bytes from private.storage (192.168.2.100): icmp_seq=2 ttl=64 time=0.671 ms
64 bytes from private.storage (192.168.2.100): icmp_seq=3 ttl=64 time=0.499 ms
64 bytes from private.storage (192.168.2.100): icmp_seq=4 ttl=64 time=0.623 ms
64 bytes from private.storage (192.168.2.100): icmp_seq=5 ttl=64 time=0.415 ms
Even though, I specified private.storage which refers to openfiles private IP, but still targets are getting displayed for public IP as well from Node1.
Can someone look into this issue and help me to fix as i've been stuck for so long.
1) Edit the file: /etc/sysconfig/iscsi-target
2) Enter the following in a separate line: LISTEN_ADDR=<ip you want to restrict iSCSI traffic to>
3) Restart the iSCSI target service: service iscsi-target restart
By the way, you shouldn't have multiple IP addresses on the same subnet as the kernel will decide where traffic goes out from even though you want to restrict to a certain IP/interface. You should consider using separate subnets for management and iSCSI traffic. Par exemple:
management == 192.168.2.100
iSCSI == 192.168.3.100
Edited by: 1008019 on May 26, 2013 12:35 AM
Edited by: 1008019 on May 26, 2013 12:36 AM
Thanks a lot for your info. It worked for me.
I've different subnets for both public and private IP's. (192.168.1.100 -- Public and 192..168.2.100 -- Private).
If I keep on increasing nodes, I need to add each server IP manually in /etc/sysconfig/iscsi-target file... can we avoid this?