+ -
当前位置:首页 → 问答吧 → rw_timeout reassign_to switch_retries 如何更改

rw_timeout reassign_to switch_retries 如何更改

时间:2011-04-25

来源:互联网

# lsattr -El hdisk15
clr_q         no                                                              Device CLEARS its Queue on error True
host_addr     192.168.3.23                                                    Hostname or IP Address           False
location                                                                      Location Label                   True
lun_id        0x9000000000000                                                 Logical Unit Number ID           False
max_transfer  0x40000                                                         Maximum TRANSFER Size            True
port_num      0xcbc                                                           PORT Number                      False
pvid          00ca046a7f8e59eb0000000000000000                                Physical volume identifier       False
q_err         yes                                                             Use QERR bit                     True
q_type        simple                                                          Queuing TYPE                     True
queue_depth   1                                                               Queue DEPTH                      True
reassign_to   120                                                             REASSIGN time out value          True
rw_timeout    30                                                              READ/WRITE time out value        True
start_timeout 60                                                              START unit time out value        True
target_name   iqn.2006-08.com.huaweiceanstor:21000022a10328b0::192.168.3.23 Target NAME                      False

作者: taoy_2008   发布时间: 2011-04-25

存储阵列做LVM Mirror时的IO暂停时间过大, 想更改一些参数。 rw_timeout    30      现在为30 这个可以更改为0 吗?找到一个文档 说按照下面的来设置。 不知道如何更改下面的这三个参数?

  

设备  参数  默认属性  更改为  参数的含义  备注
dar  switch_retries  5  0  重试与交换机连接的次数

hdisk rw_timeout 30  10 每个读写操作超时的时长,单位是秒 每个pending的IO都需要等到超时才能通知LVM
hdisk reassign_to 120 30 发现丢包后多长时间通知主机,单位是秒 允许的范围为0到1000秒

作者: taoy_2008   发布时间: 2011-04-25

man chdev

作者: 老农   发布时间: 2011-04-25