I have a device that is part of a 4-device btrfs "raid1" setup. I had accidentally jiggled the cable for this device and it started racking up errors (about 90,000). After fixing the cable (and a scrub), all of the errors are fixed (woo!), but the device still shows lots of errors. Is there a way to reset the device error count? I''m on 3.8.2 on openSUSE 12.3 x86_64. -- Jon Software Blacksmith -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
>Is there a way to reset the device> error count? > there is -z, is it not what you are looking for ? ------ # btrfs dev stat --help usage: btrfs device stats [-z] <path>|<device> Show current device IO stats. -z to reset stats afterwards. ---- thanks, Anand -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Apr 1, 2013 at 5:39 PM, anand jain <anand.jain@oracle.com> wrote:> >>Is there a way to reset the device >> error count? >> > > there is -z, is it not what you are looking for ? > > ------ > # btrfs dev stat --help > usage: btrfs device stats [-z] <path>|<device> > > Show current device IO stats. -z to reset stats afterwards.Aargh. Newer btrfs tool than I was using. Using the latest git version, this works great, of course. Thanks! -- Jon Software Blacksmith -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html