linux - Issues for iscsi setup on Oracle RAC node -
i followed this document setup oracle rac openfiler.
i did setup oracle rac on rac1, rac2 node , openfiler configuration. after this, followed following steps above document:
- installed , configured iscsi services.
followed manual , automatic login iscsi target on rac node:
iscsiadm -m node -t iqn.2006-01.com.openfiler:orcl.crs1 -p 10.0.1.39 -l iscsiadm -m node -t iqn.2006-01.com.openfiler:orcl.crs1 -p 10.0.1.39 --op update -n node.startup -v automatic
executed command:
cd /dev/disk/by-path; ls -l *openfiler* | awk '{fs=" "; print $9 " " $10 " " $11}'`
got below output:
ip-10.0.0.29:3260-iscsi-iqn.2006-01.com.openfiler:orcl-crs1-lun-0 -> ../../sdf ip-10.0.0.29:3260-iscsi-iqn.2006-01.com.openfiler:orcl-data1-lun-0 -> ../../sdj ip-10.0.0.29:3260-iscsi-iqn.2006-01.com.openfiler:orcl-fra1-lun-0 -> ../../sdh ip-10.0.1.39:3260-iscsi-iqn.2006-01.com.openfiler:orcl-crs1-lun-0 -> ../../sdg ip-10.0.1.39:3260-iscsi-iqn.2006-01.com.openfiler:orcl-data1-lun-0 -> ../../sdk ip-10.0.1.39:3260-iscsi-iqn.2006-01.com.openfiler:orcl-fra1-lun-0 -> ../../sdi
created following rules in /etc/udev/rules.d/55-openiscsi.rules file:
kernel=="sd*", bus=="scsi", program="/etc/udev/scripts/iscsidev.sh %b",symlink+="iscsi/%c/part%n"
next, created unix shell script /etc/udev/scripts/iscsidev.sh below:
bus=${1} host=${bus%%:*} [ -e /sys/class/iscsi_host ] || exit 1 file="/sys/class/iscsi_host/host${host}/device/session*/iscsi_session*/targetname" target_name=$(cat ${file}) if [ -z "${target_name}" ]; exit 1 fi echo "${target_name##*.}"
after creating unix shell script, changed executable:
chmod 755 /etc/udev/scripts/iscsidev.sh
restarted iscsi service.
executed command
ls -l /dev/iscsi/*
got error below:ls: cannot access /dev/iscsi/*: no such file or directory
any idea on this?
Comments
Post a Comment