HDD Sleep not working

Nero_XIII

New Member
Jun 2, 2024
1
0
1
Hi everyone,

i do need some help and hopefully someone knows where the problem is. My setup:
Proxmox installation on NVME, 2 Physical HDD's (besides some others) attached as Data Storage for the TrueNAS Core which is running in a VM.
My problem is that those drives are not needed all the time and should spin down / go to sleep when not used.

I already googled and searched for this and tried some things. I configured the /etc/lvm/lvm.conf and added this line:

Code:
global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|", "r|/dev/mapper/.*-(vm|base)--[0-9]+--disk--[0-9]+|", "r|/dev/sda*|", "r|/dev/sdb*|", "r|/dev/sdc*|", "r|/dev/sdd*|" ]

But the drives still get some R/W's. I observed them for some minutes by using
Code:
blktrace -d /dev/sda -o - | blkparse -i -"
and i can see there are reads and writes every few minutes. Problem is i cannot figure out what process is doing this. This is just a little part of the output but i does show the same again and again.

Code:
8,0    2      143    10.099853386  1593  I  WS 1918047520 + 8 [kvm]
  8,0    2      144    10.099868014   198  D  WS 1918047520 + 8 [kworker/2:1H]
  8,0    2      145    10.100108188  1593  Q  WS 5418165048 + 8 [kvm]
  8,0    2      146    10.100109169  1593  G  WS 5418165048 + 8 [kvm]
  8,0    2      147    10.100109430  1593  I  WS 5418165048 + 8 [kvm]
  8,0    2      148    10.100143975   198  D  WS 5418165048 + 8 [kworker/2:1H]
  8,0    2      149    10.100622299  1593  Q  WS 5475189208 + 8 [kvm]
  8,0    2      150    10.100623201  1593  G  WS 5475189208 + 8 [kvm]
  8,0    2      151    10.100623461  1593  I  WS 5475189208 + 8 [kvm]
  8,0    2      152    10.100637167   198  D  WS 5475189208 + 8 [kworker/2:1H]

Also it does not make any difference if the VM which is using the drives is online or not (TrueNAS Core VM)

Those drives are able to spin down and sleep. If i send the command
Code:
hdparm -Y /dev/sda
they go to sleep. Only weird thing is that i cannot get any state when i try the command
Code:
hdparm -C /dev/sda
i just get "drive state is: unknown. Anyways. I used those exact HDD's in my Synology NAS where they went to sleep and did wake up when they got some input from Proxmox - Jellyfin Container.

Does someone has any idea? Please help, i am out of ideas and pretty new to the Proxmox environment. I am happy to share some additional information if needed
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!