调整 VM LUN 的 Open-iSCSI 启动器设置

Kam*_*iel 6 virtualization linux iscsi

我有一堆从 iSCSI LUN 运行 Xen VM 的 VM 服务器,这些服务器通过 Open-iSCSI 安装在 Dom0 主机中。这只是一个简单的单路径设置(冗余通过集群存储和虚拟 IP 位于目标端)

我正在考虑将 Open-iSCSI README 中的设置用于 iSCSI 根目录,因为它基本上是这样的:

8.2 iSCSI settings for iSCSI root
---------------------------------

When accessing the root parition directly through a iSCSI disk, the
iSCSI timers should be set so that iSCSI layer has several chances to try
to re-establish a session and so that commands are not quickly requeued to
the SCSI layer. Basically you want theopposite of when using dm-multipath.

For this setup, you can turn off iSCSI pings by setting:

node.conn[0].timeo.noop_out_interval = 0 
node.conn[0].timeo.noop_out_timeout= 0

And you can turn the replacement_timer to a very long value:

node.session.timeo.replacement_timeout = 86400
Run Code Online (Sandbox Code Playgroud)

我应该考虑在 iSCSI LUN 上使用 root 运行 VM 的任何其他推荐设置吗?

dis*_*man 3

首先 - 您的目标使用什么软件/硬件?

根据我的经验,iSCSI 启动器和目标通常不需要调整,而是必须调整网络。尝试使用直接交叉电缆连接启动器和目标,以这种方式测试速度,我打赌应该不错。在这种情况下,交换机就是瓶颈。我可以推荐:

  • 将所有 iSCSI 流量移至单独的 VLAN
  • 在交换机上启用巨型帧(同时在发起方和目标方上将 MTU 设置为 9000 左右,确保两者相等)
  • 换个 pps 更好的交换机
  • 最后扔掉 iSCSI 并转移到旧的良好光纤通道。一张 20 美元的 2Gbit FC 卡可以为您提供每秒约 200 MB 的速度,当然前提是您的目标存储可以处理。