How to spin down disk when idle

  • Thread starter Thread starter yitzhakbg
  • Start date Start date
Y

yitzhakbg

Guest
My Proxmox server doesn't suffer from heavy use/
How can I configure it to spin down the disk when idle?
 
I doubt your disk is ever completely idle. Logfiles and such are written, that would keep the disk spinning anyways. And if a request did come in, the disk would have to spin back up, which can take a few seconds. Servers and power saving don't really mix, unless its something like the CPU going into a lower performance state, the CPU can step up to maximum performance instantly, whereas a disk takes several seconds.
 
Thanks for the reply, Lucas. I admit that this is a slightly unusual Proxmox setup. I have it at home with very few users. There's virtually no activity at all throughout the night and none of us mind waiting a few seconds for the disk to get back to speed again.
 
I have a similar kind of setup as well. The cron jobs write log files every few minutes, so the system would never have time to spin down the drives even if it was possible. The system has to write things like this to the syslog ...

Jan 10 16:20:01 cron 3879 (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
Jan 10 16:20:01 cron 3878 (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
Jan 10 16:25:01 cron 4120 (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
Jan 10 16:25:01 cron 4121 (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
Jan 10 16:30:01 cron 4366 (root) CMD (test -x /usr/lib/atsar/atsa1 && /usr/lib/atsar/atsa1)
Jan 10 16:30:01 cron 4369 (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
Jan 10 16:30:01 cron 4368 (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
Jan 10 16:35:01 cron 4915 (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
Jan 10 16:35:01 cron 4916 (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
Jan 10 16:40:01 cron 5183 (root) CMD (test -x /usr/lib/atsar/atsa1 && /usr/lib/atsar/atsa1)
Jan 10 16:40:01 cron 5184 (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
Jan 10 16:40:01 cron 5185 (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
 
i understand that the disk containing proxmox and the vm's will never sspindown, but what about a disk containing data only? Do they spin down?
 
Hi,

my Proxmox VE home server has one 2,5" system hdd containing the virtual machines and three 3" 3,5 hdds as RAID5 containing data which is accessible over Samba shares and NFS. If there is no access to the shares, the data hdds spin down (configured with hdparm). This works flawlessly.

Regards,
Der Nasenmann
 
If you want to spin down all disks, you might be interested in the package below. A friend of mine wanted to do the same on his small home/business server. I haven't tried it yet, but looks useful: http://www.tremende.com/ramlog/