From nobody Tue May 18 18:19:48 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2324B55ED44 for ; Tue, 18 May 2021 18:19:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fl46D0K5Cz3tPD for ; Tue, 18 May 2021 18:19:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E7FF824229 for ; Tue, 18 May 2021 18:19:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14IIJlNX022367 for ; Tue, 18 May 2021 18:19:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14IIJlYc022366 for bugs@FreeBSD.org; Tue, 18 May 2021 18:19:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255979] fsck bad inode number 2 (256) to nextinode Date: Tue, 18 May 2021 18:19:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: forums@px.in.ua X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: http://lists.freebsd.org/bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255979 Bug ID: 255979 Summary: fsck bad inode number 2 (256) to nextinode Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: forums@px.in.ua Hi. Yesterday I've noticed that I have a following message in /var/log/messages May 16 13:24:13 bsd-route fsck[1606]: /dev/ufs/pxstore: NO WRITE ACCESS May 16 13:24:13 bsd-route fsck[1606]: /dev/ufs/pxstore: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. May 16 13:24:13 bsd-route fsck[1606]: /dev/ufs/pxstore: CANNOT SET FS_NEEDS= FSCK FLAG Underlying hdd holds a single Jail with torrent client, so I've shut down t= he client, don't remember if I've also shut down the jail itself, then I've unmounted drive with -f switch, and run fsck on it. fsck found a lot of err= ors, like 129516299 DUP I=3D64686337 UNEXPECTED SOFT UPDATE INCONSISTENCY 2661355758115450807 BAD I=3D23756482 UNEXPECTED SOFT UPDATE INCONSISTENCY -8999617908267060188 BAD I=3D23756482 UNEXPECTED SOFT UPDATE INCONSISTENCY CYLINDER GROUP 3944: INTEGRITY CHECK FAILED UNEXPECTED SOFT UPDATE INCONSISTENCY INCORRECT BLOCK COUNT I=3D486994392 (56264 should be 49112) INODE 486994392: FILE SIZE 28746675 BEYOND END OF ALLOCATED FILE, SIZE SHOU= LD BE 25133056 and some others (you can see 512KB of the log here - https://pastebin.com/Xcm1iKCc), but in the end to my surprise fsck exited w= ith the following error: INTERNAL ERROR: dups with softupdates UNEXPECTED SOFT UPDATE INCONSISTENCY ** Phase 1b - Rescan For More DUPS fsck_ufs: bad inode number 2 to nextinode After some search I was lucky to find the following commit https://cgit.freebsd.org/src/commit/?id=3Dbc444e2ec6e6cc9d96d35ab7ce3c02c0d= a952fad Fix fsck_ffs Pass 1b error exit "bad inode number 2 to nextinode". As I'm running 13-RELEASE, I went to https://download.freebsd.org/ftp/snapshots/amd64/13.0-STABLE/, downloaded base.txz file, took fsck* files from it, and put them instead of existing in /sbin, but the only change I've got is the number change from 2 to 256 INTERNAL ERROR: dups with softupdates UNEXPECTED SOFT UPDATE INCONSISTENCY ** Phase 1b - Rescan For More DUPS fsck_ufs: bad inode number 256 to nextinode On fsck re-run I'm getting the same list of the errors, and the check ends = with the same result. I've mounted the disk in r/o mode, and can see the folders structure just f= ine, random files check showed that they are fine, text/images/video renders wit= hout errors. SMART for disk is fine, general status is PASSED, and there are no reallocation events Am I assuming correctly that fix above is incomplete, and fsck should recov= er file system my case too? Any other way to fix it without moving all the data elsewhere, and recreating file system? --=20 You are receiving this mail because: You are the assignee for the bug.=