No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Unable to Find New LUNs Due to Failures of Stopping Or Restarting the open-iscsi Service

Publication Date:  2012-07-22 Views:  45 Downloads:  0
Issue Description

Unable to stop the open-iscsi service by running the command open-iscsi stop on the AS. Next, run the command open-iscsi restart to restart the service but fails, and no new LUNs can be detected.

Product and version information:
  • S2600
  • S5000 series
Alarm Information
None
Handling Process

Take measures as suggested below to avoid this problem:

  1. In the script etc/init.d/open-iscsi, check whether reference symbols for parameters are appended when the function iscsi_check_mounts() references to the parameter dev.
    cat /proc/mounts | sed –ne ‘/^\ /dev\ /.*/p’ |  while read d m t o x; do
  2. When no reference symbols for parameters are appended, modify as follows:
    cat /proc/mounts | sed –ne ‘/^\ /${dev}\ /.*/p’ |  while read d m t o x; do
Root Cause
  1. It is found that in the open-iscsi driver package whose version is open-iscsi-2.0.871-0.20.3, when the function iscsi_check_mounts() references to the parameter dev in the script etc/init.d/open-iscsi, no reference symbols for parameters have been appended.

Conclusion:

  • Stopping or restarting the open-iscsi service fails when no reference symbols for parameters are appended, causing the LUNs that are newly added cannot be detected.
Suggestions

When referencing to the function without appending reference symbols for parameters, the second character in the row that begins with /dev/ within the file from /proc/mounts would be compared with '/'. If both characters match, the function returns the "mount" status of a mapped LUN as rootfs. If the "mount" status of the mapped LUN is rootfs, "umount" is not supported when running the command open-iscsi stop on the AS. Thus, stopping or restarting the open-iscsi service fails, causing no LUNs that are newly added can be detected.

END