我的需求是将物理磁盘自身的缓存关闭(避免异常断电导致缓存中数据丢失),开启磁盘阵列卡的缓存。是不是按照https://zhiliao.h3c.com/Theme/details/55252 这个文档设置就可以了。文档中没看到将阵列卡设置成write back模式的方法,是不是开启阵列卡缓存就相当于是write back模式了,不需要额外设置是吗?麻烦帮忙解答下
(0)
最佳答案
PMC的卡:
系统下使用命令./arcconf getconfig 1 ld 0 查看逻辑卷缓存状态
打开阵列卡Cache:arcconf setcache 1 logicaldrive 0 con
LSI的卡:
# storcli /cx show all |grep -i cache 查看盘的策略
storcli没找到关闭单盘的缓存命令,只有对vd的和阵列卡的缓存策略。
# storcli /cx/vx set iopolicy=<cached|direct>
This command sets the I/O policy on a virtual drive to cached I/O or direct I/O.
# storcli /cx/vx set pdcache=<on|off|default>
This command sets the current disk cache policy on a virtual drive to on, off, or default setting.
# storcli /cx/vx set rdcache=<ra|nora>
This command sets the read cache policy on a virtual drive to read ahead or no read ahead.
# storcli /cx/vx|vall set wrcache=<wt|wb|awb>
This command sets the write cache policy on a virtual drive to write back, write through, or always write back.
(0)
1、./arcconf setcache 1 deviceall disable 您说的这个关闭物理硬盘的方法,和我说的下面这种方式效果是一样的吗arcconf setcache 1 drivewritecachepolicy configured 2 arcconf setcache 1 drivewritecachepolicy unconfigured 2 arcconf setcache 1 drivewritecachepolicy hba 2
用./arcconf setcache 1 deviceall disable命令关闭物理磁盘缓存后,用什么命令查询是否关闭成功呢?
我的是P460,那还需要额外配置write back吗?还是说只要用您给的那3条命令就可以了呢?
就用那3条命令就可以实现用阵列卡做缓存,异常断电不丢失数据是吧?
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
嗯,根据实际逻辑盘的序号更改就可以开启阵列卡的缓存