public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] BTRFS problem? [WAS Quick check on net-print/hplip-3.14.10]
Date: Sun, 20 Sep 2015 07:25:10 +0200	[thread overview]
Message-ID: <5CFA80E5-AFD6-4815-9FBF-F4138E9053C8@antarean.org> (raw)
In-Reply-To: <201509192124.20345.michaelkintzios@gmail.com>

On 19 September 2015 22:24:19 CEST, Mick <michaelkintzios@gmail.com> wrote:
>On Saturday 19 Sep 2015 21:14:00 Stefan G. Weichinger wrote:
>> Am 2015-09-18 um 23:58 schrieb Mick:
>> >> The main reason for doing a scrub is to detect latent issues, and
>> >> if you have redundancy that means you can auto-correct them
>> >> today, rather than discovering them a month from now when the
>> >> drive containing the only good copy fails.  Even if you don't
>> >> have redundancy maybe you rotate your backups every 30 days and
>> >> detecting the error might mean having the ability to go back and
>> >> restore a good copy of the file before it is completely replaced
>> >> with bad copies.
>> > 
>> > Thank you Rich, I ran 'btrfs scrub start /" and it found zero
>> > problems.  dmesg and syslog clean too.
>> 
>> I wrote (= googled something and adapted it a bit) some
>> btrfs-scrub.service and .timer for doing that once a week (systemd
>> environment):
>> 
>> $ cat btrfs-scrub.service
>> [Unit]
>> Description=Check volume for errors
>> Documentation=man:btrfs-scrub
>> After=fstrim.service
>> 
>> [Service]
>> Type=oneshot
>> ExecStart=/bin/sh -c 'for i in $(grep btrfs /proc/mounts  | cut -d" "
>> -f1 | sort -u | grep dev); do echo scrubbing $i; btrfs scrub start
>-Bd
>> $i; done'
>> IOSchedulingClass=idle
>> CPUSchedulingPolicy=idle
>> 
>> $ cat btrfs-scrub.timer
>> [Unit]
>> Description=Check volume for errors once a week
>> Documentation=man:btrfs-scrub
>> 
>> [Timer]
>> OnCalendar=weekly
>> AccuracySec=1h
>> Persistent=true
>> 
>> [Install]
>> WantedBy=timers.target
>
>Thank you Stefan, I will probably look into doing the same for openrc.

Crontab (or one of its alternatives) would be your friend here. :)

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


  reply	other threads:[~2015-09-20  5:25 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-16 21:22 [gentoo-user] Quick check on net-print/hplip-3.14.10 Mick
2015-09-16 22:43 ` Dale
2015-09-17  5:52   ` Mick
2015-09-17  7:12     ` Dale
2015-09-17 17:36       ` Mick
2015-09-17 19:25         ` Alan McKinnon
2015-09-17 22:26           ` Mick
2015-09-17 22:33             ` Alan McKinnon
2015-09-18  9:31               ` Mick
2015-09-18 16:16                 ` Marc Joliet
2015-09-18 17:56                   ` [gentoo-user] BTRFS problem? [WAS Quick check on net-print/hplip-3.14.10] Mick
2015-09-18 18:15                     ` Rich Freeman
2015-09-18 18:19                       ` Mick
2015-09-18 18:30                         ` Rich Freeman
2015-09-18 21:58                           ` Mick
2015-09-19 20:14                             ` Stefan G. Weichinger
2015-09-19 20:24                               ` Mick
2015-09-20  5:25                                 ` J. Roeleveld [this message]
2015-09-17  0:45 ` [gentoo-user] Re: Quick check on net-print/hplip-3.14.10 walt
2015-09-17  6:03   ` Mick
2015-09-17  1:11 ` [gentoo-user] " wabenbau
2015-09-17  6:06   ` Mick
2015-09-17 20:28     ` [gentoo-user] " james

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5CFA80E5-AFD6-4815-9FBF-F4138E9053C8@antarean.org \
    --to=joost@antarean.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox