forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 3
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 <[email protected]>
- Loading branch information
1 parent
687e4d7
commit 5a98c53
Showing
15 changed files
with
770 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.