Add staggered drive spin-up script and systemd unit

12x 3.5" HDDs spinning up simultaneously can spike ~240W, pushing a single
750W PSU close to its limit. Two-layer fix:
- Layer 1: racadm iDRAC BIOS setting (HddSeq) fires at POST before OS loads
- Layer 2: stagger-spinup.service wakes drives one at a time via hdparm on boot

https://claude.ai/code/session_01TxTSnxDjgEVuNztdsWQjMD
This commit is contained in:
Claude
2026-04-24 01:04:02 +00:00
parent ff0711b927
commit 889c38c143
2 changed files with 120 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=Stagger hard drive spin-up to limit PSU current surge
# Runs early in boot, before storage services and VMs start, so drives
# are already spun up and staggered before any heavy I/O begins.
DefaultDependencies=no
After=local-fs-pre.target
Before=local-fs.target sysinit.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/stagger-spinup.sh --linux
RemainAfterExit=yes
StandardOutput=journal
[Install]
WantedBy=sysinit.target