encled(8)
π encled β the manual page, but make it cute
okay so bestie, welcome to encled (section 8, sysadmin girlies rise) β the little tool that controls SCSI Enclosure indicators, aka the SES LEDs. Yes, the blinky lights. We're doing hardware today and it's gonna slay π
β¨ SYNOPSIS β¨
encled [--help] [enslosure/slot|disk name|ALL] [locate|fault|off]
that's the whole vibe. three-ish pieces, no cap π
π DESCRIPTION π
so encled peeks into sysfs and reads the tea that ses.ko dropped there, and uses it to enumerate + control enclosure indication for your disks. literally that's it, that's the job π¦
and what even is SES? it's SCSI Enclosure Services β a specialized protocol that runs between the enclosure (that's the backplane, bestie) and the HBA (that's your controller). it's the thing that lets you enable/disable indication on the hot-swap slots where your disks live. iconic behaviour honestly β¨
π¦ INDICATION TYPES π¦
there are exactly two types of indication, and they're giving main character energy:
faultβ the "something is wrong" light πΈlocateβ the "find me" light, for when you're standing in a cold aisle like ποΈπποΈ
there's a third indication (activity) but heads up β it's unavailable for control from the host. not yours to touch, sorry babe π
β οΈ important: if one indicator is enabled, the other is automatically disabled. they do not coexist. it's one or the other, periodt.
the keywords you actually type are: fault, locate and off π₯
π ENUMERATION π
enclosure enumeration is based on /sys/class/enclosure, and the slot number gets reconstructed from the Slot name of the enclosure. usually it looks something like this:
6:0:23:0/14
where 6:0:23:0 is the enclosure address, and /14 is the 14th slot. simple, right? π
π«Ά lowkey a warning, bestie: enumeration inencledmay differ fromsas2ircuor from the labels physically printed on the actual backplane. don't rely on the slot numbers! fr fr, go check, do not trust the vibe π
πΎ DISK NAME πΎ
two ways to point encled at a disk, pick your fighter:
- by drive name β like
/dev/sdaz - by slot number β like
6:0:24:0/20
and there's a special reserved word, all, for controlling all indication at once. the command encled all off clears all indication. boom, everything off, go home π
π EXAMPLES π
okay here's the group chat of examples, all of them, no skips β¨
fault indication on /dev/sda:
encled /dev/sda fault
locate indication on /dev/sdfa:
encled /dev/sdfa locate
clear indication on /dev/sdz:
encled /dev/sdz off
just view the status of /dev/sdg:
encled /dev/sdg
fault indication for Slot 1 in enclosure 3:0:23:0:
encled 3:0:23:0/1 fault
locate indication for Slot 2 in enclosure 3:0:23:0:
encled 3:0:23:0/2 locate
clear indication for Slot 3 in enclosure 3:0:23:0:
encled 3:0:23:0/3 off
view status of Slot 4 in enclosure 3:0:23:0:
encled 3:0:23:0/4
fault indication for every slot in every enclosure:
encled all fault
view status of all slots in all enclosures:
encled
and here's what that output looks like, aren't you obsessed π
ENCLOSURE/SLOT DEV FAULT_LED LOCATION_LED
----------------------------------------------------
6:0:23:0/1 sdd fault_off locate_off
6:0:23:0/2 sde fault_off locate_off
6:0:23:0/3 sdf fault_off LOCATE_ON
6:0:23:0/4 sdg FAULT_ON locate_off
π NOTES π
encledsupports only enclosure based devices (SAS/SATA). that's the assignment.- Desktop SATA controllers (AHCI) and direct-attach disks in SCSI are not supported. not invited to the party π
- fun fact for the lore girlies: the older name for
encledwassdledπ¦
βοΈ AUTHOR βοΈ
written by George Shuklin β respect the architect π
π REPORTING BUGS π
found a bug? report it to https://github.com/amarao/sdled β the devs wanna know, bestie, don't suffer in silence π
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2012-2015 George Shuklin
this software is distributed under the GPL version 2 or 3. and there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so if it breaks, it breaks, and that's the legal tea β no cap.
okay that's the whole page, you're basically a storage engineer now π β¨ and for the record this is encled-0.1, dated Jun 2015 β retro but still slaying. bye bestie, go blink some LEDs π«ΆπΈ
π¦ where this page comes from
- nixos 26.05: encled 0-unstable-2022-07-23
- nixpkgs unstable: encled 0-unstable-2022-07-23
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms