From owner-freebsd-current@freebsd.org Mon Jan 8 16:12:18 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1831E74D97 for ; Mon, 8 Jan 2018 16:12:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9351C829F3 for ; Mon, 8 Jan 2018 16:12:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x230.google.com with SMTP id i143so14724404ioa.3 for ; Mon, 08 Jan 2018 08:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=HSy7AChZvMPLJNWiVt+RhtFqESchy2CizKU+LaXuTts=; b=pdTTsI7+m3wEyRxfAk4BrSTsMXvbDQLM8u0ge1na0+sEcPj0tMv81s+DJH0GqY+Rlw U+B6U051PSvH0KwjStMY9+0rtnvzBSdcZsz1OBubzEDDbJBMBNgET2ZlgnpziAqfP34L bIEO4dbfFF1dFe5UxWXxXM5xuG2qBAW0vcvOR2rj+5umZRnut1xh9VyruEtEuDfF++Cb j9C24gYHV/uJ3C66kyzTPviHDIYO0pEYzRAaJtNOUzs+Mh3F0rrs2jI+b9Zg43vFI+H5 8ersNwYABpI5Pcsrds63Z/6tPQHjPHURCAxBzT7d3Dsqe7zLZlKmvprXr7f+mqGs/VcV I8JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=HSy7AChZvMPLJNWiVt+RhtFqESchy2CizKU+LaXuTts=; b=VUY2IfIycGOY1MhZorO+Cw56aKogw8KMKXv2ZSDwjW64L76BQVAc5VyPHzrWP8YOll +hXKegKhXtH6IDtQOgsZBcFfccDaQkPoPsrIIa7z5w+q1eSfLfOMXFONpgk90zyxTsmB YLI+oNliK6Qf8yZ+KsF03Irdb0kVuXpngCNj78RSg75DaLX+np/sBqw3KGSwrm6iLLkf Ie7olWmEHUM0754liiPw89lOS3Ff6qrNAjqNpL3cqZ4G/ZBHSxm0Tg6HDtxzdAuujYvP JMAic8o2+9vkaNVhP5ltkPtAJxGYmb+aDwrtybud8F+Mr2Cz1qdHxlh7MI62r0p+94Ip ziMQ== X-Gm-Message-State: AKwxytd5QxXq7I/ML6EBOwKrzwaNhNam4OI0QwoMpOX3ja9FMv8fkxOV LCjXBwPQogTaeM+EYNG+tLZxAV+oL9OrhYAa/3ZhUw== X-Google-Smtp-Source: ACJfBosUNP7Acgsyy7khNF7BGkPCgLbGf9TP9J2M2OSx0i6WEcC6PvzORVk2ywYT/7N3mvwBwFFHV8RaWiG2lbYbpPs= X-Received: by 10.36.91.210 with SMTP id g201mr8749400itb.50.1515427937771; Mon, 08 Jan 2018 08:12:17 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.160.217 with HTTP; Mon, 8 Jan 2018 08:12:16 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:a84a:1e5c:a3af:9943] Received: by 10.79.160.217 with HTTP; Mon, 8 Jan 2018 08:12:16 -0800 (PST) In-Reply-To: <20180108153356.GA2412@raichu> References: <20171231004137.4f9ad496@thor.intern.walstatt.dynvpn.de> <23651B78-E31C-4BDD-BCA3-408B8F907884@freebsd.org> <20180108153356.GA2412@raichu> From: Warner Losh Date: Mon, 8 Jan 2018 09:12:16 -0700 X-Google-Sender-Auth: wekoV_blZXkB73xBxiT2sPzAhsg Message-ID: Subject: Re: r327359: cylinder checksum failed: cg0, cgp: 0x4515d2a3 != bp: 0xd9fba319 Dec 30 23:29:24 <0.2> To: Mark Johnston Cc: Michael Tuexen , "O. Hartmann" , FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 16:12:18 -0000 On Jan 8, 2018 8:34 AM, "Mark Johnston" wrote: On Thu, Jan 04, 2018 at 09:10:37AM +0100, Michael Tuexen wrote: > > On 31. Dec 2017, at 02:45, Warner Losh wrote: > > > > On Sat, Dec 30, 2017 at 4:41 PM, O. Hartmann wrote: > > > >> On most recent CURRENT I face the error shwon below on /tmp filesystem > >> (UFS2) residing > >> on a Samsung 850 Pro SSD: > >> > >> UFS /dev/gpt/tmp (/tmp) cylinder checksum failed: cg 0, cgp: 0x4515d2a3 != > >> bp: 0xd9fba319 > >> handle_workitem_freefile: got error 5 while accessing filesystem > >> UFS /dev/gpt/tmp (/tmp) cylinder checksum failed: cg 0, cgp: 0x4515d2a3 > >> != bp: 0xd9fba319 > >> handle_workitem_freefile: got error 5 while accessing filesystem > >> UFS /dev/gpt/tmp (/tmp) cylinder checksum failed: cg 0, cgp: 0x4515d2a3 > >> != bp: 0xd9fba319 > >> handle_workitem_freefile: got error 5 while accessing filesystem > >> UFS /dev/gpt/tmp (/tmp) cylinder checksum failed: cg 0, cgp: 0x4515d2a3 > >> != bp: 0xd9fba319 > >> handle_workitem_freefile: got error 5 while accessing filesystem > >> UFS /dev/gpt/tmp (/tmp) cylinder checksum failed: cg 0, cgp: 0x4515d2a3 > >> != bp: 0xd9fba319 > >> handle_workitem_freefile: got error 5 while accessing filesystem > >> > >> I've already formatted the /tmp filesystem, but obviously without any > >> success. > >> > >> Since I face such strange errors also on NanoBSD images dd'ed to SD cards, > >> I guess there > >> is something fishy ... > > > > > > It indicates a problem. We've seen these 'corruptions' on data in motion at > > work, but I hacked fsck to report checksum mismatches (it silently corrects > > them today) and we've not seen any mismatch when we unmount and fsck the > > filesystem. > Not sure this helps: But we have seen this also after system panics > when having soft update journaling enabled. Having soft update journaling > disabled, we do not observed this after several panics. > Just to be clear: The panics are not related to this issue, > but to other network development we do. I saw the same issue this morning on a mirrored root filesystem after my workstation came up following a power failure. fsck recovered using the journal, and I subsequently saw a number of these checksum failures. Upon shutdown, I saw the same handle_workitem_freefile errors as above. I then ran a full fsck from single-user mode, which didn't turn up any inconsistencies, and after that the checksum failure errors disappeared, presumably because fsck fixed them. Yes. Fsck automatically fixes issues like that. It does it silently. I have patched to make it noisy, and the dozen cases I saw the errors, fsck was silent with my whiny patches. I can put them up for review if people want... Warner