今天加了一块3T的硬盘作为数据盘(确定不会被程序唤醒,只是单纯的数据盘)
硬盘格式化并挂载在/home/share
在我使用sudo hdparm -y /dev/sda后,从下午到晚上均发现硬盘是在待机模式
用户名@J3455:~$ sudo hdparm -C /dev/sda
/dev/sda:
drive state is: standby
表明,硬盘是支持的,系统也是支持的;但是我使用了两种方式,先开机自动运行,都以失败告终,请大佬点评解惑,谢谢!
方式一:
在/etc/hdparm.conf末尾加入下面代码
/dev/sda {
write_cache = on
spindown_time = 120
}
重启后无效....
方式二:
rc.local开机脚本加入(18.04不支持,按网上教程增加了rc.local)
sudo hdparm -S 120 /dev/sda
重启后,还是失败
-----------------------------------------------------------------
然后换了个方式检查硬盘,用sudo hdparm -S 10 /dev/sda,发现是支持的,50s后,使用sudo hdparm -C /dev/sda,显示的是 drive state is: standby
就搞不明白了
ubuntu server 18.04.3下硬盘休眠的疑惑
-
- 帖子: 7
- 注册时间: 2008-04-13 17:20
-
- 帖子: 7
- 注册时间: 2008-04-13 17:20
Re: ubuntu server 18.04.3下硬盘休眠的疑惑
好了,搞定呢,硬盘监控导致的,-s 1 能使用,是因为未到硬盘监控周期