Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 `-0|-1` flags are added to `zpool offline|online|clear`: zpool offline -0 <pool> <device> Turn off device slot power zpool online -1 <pool> <device> Turn on device slot power zpool clear -1 <pool> [device] Turn on device slot power If the ZPOOL_AUTO_POWER_ON_SLOT env var is set, then the '-1' is automatically implied for `zpool online` and `zpool clear` and does not need to be passed. `zpool status` also gets a `-1` option to print the slot power status. Signed-off-by: Tony Hutter <hutter2@llnl.gov>
- Loading branch information