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) ```
./arcconf setcache 1 deviceall disable
关闭硬盘缓存
固件不允许通过工具/命令设置raw裸盘;Global Physical Device Write Cache Policy目前只能应用于逻辑驱动器,对raw裸盘无效。从反馈的结果看sdd那块盘应该是raw裸盘,所以设置关闭直写缓存无效。
答案来自于 风清扬
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作