Type: Featuregood first issue
Description
System information
| Type | Version/Name |
|---|---|
| Distribution Name | CentOS Linux |
| Distribution Version | 7 (Core) |
| Linux Kernel | 3.10.0-693.5.2 |
| Architecture | x86_64 |
| ZFS Version | 0.7.5-1 |
| SPL Version | 0.7.5-1 |
Describe the problem you're observing
consider zpool add tank /virtualfs2
this emits an event like:
IFS=
PATH=/usr/bin:/bin:/usr/sbin:/sbin
PWD=/
SHLVL=1
ZDB=/sbin/zdb
ZED=/sbin/zed
ZED_PID=26595
ZED_ZEDLET_DIR=/etc/zfs/zed.d
ZEVENT_CLASS=sysevent.fs.zfs.vdev_add
ZEVENT_EID=215
ZEVENT_POOL=tank
ZEVENT_POOL_CONTEXT=0
ZEVENT_POOL_GUID=0x576058F099B118E7
ZEVENT_POOL_STATE=0
ZEVENT_POOL_STATE_STR=ACTIVE
ZEVENT_SUBCLASS=vdev_add
ZEVENT_TIME=1517416348 27179838
ZEVENT_TIME_NSECS=27179838
ZEVENT_TIME_SECS=1517416348
ZEVENT_TIME_STRING=2018-01-31 11:32:28-0500
ZEVENT_VERSION=0
ZFS=/sbin/zfs
ZFS_ALIAS=zfs-0.7.5-1
ZFS_RELEASE=1
ZFS_VERSION=0.7.5
ZINJECT=/sbin/zinject
ZPOOL=/sbin/zpool
_=/usr/bin/printenv
I would expect this event to contain VDEV related info like ZEVENT_VDEV_PATH.