DynaPath能在安装的时候自动配置。默认情况下,路径故障切换和负载均衡都是被激活的。如果你想修改这些配置,可以使用dynacfg功能,输入dynacfg来获得可用选项。
items
comments
-l
列举所有的组,并显示PnP延时
-u
修改PnP延时
-s
显示路径状态
-u
激活或屏蔽负载均衡功能
1.命令dynacfg –l列举所有的组并显示几个选项。
C:\Program Files\DynaPath>dynacfg.exe -l
Dynapath version 5.01 build 921
Successfully opened \\.\dpd
Successfully created event
Send SPD_GETALLID
Debug_Level is set to 0
PnP Delay is set to 1 seconds
Use Page 80 is set to 0
There are 2 groups
------------------------------------------------------
spd_id: 1
spd_id: 2
Done.
在这个例子中,有2个组,关闭了调试功能,PnP延时是1,并且系统正使用Page 80。
PnP延时是在NeoStor故障切换以后,恢复路径的时间间隔。推荐把这个延时设置为0。但是,有的驱动器要求这个延时为10。如果你使用Emulex适配器,那这个值就必须设置为10。
如果要为适配器修改PnP延时,在命令行下,输入命令:dynacfg –p delay。例如,要把这个延时改成10秒,就输入:dynacfg –p 10
C:\Program Files\DynaPath>dynacfg.exe -p 10
Dynapath version 5.01 build 921
Successfully opened \\.\dpd
Successfully created event
Send SPD_SET_PNP_DELAY
Set PnP Delay to 10 seconds
Done.
在命令行,输入dynacfg –s spd_id
例如:dynacfg –s 1。出现如下界面。
C:\Program Files\DynaPath>dynacfg.exe -s 1
Dynapath version 5.01 build 921
Successfully opened \\.\dpd
Successfully created event
spd_id is 1
Send SPD_GETPATHSTATE
Group: 1
------------------------------------------------------
npath: 2
balance: 1
retrydelay: 3000
retrycount: 100
failback: 0
exclude: 0
primarygroup: 0
type: 0
StrID: 600D777002F1757459E7685AED9C
Path Status:
-------------------------------------
Path00: State: PATH_GOOD
Path00: OnController: Primary
Path00: Commands Read: 6
Path00: Commands Write: 0
Path00: Bytes Read: 3072
Path00: Bytes Write: 0
Path01: State: PATH_GOOD
Path01: OnController: Primary
Path01: Commands Read: 0
Path01: Commands Write: 0
Path01: Bytes Read: 0
Path01: Bytes Write: 0
Done.
在这个例子中,负载均衡被激活(1表示激活,0表示屏蔽),每条路径都工作正常。
在命令行中,输入下面的命令来激活负载均衡。
dynacfg –u spd_id retrydelay retrycount loadbalance
dynacfg –u 1 3000 100 1
C:\Program Files\DynaPath>dynacfg.exe -u 1 3000 100 0
Dynapath version 5.01 build 921
Successfully opened \\.\dpd
Successfully created event
spd_id is 1
retrydelay is 3000
retrycount is 100
loadbalance is to be disabled
Send SPD_SETCONF
Successfully updated configuration
Done.
C:\Program Files\DynaPath>dynacfg.exe -u 1 3000 100 1
Dynapath version 5.01 build 921
Successfully opened \\.\dpd
Successfully created event
spd_id is 1
retrydelay is 3000
retrycount is 100
loadbalance is to be enabled
Send SPD_SETCONF
Successfully updated configuration
Done.
注意:
虽然可以修改retrydelay和retrycount的值,但是不推荐这样做。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作