oracle 多路径 SAN,启用和禁用多路径

启用和禁用多路径

可使用 stmsboot 命令为光纤通道 (Fibre Channel, FC) 和 SAS 设备启用或禁用多路径。stmsboot 命令将更新 /etc/vfstab 文件和转储配置,以在下次重新引导时反映设备名称更改。您无需手动编辑

fp.conf 或 mpt.conf 文件。

以下注意事项适用于 stmsboot -e、-d 和 -u 选项:

运行 stmsboot 命令之后应立即重新引导。

确保将 eeprom 引导设备设置为从您的当前引导设备来引导。必须这样做,因为 stmsboot 命令会重新引导计算机以完成该操作。

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 和转储配置将更新,以反映设备名称更改。

可选重新引导之后,如有必要,按多路径注意事项中的“设备名称更改注意事项”所述,将您的应用程序配置为使用新的设备名称。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值