跳过导航链接 | |
退出打印视图 | |
![]() |
Oracle Solaris 11.1 管理:SAN 配置和多路径 Oracle Solaris 11.1 Information Library (简体中文) |
在配置或删除设备节点之前,请务必先使用确保 LUN 级别信息可见过程确定光纤设备。
在本例中,光纤连接的主机端口上的 Ap_Id 是多路径设备的路径。例如,将配置路径通过 c2 的所有设备,而不配置任何路径通过 c0 的设备。c2 是从系统到光纤的连接点,而 c2::50020f2300006107 是从存储到光纤的连接点。系统会检测其配置所针对的光纤中的所有存储设备。
在已经通过一个 Ap_Id 配置的设备上配置另一个 Ap_Id 会导致先前配置的设备出现一条附加路径。此时,不会创建新设备节点。只有首次配置相应设备的 Ap_Id 时才会创建设备节点。
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected configured unknown c0::50020f2300006077 disk connected configured unknown c0::50020f23000063a9 disk connected configured unknown c1 fc-private connected configured unknown c1::220203708b69c32b disk connected configured unknown c1::220203708ba7d832 disk connected configured unknown c1::220203708b8d45f2 disk connected configured unknown c1::220203708b9b20b2 disk connected configured unknown c2 fc-fabric connected unconfigured unknown c2::50020f2300005f24 disk connected unconfigured unknown c2::50020f2300006107 disk connected unconfigured unknown
由 Ap_Id c0::50020f2300006077 和 c2::50020f2300006107 表示的设备是已经配置了 c0::50020f2300006077 的同一物理设备的两个路径。配置选定端口上的未配置设备。此操作将对 c2 上的所有设备重复单个设备的 configure 命令。如果 c2 上的设备数量巨大,此操作可能很耗时。
# cfgadm -c configure c2
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected configured unknown c0::50020f2300006077 disk connected configured unknown c0::50020f23000063a9 disk connected configured unknown c1 fc-private connected configured unknown c1::220203708b69c32b disk connected configured unknown c1::220203708ba7d832 disk connected configured unknown c1::220203708b8d45f2 disk connected configured unknown c1::220203708b9b20b2 disk connected configured unknown c2 fc-fabric connected configured unknown c2::50020f2300005f24 disk connected configured unknown c2::50020f2300006107 disk connected configured unknown
请注意,c2 的 Occupant 列和 c2 下的所有设备均被标记为 configured。
show_SCSI_LUN 命令显示多个 LUN SCSI 设备的 FCP SCSI LUN 信息。以下代码示例显示通过 c2::50020f2300006107 和 c2::50020f2300005f24 连接的物理设备分别配置了两个 LUN。
# cfgadm -al -o show_SCSI_LUN c2 Ap_Id Type Receptacle Occupant Condition c2 fc-fabric connected configured unknown c2::50020f2300005f24,0 disk connected configured unknown c2::50020f2300005f24,1 disk connected configured unknown c2::50020f2300006107,0 disk connected configured unknown c2::50020f2300006107,1 disk connected configured unknown