On Aug 8, 2008, at 10:03 AM, Bhaskar Sarkar wrote:

> I have been trying to trigger automatic disk replacement
> from hot spare pool without success. I attempted two things -
>
> 1. modify vdev_fault_arg, vdev_fault_mask and vdev_fault_mode
>  (VDEV_FAULT_COUNT) Errors (ereport.fs.zfs.io) are  logged, zpool
>   status shows them,  but  nothing else happens.
>
> 2. modify vdev_is_failing, again nothing happened.
>
> Any pointers will be appreciated.

Try using 'zinject':
# zpool create -f d mirror c0t0d0 c0t1d0 spare c7t6d0
# zinject -d c0t0d0 d
# mkfile 20m /d/20m.txt

eric

Reply via email to