From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 44AD61384AE for ; Sat, 19 Sep 2015 20:24:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F9D121C026; Sat, 19 Sep 2015 20:24:29 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B33BE088D for ; Sat, 19 Sep 2015 20:24:28 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so100840912wic.1 for ; Sat, 19 Sep 2015 13:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=duj8nM0PGU04N/tT96WqnkPsRJJB+EkulHXvoLkxFGw=; b=E9K4g/4Po0KL8MZdtsFgsWtIknlvLRBwrwsMQZvTkSKunacyyvEAoYzd3OZlSbQ0p8 oKEyhQFrQkwN70W2tXj/FTcOFHS+3ZwEqVu/E4AWIKplgJ2FEC2MWCyksFn4Dh1zGLGq iBRaviZe2tHSD0JGrcS1A3I2lx87LR2WY9kEjsYsqT37JvtNPPgy0iANELYWg7XzBzOL Ndj3vS0XRz3E43zUYGeu8rgUvlmZWwphxU0l2yLypylthUWlJYXvj9Ava/7I+dTdYt0J CeNRYPDzm3JB4vqLPdmcUCXYhjKwlylYplDC+IZfZ7/++E++N0QF8cmDLRBPdoQbxxqz Setg== X-Received: by 10.180.21.137 with SMTP id v9mr4770196wie.8.1442694267204; Sat, 19 Sep 2015 13:24:27 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id x10sm4904860wiy.6.2015.09.19.13.24.23 for (version=TLS1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 19 Sep 2015 13:24:26 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] BTRFS problem? [WAS Quick check on net-print/hplip-3.14.10] Date: Sat, 19 Sep 2015 21:24:19 +0100 User-Agent: KMail/1.13.7 (Linux/4.0.5-gentoo; KDE/4.14.8; x86_64; ; ) References: <201509162222.40567.michaelkintzios@gmail.com> <201509182258.28664.michaelkintzios@gmail.com> <55FDC208.3040003@xunil.at> In-Reply-To: <55FDC208.3040003@xunil.at> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2186222.YEa9dMkm1y"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201509192124.20345.michaelkintzios@gmail.com> X-Archives-Salt: 2bee1d2f-d790-4981-8215-b73fe7c7a341 X-Archives-Hash: 42f722750f0f8aa5162b779d12523e0c --nextPart2186222.YEa9dMkm1y Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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. > >=20 > > Thank you Rich, I ran 'btrfs scrub start /" and it found zero > > problems. dmesg and syslog clean too. >=20 > I wrote (=3D googled something and adapted it a bit) some > btrfs-scrub.service and .timer for doing that once a week (systemd > environment): >=20 > $ cat btrfs-scrub.service > [Unit] > Description=3DCheck volume for errors > Documentation=3Dman:btrfs-scrub > After=3Dfstrim.service >=20 > [Service] > Type=3Doneshot > ExecStart=3D/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=3Didle > CPUSchedulingPolicy=3Didle >=20 > $ cat btrfs-scrub.timer > [Unit] > Description=3DCheck volume for errors once a week > Documentation=3Dman:btrfs-scrub >=20 > [Timer] > OnCalendar=3Dweekly > AccuracySec=3D1h > Persistent=3Dtrue >=20 > [Install] > WantedBy=3Dtimers.target Thank you Stefan, I will probably look into doing the same for openrc. =2D-=20 Regards, Mick --nextPart2186222.YEa9dMkm1y Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJV/cR0AAoJELAdA+zwE4YeEIUIAKIj9Cv880KkiwFsGUCm2xZW bDHhlvSYqJ2XqtRw9N/OBK9bQeUqRrD292XkeoxzPCBkYffo/ALpiLwXsbm/rQwM CKyul8KWpxIgh+oVHA7vmICvOjIZwJA9riaMfdsS40YnW2K/8KP15MHsCHkvDang 6OOKKvYIOE3/lRG6fpYgIG5vtYDvageIYx4DwId0EErZOKsIsvbyYmwrmECiVbN5 pg7B74x5TGsTdCA4CGRuGmQW2kgelgkjiOIDs7l7rR3jGAQI82H1u7DfEqkeYZkT bmP8p88Pzr1srg0QNfzF+Ts6I2TW8B5ipltikiJnERoX1kRvl1ru9kn6gPCdpKA= =mQwI -----END PGP SIGNATURE----- --nextPart2186222.YEa9dMkm1y--