diff options
author | Tony Hutter <hutter2@llnl.gov> | 2023-12-21 10:53:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 10:53:16 -0800 |
commit | a9520e6e5961d9fc58d71b97652773d0f5fee1ff (patch) | |
tree | 05592b2a5e896114942dda1f6e7770cd9fc1405c /lib/libzfs/libzfs_impl.h | |
parent | 6930ecbb75e17f6d6cc7686211d4f3b34852795b (diff) |
zpool: Add slot power control, print power status
Add `zpool` flags to control the slot power to drives. This assumes
your SAS or NVMe enclosure supports slot power control via sysfs.
The new `--power` flag is added to `zpool offline|online|clear`:
zpool offline --power <pool> <device> Turn off device slot power
zpool online --power <pool> <device> Turn on device slot power
zpool clear --power <pool> [device] Turn on device slot power
If the ZPOOL_AUTO_POWER_ON_SLOT env var is set, then the '--power'
option is automatically implied for `zpool online` and `zpool clear`
and does not need to be passed.
zpool status also gets a --power option to print the slot power status.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mart Frauenlob <AllKind@fastest.cc>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15662
Diffstat (limited to 'lib/libzfs/libzfs_impl.h')
0 files changed, 0 insertions, 0 deletions