Hpparm poweron_standby是多危险的?

jacks@Gen4:~$ sudo hdparm -s 1 -S 4 /dev/sdb /dev/sdb: Use of -s1 is VERY DANGEROUS. This requires BIOS and kernel support to recognize/boot the drive. Please supply the --yes-i-know-what-i-am-doing flag if you really want this. Program aborted. 

-s在conf中是poweron_standby

  -s Enable/disable the power-on in standby feature, if supported by the drive. VERY DANGEROUS. Do not use unless you are absolutely certain that both the system BIOS (or firmware) and the operating system kernel (Linux >= 2.6.22) support probing for drives that use this feature. When enabled, the drive is powered-up in the standby mode to allow the controller to sequence the spin-up of devices, reducing the instantaneous current draw burden when many drives share a power supply. Primarily for use in large RAID setups. This feature is usually disabled and the drive is powered-up in the active mode (see -C above). Note that a drive may also allow enabling this feature by a jumper. Some SATA drives support the control of this feature by pin 11 of the SATA power connector. In these cases, this command may be unsupported or may have no effect. 

是什么让这个如此危险? 对我来说,看起来你只是无法旋转它,直到下一次启动。 这对我来说不是问题。 我只是想在Linux中closures我的Windows驱动器。

由于“待机开机”设置可以存储在驱动器中,并可在重新启动和重新启动的情况下继续运行。 该设置确实告诉驱动器不开始旋转,但等待直到接收到正确的命令来进行旋转。 因此,在打开电源后,磁盘消耗的能量要less得多。

危险之处在于,当您的BIOS和您的操作系统都不会向驱动器发送正确的旋转命令时,您的驱动器将不会被检测到。 现在你不能运行hdparm来禁用“开机待命”function,因为缺less设备/dev/sdX

总之,有些情况下不能轻易撤销“待机开机”。

使用mpt2sas linux驱动程序P15.x的LSI SAS2008控制器就是这种情况(2013年1月),在设置PUIS之后,驱动器将不再可用于操作系统。 有关详细信息, 请参阅https://unix.stackexchange.com/questions/58922/how-to-fix-mpt2sas-port-enable-failed-with-timeout-timeout-300s

这与在可预测的时间间隔内发生硬盘故障相似。 基本上,当你感觉到的时候,你可以让驱动器有权closures电源。 它不会产生任何迹象表明它已经关机了…这是由bios足够聪明来跟踪硬盘的状态,并且当你尝试从/向/从/读/写时旋转它它。 如果BIOS或磁盘控制器不… linux会说提交更改到磁盘…和硬盘将不会回应。 数据丢失和/或损坏的可能性很大。