Thread (10 messages) 10 messages, 4 authors, 2016-05-15

Re: scrub backing device

From: ching <hidden>
Date: 2016-05-11 23:34:33

for example https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub

On May 12, 2016 3:13:22 AM GMT+08:00, Eric Wheeler [off-list ref] wrote:
On Wed, 11 May 2016, ching lu wrote:
quoted
The read cache prevent the program to scrub the backing device
directly.
quoted
if a few bits flipped in the backing device, the cache may still
return healthy data for a while.

Must i remove cache device before scrubbing?
What do you mean by scrub?

--
Eric Wheeler
quoted

On Wed, May 11, 2016 at 9:15 AM, Eric Wheeler
[off-list ref] wrote:
quoted
quoted
On Fri, 29 Apr 2016, ching lu wrote:
quoted
Hello,

i want to develop a script to perform data scrubbing periodically.
I think you want to set dirty_percent to 0 and
cache_mode=writethrough.
quoted
quoted
Then wait a long time for dirty_percent to actually reach 0.

--
Eric Wheeler

quoted
For my use case, i think it is meaningless to scrub cached data.

If i change the cache mode to "none", will it turn off the read
cache too?
quoted
quoted
quoted
Furthermore, will this invalidate cached data? (i do not want to
"warm
quoted
quoted
quoted
up" the cache again after the scrubbing)

Thanks in advance,
c
--
To unsubscribe from this list: send the line "unsubscribe
linux-bcache" in
quoted
quoted
quoted
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe
linux-bcache" in
quoted
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help