Hi Is it recommended to do scrub while the filesystem is mounted . How frequently do we have to do scrub and at what circumstances. Please suggest. Thanks/Regards Mohammed Sadiq -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100809/79c01842/attachment.html>
On Mon, Aug 9, 2010 at 6:33 PM, Mohammed Sadiq <sadiq1425 at gmail.com> wrote:> Hi > > Is it recommended to do scrub while the filesystem is mounted .yes> How > frequently do we have to do scrub and at what circumstances. >some people say weekly, some other monthly, some other, like myself, whenever remember to. Usually done when the load is at its lightest. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Mohammed Sadiq wrote:> Hi > > Is it recommended to do scrub while the filesystem is mounted . How > frequently do we have to do scrub and at what circumstances.You can scrub while the filesystems are mounted - most people do, there''s no reason to unmount for for a scrub. (Scrub is pool level, not filesystem level.) Scrub does noticeably slow the filesystem, so pick a time of low application load or a time when performance isn''t critical. If it overruns into a busy period, you can cancel the scrub. Unfortunately, you can''t pause and resume - there''s an RFE for this, so if you cancel one you can''t restart it from where it got to - it has to restart from the beginning. You should scrub occasionally anyway. That''s your check that data you haven''t accessed in your application isn''t rotting on the disks. You should also do a scrub before you do a planned reduction of the pool redundancy (e.g. if you''re going to detach a mirror side in order to attach a larger disk), most particularly if you are reducing the redundancy to nothing. -- Andrew Gabriel
The ZFS best practices is here: http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide Run zpool scrub on a regular basis to identify data integrity problems. If you have consumer-quality drives, consider a weekly scrubbing schedule. If you have datacenter-quality drives, consider a monthly scrubbing schedule. Thanks, Cindy On 08/09/10 05:33, Mohammed Sadiq wrote:> Hi > > Is it recommended to do scrub while the filesystem is mounted . How > frequently do we have to do scrub and at what circumstances. > > Please suggest. > > Thanks/Regards > Mohammed Sadiq > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss