Site Tools


projects:homelab:inspur_hotswap_cages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
projects:homelab:inspur_hotswap_cages [2024/11/18 11:55] – [Useful Utilities] spindown; add details Andrew Yongprojects:homelab:inspur_hotswap_cages [2026/10/26 02:13] (current) – add spindown commands Andrew Yong
Line 34: Line 34:
  
 phy0-phy11 are mapped to the mini-SAS HD connectors. phy0-phy11 are mapped to the mini-SAS HD connectors.
 +
 ==== LED Control ==== ==== LED Control ====
  
Line 48: Line 49:
   * ''failure'': Red status LED   * ''failure'': Red status LED
   * All other patterns cause LED color(s) to get stuck until valid patterns are used to set and clear stuck LED color(s)   * All other patterns cause LED color(s) to get stuck until valid patterns are used to set and clear stuck LED color(s)
 +
 +==== Spindown on Shutdown ====
 +
 +<code - /etc/udev/rules.d/60-sas-exp-spindown.rules>
 +# Stop (spin down) disks behind a SAS expander at poweroff
 +
 +ACTION=="add|change", SUBSYSTEM=="scsi_disk", DEVPATH=="*/expander-*/*", ATTR{manage_shutdown}="1"
 +</code>
  
 ===== Useful Utilities ===== ===== Useful Utilities =====
Line 58: Line 67:
   * udisks2   * udisks2
     * ''%%find /dev/disk/by-path -name "*sas-exp0x56c92bf*lun-0" -exec sudo udisksctl power-off -b {} ';'%%'' - spindown all disks in all expander backplanes     * ''%%find /dev/disk/by-path -name "*sas-exp0x56c92bf*lun-0" -exec sudo udisksctl power-off -b {} ';'%%'' - spindown all disks in all expander backplanes
 +
 +
projects/homelab/inspur_hotswap_cages.1731930951.txt.gz · Last modified: by Andrew Yong