I would like to have a silent Server and therefore I would like to spin down my disks when I don’t need them. Luckily I use a nvme for all my virtual machine storage and an ssd for booting, which are practically silent.

For Longterm Storage I have 2 spinning SAS HDDs on a RAID controller.

Before I attempted to access my HDD I flashed my LSI Raid controller from IR to IT mode in oder to directly access the Harddrive.

This might not be necessary. You can try using sdparm instead of hdparm and see if you can access the disks behind your RAID controller without having the discs on JBOD mode (IT mode)

The important part is to deactivate any processes in Proxmox that regularly activate your spinning disks, otherwise they will spin up almost immediately after you spun them down.

pvestatd
smartd

Stop ProxMox Services from addressing the HDDS by adding them into filter lists

nano -4 /etc/lvm/lvm.conf

scroll to the very end of lvm.conf file

devices {
     # added by pve-manager to avoid scanning ZFS zvols and Ceph rbds
     # global_filter=["r|/dev/zd.*|","r|/dev/rbd.*|"]
     global_filter=["r|/dev/disk/by-label/backup_2.*|", "r|/dev/disk/by-label/backup_1.*|", "r|/dev/sda.*|", "r|/dev/zd.*|", "r|/dev/m>
}
nano cat /etc/smartd.conf

add this to your smartd configuration

# The word DEVICESCAN will cause any remaining lines in this
# configuration file to be ignored: it tells smartd to scan for all
# ATA and SCSI devices.  DEVICESCAN may be followed by any of the
# Directives listed below, which will be applied to all devices that
# are found.  Most users should comment out DEVICESCAN and explicitly
# list the devices that they wish to monitor.


/dev/sdb -d ignore
/dev/sdc -d ignore
/dev/sdd -d ignore

....


Example commands to spin down disks manually

sdparm --command=stop /dev/sdc

Unfortunately after spin down the disk doesn’t seem to wake up by itsself automatically when needed. I hope to be able to address this issue soon

The Next step would integrate these commands into a startup script or a cron schedule.

For People like may me, that only need to activate the slow spinning HDDs once a week for a backup it can be an option to script everything with cronjob. Otherwise having the disks wake up automatically everytime a service wants to use them is definetely a good thing to have.

Ressources:
HDD never spin down | Proxmox Support Forum
HDD never spin down | Page 2 | Proxmox Support Forum

Erkunden Sie inspirierende Geschichten und Experteneinblicke.

Dieser Abschnitt hebt den Zweck des Blogs hervor, indem er fesselnde Geschichten, Expertenmeinungen und wertvolle Erkenntnisse bietet, damit Leser lernen und wachsen können.

Blog Kategorien

Instagram

  • Splunk API call to display scheduled report

    Task View a report on splunk via the splunk API Make sure that the report is contained inside an app only one user can reach Ingredients Recipy Creating user with REST API capabilities Go ahead and create a second user for testing purposes. The Second user won’t have…

  • Spin down Disks in Proxmox Server.

    I would like to have a silent Server and therefore I would like to spin down my disks when I don’t need them. Luckily I use a nvme for all my virtual machine storage and an ssd for booting, which are practically silent. For Longterm Storage I have…

  • Flashing an LSI SAS controller in 2025, AKA „IT-mode“ and UEFI

    This is basically a copy paste of TechSomething instructions with helpful images: Scope: # I have a controller, LSI SAS9217-4i4e, wit IR firmware and want to switch it to IT firmware. Why: # I believed I could not access my disks directly over the shell with hdparm later I figured…

  • Fixing e1000e NIC issue in Proxmox

    My Prox Mox Server suddendly loses connectivity and cannot be reached. Neither the machines it virtualizes nor the web interface itsself is reponding. when checking journalctl I stumbled upon the following error e1000e 0000:00:19.0 eno1: Detected Hardware Unit Hang Here is the proposed solution: e1000e eno1: Detected Hardware…

  • Beitragsbild von Hallo Welt

    Hello world!

    This website, shall help me retain the knowledge I have aquired throughout the many little IT-projects I work on in a daily basis, whether it’s setting up a server, utilizing a new service or troubleshooting IT-Infrastructure. Come on this journey with me, maybe you will also find pieces…


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert