1. 程式人生 > >多路徑軟件常用操作(MPIO)

多路徑軟件常用操作(MPIO)

鏈路 monitored devices 更改 操作 path pat should arr

一:查看存儲盤的路徑

1、 查看MPIO的存儲盤的路徑

# lspath (適用於所有存儲的MPIO路徑查詢)

# mpio_get_config -Av (適用於DS3K/DS4K的MPIO路徑查詢)

2、 查看RDAC存儲盤的路徑

# fget_config -Av (適用於DS3K/DS4K的RDAC路徑查詢)

3、查看SDDPCM存儲盤的路徑

# pcmpath query device (適用於DS6K/DS8K和v7000的SDDPCM路徑查詢)

4、 查看當前操作系統自帶的支持IBM存儲的多路徑軟件

# manage_disk_drivers

5、 將DS4700默認的多路徑軟件更改成RDAC

# manage_disk_drivers -d DS4700 -o AIX_fcparray

二:MPIO路徑的常用操作

1、 查看單個盤的路徑

# lspath -l hdisk3

# lspath -F "status name path_id parent connection" | grep -w hdisk3

2、MPIO路徑控制將fcs0卡下的hdisk2的路徑禁用

# chpath -l hdisk2 -p fscsi0 -s disable 將fcs0卡下的hdisk2的路徑啟用

# chpath -l hdisk2 -p fscsi0 -s enable

3、其它參數

# chdev -l hdisk3 -a queue_depth=1 //如果ODM是1.0.1.0以上可以是任何數字

# chdev -l hdisk3 -a hcheck_interval=60 //鏈路失效檢查時間間隔;

如果等0,則不會自檢

# chdev -l hdisk3 hcheck_mode=nonacive

This parameter specifies which I/O paths should be monitored by the path health checking functionality.

nonactive: This mode will check all failed I/O paths and all standby paths of used/opened devices.

failed: This mode with check failed I/O paths only.

enabled: This mode will check all enabled I/O paths which are opened.

Note:

Non-opened devices are not monitored. Also, this attribute is

not being used at this time since path health checking is not

enabled. This attribute can be ignored

4、修改鏈路優先級

lspath -AHE -l hdisk2 -p vscsi3 //查看鏈路優先級

# chpath -l hdisk3 -p fscsi0 -w

鏈路

1 -a priority=1

# chpath -l hdisk3 -p fscsi0 -w

鏈路

2 -a priority=2

5、處理故障

1)如果發現有很多路徑是missing的,可以用cfgmgr重新掃描,如果還有missing的,可以用步驟2和2來激活路徑;

2)如果要更換光纖線,可以該卡上的有的路徑禁用,換完線後再啟用,避免直接撥線產生的風險。

多路徑軟件常用操作(MPIO)