Problems configuring iscsi on an Oracle RAC node

I completed this document to install Oracle RAC with openfiler.

I installed Oracle RAC on rac1, rac2 node and openfiler setup. After that, I performed the following steps from the document above:

  • Installed and configured iscsi services.
  • Serial manual and automatic login to 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
    
  • The executed command:

    cd /dev/disk/by-path; ls -l *openfiler* | awk '{FS=" "; print $9 " " $10 " " $11}'`
    

    came out below the exit:

    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
    
  • The following rules have been created in the /etc/udev/rules.d/55-openiscsi.rules file :

    KERNEL=="sd*", BUS=="scsi", PROGRAM="/etc/udev/scripts/iscsidev.sh %b",SYMLINK+="iscsi/%c/part%n"
    
  • Then create a UNIX shell script / etc / udev / scripts / iscsidev.sh, as shown 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}" ]; then
       exit 1
    fi
    
    echo "${target_name##*.}"
    

    After creating the UNIX SHELL script, change it to an executable file:

    chmod 755 /etc/udev/scripts/iscsidev.sh
    
  • Restarting the iSCSI service.

  • The executed command ls -l /dev/iscsi/*then received an error, as shown below:

    ls: cannot access /dev/iscsi/*: No such file or directory
    

Any idea on this?

+4

Source: https://habr.com/ru/post/1649392/


All Articles