HDD not going to sleep in proxmox ve, but it does in some other systems

Cossty

New Member
Jun 22, 2024
3
0
1
I have external USB HDD passed to openmediavault vm. This is how power management is set up for that drive:
omvhddpm.png
And it works. When hdd is spinning it uses +-5.2w, led on the enclosure is on.
When it is in standby it uses +- 3.7w, led on enclosure is on
When it is sleeping it uses 0w, led on enclosure is very slowly blinking.

It works with my laptop (linux mint) too, without any configuration. After a while, it just goes to sleep.

I want to stop using this hdd in omv vm and use it on proxmox host with some mout points to couple lxc containers.
The problem is the hdd won't go to sleep in pve, without configuration it won't even go into standby.

I added this udev rule:
hdparmudevrule.png
I know it works, because without it the hdd won't even enter standby mode and is always spinning. Even with this rule, it never enters sleep mode though.

According to hdparm, the hdd doesnt support APM, only some Power Management feature set
hdparmB.png
hdparmI.png

Tried it in truenas vm, it has very similar web gui for hdd power management as omv, I set APM to 1 just like in omv, but it didnt work in truenas and never went to sleep.
How come it works in omv and mint then? It looks like omv doesn't even have hdparm installed, even though their web ui looks like it is using it
omvhdparm-B.png

How can I put this hdd to sleep in pve? I saw some mentions of hd-idle on omv forums, but from documentation it looks like it can only put hdds into stanby.
 
And in general, for a server, you want disks spinning 24/7. A single disk won't drive up your power bill. If you're worried about that, you can always switch to ssd
 
And in general, for a server, you want disks spinning 24/7. A single disk won't drive up your power bill. If you're worried about that, you can always switch to ssd
This HDD will be accessed max 2x a day, some days it won't be used at all, that's why a find it useless to go 24/7
 
I have external USB HDD passed to openmediavault vm. This is how power management is set up for that drive:

And it works. When hdd is spinning it uses +-5.2w, led on the enclosure is on.
When it is in standby it uses +- 3.7w, led on enclosure is on
When it is sleeping it uses 0w, led on enclosure is very slowly blinking.

It works with my laptop (linux mint) too, without any configuration. After a while, it just goes to sleep.

I want to stop using this hdd in omv vm and use it on proxmox host with some mout points to couple lxc containers.
The problem is the hdd won't go to sleep in pve, without configuration it won't even go into standby.

I had the same problem with my external USB HDD passed to my homeserver VM (SMB) home file sharing and the HDD just would not go to sleep.
What I did was I went to my VM > Hardware > Add > USB Device > Use USB Vendor/Device ID > Then choose the USB device from the list, now the HDD goes to sleep without even changing a single setting or making other changes.
 
  • Like
Reactions: why-be-banned