HDD never spin down

charlot rodolphe

New Member
Oct 31, 2018
1
0
1
26
Hi,

I have a Proxmox server (5.2.1) with the config below :
- Xeon E5 2650 V2
- 16Gb Ram ECC
- 120 GB SSD (KINGSTON SV300S3)
- 2x2To HDD (Hitachi HUS72403 and TOSHIBA DT01ACA3)
The proxmox server is intalled on the SSD, the containers too.

My two hard-drives are configured in RAID 1 with this thread :
doc.ubuntu-fr.org/raid_logiciel

It's mounted on my proxmox server, and shared through NFS with my 4 containers.

Everything is working smoothly but hard drives never spin down.
When i try a : hdparm -y /dev/sd[bc]
It lasts for a few seconds then hard drives spin again

I tried to stop the NFS server and stop all the containers but there are always 4096 bytes read or write every 1 or 2 seconds and I don't know where i comes from.

They are driving me crazy because I sleep next to it :)
Any idea that could help me understand where I did something wrong ?

PS : Sorry for my english

Attachments :
Result of
- dstat -D sdb,sdc
- mdadm --detail /dev/md0
- iostat -d 10 /dev/x
- iotop
capture d'écran.png capture d'écran.png capture d'écran_1.png capture d'écran_2.png capture d'écran_3.png
 

martin_bk

New Member
May 24, 2019
3
0
1
31
Hello,

is there a known solution for hdd sleep now?
I want to use proxmox (install it on a ssd) and create a zfs pool (with 4 disks) and share it via SMB to my Windwos systems.
The ZFS Pool is used maybe 4 or 5 times a week, so it is necessary for me to send my disks from the ZFS pool to sleep when they are idle.

as far as i know the pvestatd keeps the disks awake because it scans them every few seconds.

I really want to use Proxmox but as long as there is no real solution for this its a pain to use it.
Proxmox needs a function to exclude disks from pvestatd.

Or is there any solution to get disk sleep working?
 

Dark26

Member
Nov 27, 2017
81
5
8
42
the filesystem is ext4 ?

you can this to see what access the disk :

Hi

Another option is to enable hard drive access dumping to syslog.

That may tell you what is accessing the particular drive. I used it myself may moons ago and found it useful.

To turn it on...

Code:
echo 1 | sudo tee /proc/sys/vm/block_dump
and to turn it off

Code:
echo 0 | sudo tee /proc/sys/vm/block_dump
You can then check syslog to try to determine what is writing to the drive.


BECAREFUL --> the log file grows very fast.


If you have ext4 filesystem, the system chek the health and wake up the disk.

No problem with ext2
 

martin_bk

New Member
May 24, 2019
3
0
1
31
Hello Dark26,

Your answer is kinda "off topic".
I never talked about ext, I was pretty clear that its a ZFS volume. And there is no reason to watch at logfiles because I already have identified pvestad as the problem.

I would like to hear a answer from a staff member who knows what im talkin about.

Thanks
 

Tinker Xie

New Member
Jul 16, 2019
2
0
1
30
Hello, I found a way to keep unused disk standby.
I see all hdd become active when I use lvm commands (like lvdisplay), and pvestatd will call lvm functions to get the status of default local-lvm storage.
so I edit the /etc/lvm/lvm.conf, append a new filter rule in
devices{
global_filter []​
}​

now it is
global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|", "r|/dev/sdb.*|" ]​

and now pvestatd will not awake my /dev/sdb
 
Last edited:

martin_bk

New Member
May 24, 2019
3
0
1
31
Hello Tinker Xie,

thanks a lot. Can you please explain the functions you are using?
i assume that I have to add "r|/dev/sdc.*|","r|/dev/sdd.*|","r|/dev/sde.*|" when i have 3 other disks i want to keep in standby mode?

Greetings

To the Proxmox Staff Members:
Are you planning to integrate a function in version 6.0 to prevent discs from waking up? Like exclude disk from beeing read by pvestatd or exclude them from lvm commands?
I know that only a few users would use this, but as I found on the forums and other tech sites it is something that people would use.
It would be greate if you could have a look on it, I mean in times like these its worth to have a look at our environment and with this simple funktion you could contribute on energy saving - in my case the discs are spinning 24/7 but I use them only 4 - 5 times a week. YOU could help people to save money on energy and cooling just by adding some lines of code.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!