--write-sector Repair/overwrite a (possibly bad) sector directly on the media (VERY DANGEROUS) 开启write-read-verify : [root@db-172-16-3-150 hdparm-9.43]# hdparm -R 2 /dev/mapper/mpath1 /dev/mapper/mpath1: setting write-read-verify to 2 write-read-verify = 2 确认已经开启 : [root...
用hdparm 修复: hdparm --yes-i-know-what-i-am-doing --write-sector 221147144 /dev/sdb hdparm --yes-i-know-what-i-am-doing --write-sector 221147145 /dev/sdb hdparm --yes-i-know-what-i-am-doing --write-sector 221147146 /dev/sdb hdparm --yes-i-know-what-i-am-doing --write-secto...
-w Perform device reset (DANGEROUS) -W Get/set drive write-caching flag (0/1) -x Obsolete -X Set IDE xfer mode (DANGEROUS) -y Put drive in standby mode -Y Put drive to sleep -z Re-read partition table -Z Disable Seagate auto-powersaving mode 用于测试硬盘驱动器速度的命令:[root@ins...
write-caching = 0 (off) Timing buffered disk reads: 222 MB in 3.01 seconds = 73.84 MB/sec root@LOonux:/home/loongson# hdparm -W 1 -t /dev/sda /dev/sda: setting drive write-caching to 1 (on) write-caching = 1 (on) Timing buffered disk reads: 220 MB in 3.00 seconds = 73.23 M...
-W Get/set drive write-caching flag (0/1) -x Obsolete -X Set IDE xfer mode (DANGEROUS) -y Put drive in standby mode -Y Put drive to sleep -z Re-read partition table -Z Disable Seagate auto-powersaving mode 用于测试硬盘驱动器速度的命令: ...
sudo hdparm -I /dev/sda | grep 'Write cache' 让硬盘进入待机模式 hdparm -y /dev/sda1 让硬盘进入睡眠模式 hdparm -Y /dev/sda1 设置定时休眠 5分钟无操作休眠(参数是5的倍数,比如60*5是300秒也就是5分钟) hdparm -S 60 /dev/sda1
使用`hdparm -W /dev/sdx`命令可以查看硬盘的写入缓存是否启用。 如果输出结果为: ``` /dev/sdx: write-caching = 1 (on) ``` 表示写入缓存已启用。 如果输出结果为: ``` /dev/sdx: write-caching = 0 (off) ``` 表示写入缓存未启用。 如果需要启用或禁用写入缓存,可以使用`hdparm -W 1 /dev/sd...
hdparm -tT --direct /dev/sdh 顺序写测试: time -p bash -c "dd if=/dev/urandom of=./dd.log bs=1M count=50000" 随机写测试(使用direct标识,绕过页缓存): fio -filename=randw-singlethread -fallocate=none -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=libaio -bs=32k -size=1000...
(DANGEROUS)-WGet/setdrive write-cachingflag(0/1)-x Obsolete-XSetIDExfermode(DANGEROUS)-y Put driveinstandby mode-YPut drive to sleep-z Re-read partition table-ZDisable Seagate auto-powersaving mode--dco-freeze Freeze/lock current device configuration until next power cycle--dco-identify Read/...
(绕过内核页缓存): hdparm -tT --direct /dev/sdh 顺序写测试: time -p bash -c "dd if=/dev/urandom of=./dd.log bs=1M count=50000" 随机写测试(使用direct标识,绕过页缓存): fio -filename=randw-singlethread -fallocate=none -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=libaio ...