zfs/cmd/zpool/zpool.d
Tony Hutter 358ce2cf28
zed: misc vdev_enc_sysfs_path fixes
There have been rare cases where the VDEV_ENC_SYSFS_PATH value that zed
gets passed is stale.  To mitigate this, dynamically check the sysfs
path at the time of zed event processing, and use the dynamic value if
possible.  Note that there will be other times when we can not
dynamically detect the sysfs path (like if a disk disappears) and have
to rely on the old value for things like turning on the fault LED.  That
is to say, we can't just blindly use the dynamic path in every case.

Also:
	- Add enclosure sysfs entry when running 'zpool add'
	- Fix 'slot' and 'enc' zpool.d scripts for nvme

Reviewed-by: Don Brady <dev.fs.zfs@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15462
2023-11-07 09:09:24 -08:00
..
README
ata_err
cmd_to
defect
dm-deps Add ShellCheck's `--enable=all` inside `cmd/` 2022-01-06 16:07:54 -08:00
enc
encdev
fault_led
health
hours_on
iostat Workaround broken VDEV_UPATH 2022-05-10 10:14:07 -07:00
iostat-1s
iostat-10s
label
locate_led
lsblk Workaround broken VDEV_UPATH 2022-05-10 10:14:07 -07:00
media Add ShellCheck's `--enable=all` inside `cmd/` 2022-01-06 16:07:54 -08:00
model
nonmed
nvme_err Add SMART attributes for SSD and NVMe 2018-02-21 13:52:47 -08:00
off_ucor
pend_sec
pwr_cyc
r_proc
r_ucor
realloc
rep_ucor
serial
ses zed: misc vdev_enc_sysfs_path fixes 2023-11-07 09:09:24 -08:00
size
slot
smart Workaround broken VDEV_UPATH 2022-05-10 10:14:07 -07:00
smart_test Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
smartx
temp
test_ended Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
test_progress Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
test_status Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
test_type Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
upath Add ShellCheck's `--enable=all` inside `cmd/` 2022-01-06 16:07:54 -08:00
vendor
w_proc
w_ucor

README

This directory contains scripts that can be run the zpool status/iostat
-c option:

	zpool status -c script1,script2, ...

	zpool iostat -vc script1,script2, ...

Some scripts output different values depending on the symlink name that is
used to run them.  See the zpool(8) man page for more details.