zfs/lib
Tony Hutter 0bc841fb59 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
2024-02-13 14:22:48 -08:00
..
libavl Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libefi Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libicp Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libnvpair Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libshare libshare: nfs: pass through ipv6 addresses in bracket notation 2023-12-22 13:20:31 -08:00
libspl linux: libspl: zone: () -> (void) 2022-12-01 12:39:44 -08:00
libtpool Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libunicode Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libuutil Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libzfs zpool: Add slot power control, print power status 2024-02-13 14:22:48 -08:00
libzfs_core Add the ability to uninitialize 2023-05-26 10:09:04 -07:00
libzfsbootenv Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libzpool set_global_var() should not pass NULL pointers to dlclose() 2022-12-01 12:39:42 -08:00
libzstd Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libzutil zpool: Add slot power control, print power status 2024-02-13 14:22:48 -08:00
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00