HDD Spindown options

Repjas

New Member
Jul 14, 2023
2
0
1
Very new to Proxmox / Virtualization and all that, so apologies for stupid questions or ignorance. I have seen many posts regarding this topic, but I could not find a definitive true fix.

Current situation and desired effect
I have a SATA HDD attached to my Proxmox host (LVM). I have a Windows VM that has a virtual disk on this HDD via hardware configuration in webgui. I want my HDD to spindown when not in use, because it is very noisy in my home office. This HDD only contains media that is used for Plex so I am not concerned about the HDD breaking. Currently the disk never spins down, because Proxmox keeps reading it due to pvestatd according to other posts I found.

What have I tried?
  • Passthrough the entire HDD to the VM via QM set command. Technically I did not really try this as I already read it is still a virtualization and Proxmox still manages the HDD. So this option will not work. Please correct me if wrong.
  • Exclude the HDD from pvestatd by adding it to global_filter like many posts suggest. This works (the drive spins down and up when necessary), but when I reboot the VM I get an error: "TASK ERROR: can't activate LV '/dev/Seagate_2TB/vm-101-disk-0': Cannot process volume group Seagate_2TB"

It feels this would be a basic feature, but I can't get it to work. Any suggestions?
 
Nobody?
Did I not make a good post or nobody feels like they want to answer?
Please let me know if it is the first case.
 
I have no experience with this but there are many forum posts about HDD spindown and why it does not because of Proxmox graphs and/or VMs that have no direct access to the HDD. It's not really a use case for an enterprise hypervisor but maybe you can figure something out that works for you, with Linux tools or scripting.