如何防止硬盘旋转或停止?

如何防止硬盘旋转或停止?

我最近在我的其中一台服务器中添加了 Toshiba Enterprise MG06ACA10TE 10TB 磁盘。

从那时起,我每天都会在系统日志中收到 5-15 条这样的消息:

smartd[625]: Device: /dev/sdb [SAT], CHECK POWER STATUS spins up disk (0x80 -> 0xff)

据我了解,这意味着硬盘在空闲一段时间后会降低转速以节省电量。

我担心这会对我的旋转硬盘造成不必要的磨损。

我应该忽略这些日志消息 - 或者我应该以某种方式告诉磁盘不要旋转?

我倾向于认为后者是正确的选择。但是我该如何告诉磁盘不要减速呢?

我一直在研究“hdparm”选项,但不确定哪个选项会指示驱动器不减速。我试过 hdparm -B /dev/sdb,它显示:

# hdparm -B /dev/sdb 

/dev/sdb:
 APM_level      = 254

hdparm 的手册页对 -B 选项有如下说明:

Get/set  Advanced  Power  Management  feature, if the drive supports it. A low value means 
aggressive power management and a high value means better performance.  Possible settings range 
from values 1 through 127 (which
permit spin-down), and values 128 through 254 (which do not permit spin-down).  The highest 
degree of power management is attained with a setting of 1, and the highest I/O performance with 
a setting of 254.  A value  of 255 tells hdparm to disable Advanced Power Management altogether 
on the drive (not all drives support disabling it, but most do).

那么我应该尝试 255 值吗?或者完全禁用 APM 是否还存在其他问题?

相关内容