跳过导航链接 | |
退出打印视图 | |
![]() |
Oracle Solaris 11.1 管理:SAN 配置和多路径 Oracle Solaris 11.1 Information Library (简体中文) |
可使用 stmsboot 命令为光纤通道 (Fibre Channel, FC) 和 SAS 设备启用或禁用多路径。stmsboot 命令将更新 /etc/vfstab 文件和转储配置,以在下次重新引导时反映设备名称更改。您无需手动编辑 fp.conf 或 mpt.conf 文件。
以下注意事项适用于 stmsboot -e、-d 和 -u 选项:
运行 stmsboot 命令之后应立即重新引导。
因为 stmsboot 命令会重新引导计算机以完成操作,请使用 eeprom 以确保系统从当前引导设备进行引导。
stmsboot 命令会在修改原始 /kernel/drv/fp.conf、/kernel/drv/mpt.conf 和 /etc/vfstab 文件之前,保存它们的副本。如果您在使用 stmsboot 命令时遇到意外问题,请参见附录 C。
注 - 在先前的 Oracle Solaris 发行版中,stmsboot 命令仅用于为基于 SPARC 的主机在引导设备上启用或禁用多路径。在当前的 Oracle Solaris 发行版中,该命令用于在串行连接的 SCSI 设备以及 FC 设备上启用或禁用多路径。
在基于 SPARC 或 x86 的系统上,执行以下步骤在所有具有多路径功能的设备上启用多路径。如果您只想在特定的 FC 或 SAS HBA 端口上启用多路径,请参阅基于每端口启用或禁用多路径。
多路径软件会自动识别 Oracle 支持的设备。如果您想要在第三方设备上启用多路径,请将 /kernel/drv/scsi_vhci.conf 文件复制到 /etc/d iver/drv,然后如多路径注意事项中的“设备名称更改注意事项”所述添加条目。
# pkg info system/storage/multipath-utilities Name: system/storage/multipath-utilities Summary: Solaris Multipathing CLI Description: Path Administration Utility for a Solaris Multipathing device Category: Applications/System Utilities State: Installed Publisher: solaris Version: 0.5.11 Build Release: 5.11 Branch: 0.175.0.0.0.0.0 Packaging Date: Tue Sep 27 01:40:01 2011 Size: 77.29 kB FMRI: pkg://solaris/system/storage/multipath-utilities@ 0.5.11,5.11-0.175.0.0.0.0.0:20110927T014001Z
如果未安装,请进行安装。
# pkg install system/storage/multipath-utilities
# stmsboot -e WARNING: stmsboot operates on each supported multipath-capable controller detected in a host. In your system, these controllers are /devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0 /devices/pci@780/pci@0/pci@8/SUNW,qlc@0,1/fp@0,0 /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1 /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1 /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0 /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0 If you do NOT wish to operate on these controllers, please quit stmsboot and re-invoke with -D { fp | mpt } to specify which controllers you wish to modify your multipathing configuration for. Do you wish to continue? [y/n] (default: y) y Checking mpxio status for driver fp Checking mpxio status for driver mpt WARNING: This operation will require a reboot. Do you want to continue ? [y/n] (default: y) y The changes will come into effect after rebooting the system. Reboot the system now ? [y/n] (default: y) y
注 - 在重新引导期间,/etc/vfstab 和转储配置将更新,以反映设备名称更改。
在基于 SPARC 或 x86 的系统上,执行以下步骤在所有具有多路径功能的设备上禁用多路径。如果您只想在特定的 FC 或 SAS HBA 端口上禁用多路径,请参阅基于每端口启用或禁用多路径。
# stmsboot -d WARNING: stmsboot operates on each supported multipath-capable controller detected in a host. In your system, these controllers are /devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0 /devices/pci@780/pci@0/pci@8/SUNW,qlc@0,1/fp@0,0 /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1 /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1 /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0 /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0 If you do NOT wish to operate on these controllers, please quit stmsboot and re-invoke with -D { fp | mpt } to specify which controllers you wish to modify your multipathing configuration for. Do you wish to continue? [y/n] (default: y) y Checking mpxio status for driver fp Checking mpxio status for driver mpt WARNING: This operation will require a reboot. Do you want to continue ? [y/n] (default: y) y The changes will come into effect after rebooting the system. Reboot the system now ? [y/n] (default: y) y
注 - 在重新引导期间,/etc/vfstab 和转储配置将更新,以反映设备名称更改。
因为以下命令未返回多路径设备信息,所以多路径在该系统中已禁用。
# prtconf -vc /devices/scsi_vhci |grep dev_link.*s2 #
因为以下命令返回了多路径设备信息,所以多路径在该系统中已启用。
# prtconf -vc /devices/scsi_vhci |grep dev_link.*s2 dev_link=/dev/dsk/c0t5000C500335DC60Fd0s2 dev_link=/dev/rdsk/c0t5000C500335DC60Fd0s2 dev_link=/dev/dsk/c0t5000C500335E106Bd0s2 dev_link=/dev/rdsk/c0t5000C500335E106Bd0s2 dev_link=/dev/dsk/c0t5000C500335BA8C3d0s2 dev_link=/dev/rdsk/c0t5000C500335BA8C3d0s2 dev_link=/dev/dsk/c0t5000C500335FC3E7d0s2 dev_link=/dev/rdsk/c0t5000C500335FC3E7d0s2 dev_link=/dev/dsk/c0t50015179594B6F11d0s2 dev_link=/dev/rdsk/c0t50015179594B6F11d0s2 dev_link=/dev/dsk/c0t5000C500335F95E3d0s2 dev_link=/dev/rdsk/c0t5000C500335F95E3d0s2 dev_link=/dev/dsk/c0t5000C500335F907Fd0s2 dev_link=/dev/rdsk/c0t5000C500335F907Fd0s2 dev_link=/dev/dsk/c0t5000C500335BD117d0s2 dev_link=/dev/rdsk/c0t5000C500335BD117d0s2