Snapdrive for Unix
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

由于 iSCSI 守护进程限制, LUN 发现失败

贡献者

连续多次迭代后, SnapDrive for UNIX 命令无法发现 LUN 。

您可能会看到以下错误消息。

0000-001 Admin error: iscsi transport protocol has dropped sessions in the host. Please ensure the connection and the service in the storage system.

发生这种情况的原因是以下主机中存在 iSCSI 守护进程限制:

  • Red Hat Enterprise Linux 4.0

  • Oracle Enterprise Linux 4.0

临时解决策

Before modifying the following system parameters, contact the OS vendor.
  1. 将 ` * fs.file-max*` 参数添加到 ` /etc/sysctl.conf` 文件中。

    以下是命令行中的一个示例。

    # sysctl -w fs.file-max=65536
    备注 建议将参数值设置为 65536 ,但也可以根据主机上的应用程序设置此值。
  2. 65536 分配给 ` * fs.file-max*` 参数。

  3. 更新 root 用户 UNIX 帐户的默认 Shell sToot-up 文件。

    • 对于 Bourne , Bash 或 Korn shell ,运行以下命令,将以下行添加到 ` /etc/profile` 文件中:

      cat >> /etc/profile <<EOF
      if [ \$USER = "root" ]; then
      if [ \$SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
      else
      ulimit -u 16384 -n 65536
      fi
      umask 022
      fi
      EOF
    • 对于 C shell ( csh 或 tcsh ),运行以下命令将以下行添加到 ` /etc/csh.login` 文件中:

      cat >> /etc/csh.login <<EOF
      if ( \$USER == "root" ) then
      limit maxproc 16384
      limit descriptors 65536
      endif
      EOF
  4. 运行以下命令,将以下参数添加到 ` /etc/security/limits.conf` 文件中:

    root soft nofile 65536
    root hard nofile 65536
  5. 执行以下命令,激活系统的所有内核参数: sysctl -p