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
Next revision
Previous revision
projects:homelab:inspur_hotswap_cages [2024/10/16 16:44] – [PHY Mapping] note about phy0-phy11 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 =====
  
   * sasutils   * sasutils
-    * ''sas_discover -vv'' +    * ''sas_discover -vv'' - SAS devices, topology (tree) view 
-    * ''sas_devices [-v...]''+    * ''sas_devices [-v...]'' - SAS devices, list view
   * ''ledctl''   * ''ledctl''
     * OpenZFS' ''zed'' [[https://github.com/openzfs/zfs/blob/master/cmd/zed/zed.d/statechange-led.sh|automatically indicates vdev failures on supported enclosures' drive failure LED(s)]], if failed drives are replaced into other enclosures/bays, the failure LED may get stuck; ''ledctl'' can be used to clear the failure indicator     * OpenZFS' ''zed'' [[https://github.com/openzfs/zfs/blob/master/cmd/zed/zed.d/statechange-led.sh|automatically indicates vdev failures on supported enclosures' drive failure LED(s)]], if failed drives are replaced into other enclosures/bays, the failure LED may get stuck; ''ledctl'' can be used to clear the failure indicator
 +  * udisks2
 +    * ''%%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.1729097064.txt.gz · Last modified: by Andrew Yong