Drive Enclosures
Drive Enclosures
A drive enclosure is the physical chassis or JBOD that houses a set of drive bays (slots). Where the Drives page deals with individual drives, this page deals with the enclosure itself — its slot layout, and which drive (if any) sits in each slot. This is mainly useful when you're physically working on the hardware: figuring out which bay to pull a drive from, or which empty bay to rack a new drive into.
Listing enclosures
Using the web interface
Open Inventory > Resources > Drives, then switch to the Enclosures view. Each enclosure is shown with its vendor, model, and a slot-by-slot map of which drives occupy it.
Using the CLI
resources drives enclosures list
This command takes no options — it returns every enclosure StorONE can see, along with its identifier, vendor, model, and the contents of every slot (slot index, slot name, the drive occupying it if any, and the slot's current locate-LED state).
Example
resources drives enclosures list
Locating a slot (LED)
Turning on a slot's locate LED is the enclosure-level equivalent of the drive LED commands in Drives — the difference is you target the enclosure and slot number directly, which also works for an empty slot (for example, to confirm which bay you should rack a brand-new drive into, before it exists as a drive StorONE can reference by ID).
Using the web interface
Open Inventory > Resources > Drives > Enclosures, select the slot, and use the LED On / LED Off row action.
Using the CLI
resources drives enclosures led_on --enclosure=<text> --slot=<numbers>
resources drives enclosures led_off --enclosure=<text> --slot=<numbers>
| Option | Description |
|---|---|
--enclosure=<text> |
The enclosure containing the slot. |
--slot=<numbers> |
The slot number within the enclosure. |
Examples
Light up slot 4 in enclosure enc0 before racking a new drive into it:
resources drives enclosures led_on --enclosure enc0 --slot 4
Turn the locate LED back off once you're done:
resources drives enclosures led_off --enclosure enc0 --slot 4
Next: Self-Encrypting Drives — initializing and erasing SED drives.
See also: Drives