• 子方有料致力于陪伴互联网运营小白共同探索成长,与IT爱好者共享探索乐趣
  • 淘·有料 | 爱购物爱省钱,天猫淘宝优惠天天有
  • 建站只为分享,欢迎在PC端文章面打赏支持
  • 使用Ctrl+D 可收藏本站

Proxmox(PVE)硬盘不休眠问题实际案例解析

好玩有趣 陆子方 7个月前 (03-14) 511次浏览 0个评论 扫描二维码
文章目录[隐藏]

不休眠的原因是,pve一直在监控硬盘运行情况。

第一步:找到硬盘UUID,不建议使用sda这种,容易乱

[email protected]:~# ls -l /dev/disk/by-uuid  #或者lsblk -f更好
total 0
lrwxrwxrwx 1 root root 10 Apr 10 23:21 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 10 23:21 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 10 23:21 xxxxxxxx55340510876 -> ../../sdb3

第二步:关闭监控

nano /etc/lvm/lvm.conf

增加 “r|/dev/sdd.*|” 到 global_filter

格式为:”r|/dev/disk/by-id/ata-WDC_WD40EZAZ-00SF3B0_WD-WX32DA0HYCR7.*|”

多个硬盘实际案例

多个硬盘实际案例
devices {
# added by pve-manager to avoid scanning ZFS zvols
global_filter = ["r|/dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4.*|","r|/dev/disk/by-id/dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4.*|"]
}
global_filter = ["r|/dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4.*|","r|/dev/disk/by-id/dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4.*|"]devices {
	 # added by pve-manager to avoid scanning ZFS zvols
	 global_filter=["r|/dev/zd.*|"]
}
update-initramfs -u  #应用系统改变并重启

第三步,要处理休眠时间,设定硬盘在多久进入休眠状态。

  nano /etc/hdparam.conf
spindown_time是多少分钟后休眠
实际案例:
 /dev/disk/by-id/ata-ST1000LM035-1RK172_WC01X4Z4 {
         apm = 127
         acoustic_management = 127
         spindown_time = 20
 }
  /dev/disk/by-id/ata-ST2000DM006-2DM164_Z4ZABNR8 {
         apm = 127
         acoustic_management = 127
         spindown_time = 45
 }

子方有料原创丨转载请注明原文链接
期待您的评论或捐赠,这是最好的鼓励和支持!
喜欢 (0)
[赞赏使我快乐]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到