Re: scrub "correcting" tons of errors ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 29, 2013 at 02:06:39PM +0100, Harald Glatt wrote:
> On that note, is btrfs doing automatic background scrubs of its own or
> do I have to use crontab to schedule scrubs?

   If you want a full-disk scrub, you'll need to schedule it yourself
with cron (I run mine once a month). However, if a problem is detected
during normal operation -- e.g. you read a piece of data and it's got
bad checksums -- then the FS will fix it if it can, in the same way
that it would with a scrub.

   Hugo.

> Thanks!
> 
> On Fri, Mar 29, 2013 at 1:58 PM, Josef Bacik <jbacik@xxxxxxxxxxxx> wrote:
> > On Fri, Mar 29, 2013 at 03:50:15AM -0600, Swāmi Petaramesh wrote:
> >> Hi there,
> >>
> >> I've started "btrfs scrub start /" on one of my machines (Kernel
> >> 3.8.0-15 Ubuntu AMD64), which typically "behaves well" so I wasn't
> >> suspected any disk issue.
> >>
> >> After having ran for only 165 seconds, "scrub status" shows it pretends
> >> having found and corrected 22926 CSUM errors ??!?!?!?!!???
> >>
> >> This is a rather new HDD, in perfect shape (SMART all OK, never
> >> reallocated a single sector, less than 200 hours total runtime...)
> >>
> >> WTF ?!?
> >>
> >> I've cancelled scrub for now, until I get further understanding of what
> >> can be happening...
> >>
> >
> > So this is probably because of the extent tree corruption you had, it's just
> > cleaning things up and you should be fine once it finishes.  Thanks,
> >
> > Josef

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
      --- Eighth Army Push Bottles Up Germans -- WWII newspaper ---      
                     headline (possibly apocryphal)                      

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux