BTRFS scrub

Jorge Fábregas jorge.fabregas at gmail.com
Tue Jan 28 10:42:28 UTC 2014


On 01/27/2014 04:47 PM, Chris Murphy wrote:

> Data and metadata checksums enabled with default mount options. 
> They'd have to be explicitly disabled at mount time to not get them.


Thanks Chris for confirming this.  I wasn't sure about it.


> For scrubs that write corrections to disk, the volume needs to be mounted rw, and then:
> 
> btrfs scrub start /mnt
> 
> For read only scrubs you need -r flag to get useful information 
> of what fixes would be done if they were enabled. This works
> whether the device is mounted ro or rw.
> 
> btrfs scrub start -r /mnt

I didn't know about read-only scrubs.  I guess I'll use that because, at
the moment, I'm just using one single disk and therefore btrfs can't fix
any corrupt block.

Thanks!
Jorge


More information about the users mailing list