直通卡方式如下:
1、安裝sdparm rpm包 獲取鏈接:http://www.rpmfind.net/linux/rpm2html/search.php?query=sdparm
2、操作命令如下:
Check HDD Write cache status:
sdparm /dev/sdb
Disable write cache:
sdparm -s WCE=0 --save /dev/sdb (0是設置關閉緩存,1是開啟緩存)
Enable write cache:
sdparm -s WCE=1 --save /dev/sdb
RAID卡
所有單盤做RAID0:
/opt/MegaRAID/MegaCli/MegaCli64 -CfgEachDskRaid0 -a0
關閉raid緩存
72 /opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -DisDskCache -Immediate -Lall -aAll
