hdparm:HDIO_DRIVE_CMD(identify) Inappropriate ioctl for device
时间:2019-11-20 08:53:31 来源:igfitidea点击:
在CentOS/RHEL中执行hdparm -tT/dev/sda
命令时,报错:
/dev/sda: Timing buffered disk reads: 608 MB in 3.00 seconds = 202.39 MB/sec HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
解决方法
hdparm的某些选项可能职能在最新的内核中使用。
先确保您已安装最新的内核更新:
# yum -y update
安装最新版本的hdparm:
# wget http://downloads.sourceforge.net/project/hdparm/hdparm/hdparm-9.9.tar.gz
解压缩:
# tar -zxvf hdparm-9.9.tar.gz
编译hdparm:
# cd hdparm-9.9 # make
运行hdparm:
# ./hdparm -tT /dev/sda
输出示例:
/dev/sda: Timing cached reads: 4686 MB in 2.00 seconds = 2346.22 MB/sec Timing buffered disk reads: 888 MB in 3.00 seconds = 295.55 MB/sec