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. Regards Bhaskar
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
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.txtWhile we are at zinject... Could you take care of the patch below: http://people.freebsd.org/~pjd/patches/zio_inject.c.patch -- Pawel Jakub Dawidek http://www.wheel.pl pjd at FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20080809/9a778ef4/attachment.bin>
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.patchSorry about that, i''ve filed: 6736002 zinject needs to init/destroy rw inject_lock I''ll get that fixed up right now... eric