[Bug 271835] seeing inode issues/ file corruption in freeBSD13 on long run
Date: Mon, 05 Jun 2023 09:17:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271835 Bug ID: 271835 Summary: seeing inode issues/ file corruption in freeBSD13 on long run Product: Base System Version: 13.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: meetshamsher@gmail.com Hi, Looks like file inode is getting corrupted on writing multiple times on one of the files. Initially writing in same folder (incoming) as outbox is working fine but in long run (~20-30days) observing file corruption issues for same folder/file. Note : for this we are using haystack with luecene database, which uses this folder. Post reboot it runs fsck and then it becomes fine. 3727 Jun 2 13:15:19 sma1 kernel: ** Processing journal entries. 3728 Jun 2 13:15:19 sma1 kernel: /dev/da0p9: ino 2620925 nlink manipulation error, new 18446744073709551600, old 0 3729 Jun 2 13:15:19 sma1 kernel: /dev/da0p9: UNEXPECTED SU+J INCONSISTENCY 3730 Jun 2 13:15:19 sma1 kernel: /dev/da0p9: INTERNAL ERROR: GOT TO reply() 3731 Jun 2 13:15:19 sma1 kernel: /dev/da0p9: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY. 3732 Jun 2 13:15:19 sma1 kernel: ** /dev/da0p9 3733 Jun 2 13:15:19 sma1 kernel: ** SU+J Recovering /dev/da0p9 OR Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: DIR I=885977 CONNECTED. PARENT WAS I=2266482 Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: DIR I=359730 CONNECTED. PARENT WAS I=2266482 Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: UNREF DIR I=351356 OWNER=root MODE=40755 Jun 3 05:36:21 sma1 kernel: SIZE=512 MTIME=May 25 08:48 2023 Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: RECONNECT? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: DIR I=351356 CONNECTED. PARENT WAS I=2266482 Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: UNREF DIR I=349918 OWNER=root MODE=40755 Jun 3 05:36:21 sma1 kernel: SIZE=512 MTIME=May 25 08:48 2023 Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: RECONNECT? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: DIR I=349918 CONNECTED. PARENT WAS I=2266482 Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: ** Phase 4 - Check Reference Counts Jun 3 05:36:21 sma1 kernel: LINK COUNT FILE I=350699 OWNER=root MODE=100644 Jun 3 05:36:21 sma1 kernel: SIZE=254 MTIME=Jan 13 11:18 2022 COUNT 16 SHOULD BE 12 Jun 3 05:36:21 sma1 kernel: ADJUST? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: LINK COUNT FILE I=351284 OWNER=root MODE=100644 Jun 3 05:36:21 sma1 kernel: SIZE=1205 MTIME=Jan 13 11:18 2022 COUNT 16 SHOULD BE 12 Jun 3 05:36:21 sma1 kernel: ADJUST? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: LINK COUNT DIR I=2266482 OWNER=root MODE=40755 Jun 3 05:36:21 sma1 kernel: SIZE=512 MTIME=May 25 08:48 2023 COUNT 18 SHOULD BE 2 Jun 3 05:36:21 sma1 kernel: ADJUST? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: ** Phase 5 - Check Cyl groups Jun 3 05:36:21 sma1 kernel: FREE BLK COUNT(S) WRONG IN SUPERBLK Jun 3 05:36:21 sma1 kernel: SALVAGE? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: BLK(S) MISSING IN BIT MAPS Jun 3 05:36:21 sma1 kernel: SALVAGE? yes Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: 209770 files, 591288 used, 3041595 free (0 frags, 3041595 blocks, 0.0% fragmentation) Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: ***** FILE SYSTEM STILL DIRTY ***** Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: ***** FILE SYSTEM WAS MODIFIED ***** Jun 3 05:36:21 sma1 kernel: Jun 3 05:36:21 sma1 kernel: ***** PLEASE RERUN FSCK ***** Jun 3 05:36:21 sma1 kernel: mount: /dev/da0p9: R/W mount of /data denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Operation not permitted Jun 3 05:36:21 sma1 kernel: da0 recovering is not needed Jun 3 05:36:21 sma1 kernel: da0p9 resized # find / -inum 2266482 /data/aggregator/incoming_queue/0/1minute/42145427B09C8E182260-02F017004D1B Is there way to resolve it without rebooting the system? or is there any patch available for this fix in FreeBSD13.0 -- You are receiving this mail because: You are the assignee for the bug.