Dear all Is there a way to stop a running scrub on a zfs pool? Same question applies to a running resilver. Both render our fileserver unusable due to massive CPU load so we''d like to postpone them. In the docs it says that resilvering and scrubbing survive a reboot, so I am not even sure if a reboot would stop scrubbing or resilvering. Any help greatly appreciated! Cheers, Thomas This message posted from opensolaris.org
Peter Dennis - Solaris Sustaining Engineering
2007-Mar-05 09:53 UTC
[zfs-discuss] How to interrupt a zpool scrub?
Hi Thomas, The man page for zpool has: zpool scrub [-s] pool ... Begins a scrub. The scrub examines all data in the specified pools to verify that it checksums correctly. For replicated (mirror or raidz) devices, ZFS automati- cally repairs any damage discovered during the scrub. The "zpool status" command reports the progress of the scrub and summarizes the results of the scrub upon com- pletion. .... Because scrubbing and resilvering are I/O-intensive operations, ZFS only allows one at a time. If a scrub is already in progress, the "zpool scrub" command ter- minates it and starts a new scrub. If a resilver is in progress, ZFS does not allow a scrub to be started until the resilver completes. -s Stop scrubbing. When run the status of the pool has: scrub: scrub stopped with 0 errors on Mon Mar 5 09:51:52 2007 as opposed to: scrub: scrub completed with 0 errors on Mon Mar 5 09:51:16 2007 Hope that helps, pete Thomas Werschlein wrote:> Dear all > > Is there a way to stop a running scrub on a zfs pool? Same question applies to a running resilver. > Both render our fileserver unusable due to massive CPU load so we''d like to postpone them. > > In the docs it says that resilvering and scrubbing survive a reboot, so I am not even sure if a reboot would stop scrubbing or resilvering. > > Any help greatly appreciated! > > Cheers, Thomas > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
How embarrassing is that? Pete kindly pointed me to the man page where it clearly states that I should use "zpool scrub [-s] pool". -s for "Stop scrubbing". Sorry folks, I just looked in the Administration guide where I couldn''t find it. But I am sure it''s in there, too. This message posted from opensolaris.org
Wade.Stuart at fallon.com
2007-Mar-05 16:16 UTC
[zfs-discuss] Re: How to interrupt a zpool scrub?
zfs-discuss-bounces at opensolaris.org wrote on 03/05/2007 04:18:44 AM:> How embarrassing is that? Pete kindly pointed me to the man page > where it clearly states that I should use "zpool scrub [-s] pool". - > s for "Stop scrubbing". Sorry folks, I just looked in the > Administration guide where I couldn''t find it. But I am sure it''s in > there, too.Don''t feel too bad I missed it too... Robert Milkowski thankfully directed me to the man page. =/> > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss