On Aug 9, 2008, at 1:26 PM, Pawel Jakub Dawidek wrote:

> On Fri, Aug 08, 2008 at 10:22:30AM -0700, eric kustarz wrote:
>>
>> 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
>
> While we are at zinject... Could you take care of the patch below:
>
>       http://people.freebsd.org/~pjd/patches/zio_inject.c.patch


Sorry about that, i've filed:
6736002 zinject needs to init/destroy rw inject_lock

I'll get that fixed up right now...

eric

Reply via email to