R4900 G2 (RAID卡:PM8060)
RAID卡型号:PM8060
硬盘模式:Raw (Pass Through)
通过hdparm,关闭write cache,不生效
``` # hdparm -W0 /dev/sdd /dev/sdd: setting drive write-caching to 0 (off) write-caching = 1 (on) # hdparm -W /dev/sdd /dev/sdd: write-caching = 1 (on) ```
通过arcconf关闭Global Physical Device Write Cache Policy
``` Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Controller Mode : RAID (Expose RAW) Channel description : SAS/SATA Controller Model : PM8060-RAID Controller Serial Number : 455CC000 Controller World Wide Name : 574EACB7455CC000 Controller Alarm : Enabled Physical Slot : 10 Temperature : 44 C/ 111 F (Normal) Installed memory : 2048 MB Global task priority : High Performance Mode : Default/Dynamic Host bus type : PCIe Host bus speed : 8000 MHz Host bus link width : 8 bit(s)/link(s) PCI Device ID : 653 Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 0 Logical devices/Failed/Degraded : 1/0/0 NCQ status : Enabled Statistics data collection mode : Disabled Global Physical Device Write Cache Policy: Disabled Monitor Log Severity Level : Informational Global Max SAS Phy Link Rate : 12 Gbps Verify Write Setting : Not Applicable ```
查看单个磁盘的write cache策略,仍然是enable
``` Device #3 Device is a Hard drive State : Raw (Pass Through) Block Size : 512 Bytes Supported : Yes Programmed Max Speed : SATA 6.0 Gb/s Transfer Speed : SATA 6.0 Gb/s Reported Channel,Device(T:L) : 0,11(11:0) Reported Location : Enclosure 0, Slot 3(Connector 0, Connector 1) Reported ESD(T:L) : 2,0(0:0) Vendor : ATA Model : HGST HUH721008AL Firmware : T384 Serial number : 7SH64X0D World-wide name : 5000CCA252D0E423 Reserved Size : 0 KB Total Size : 7630885 MB Write Cache : Enabled (write-back) ```
(0)
最佳答案
./arcconf setcache 1 deviceall disable
关闭硬盘缓存
(0)
我试过这个命令,效果是 Global Physical Device Write Cache Policy: Disabled 但是对于每个磁盘,仍然是 Device #12 State : Raw (Pass Through) Reported Channel,Device(T:L) : 0,36(36:0) Write Cache : Enabled (write-back) hdparm也显示write cache=on。 使用arcconf设置指定磁盘的策略,提示不支持raw设备 There was an error in changing the device cache policy. Either the device is RAW (without metadata) or there was a general failure. 但是我这里有一台机器 Device #12 State : Raw (Pass Through) Write Cache : Disabled (write-through) Power State : Full rpm Supported Power States : Full power,Powered off,Standby
感觉像全局DWC测试设置后对物理的硬盘没有生效,可以使用./arcconf getconfig 1 AD命令查看Global Physical Device Write Cache Policy是否改变。最好有具体的硬盘信息及阵列配置信息
固件不允许arcconf命令设置raw裸盘;Global Physical Device Write Cache Policy目前只能应用于逻辑驱动器,对raw裸盘无效。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
固件不允许arcconf命令设置raw裸盘;Global Physical Device Write Cache Policy目前只能应用于逻辑驱动器,对raw裸盘无效。