New: Failed to initialize F2FS segment manager (-117)
https://bugzilla.kernel.org/show_bug.cgi?id=206551
Bug ID: 206551
Summary: Failed to initialize F2FS segment manager (-117)
Product: File System
Version: 2.5
Kernel Version: 5.5.3-gentoo
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: f2fs
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Created attachment 287423
--> https://bugzilla.kernel.org/attachment.cgi?id=287423&action=edit
Linux boot, root fs can't be mounted.
I am aware this bug report is done on a non-vanilla Gentoo based kernel, but since I have seen it now twice in two days on two different kernel versions 5.4.13-gentoo and 5.5.3-gentoo I would like to document it upstream as well. Not excluding a hardware failure.
I am running Linux on a Lenovo E485 machine having a AMD Ryzen 5 2500U processor, which is quite problematic to resume after a memory suspend. Therefore I use hibernation to a swap partition which most of the time allows me to resume what I was working on. The disk is a Samsung SSD 840 EVO 500GB, EXT0CB6Q. It wasn't used for quite a while but is now in use for about two months without issues.
The day before yesterday I again hibernated my machine which kernel paniced after resuming, the screen was still black, so I wouldn't have any information on the topic. After restarting, my problems with F2FS, the filesystem for my root partition, started.
I was able to boot using an Arch Linux ISO, and ran the F2FS-tools. fsck.f2fs was unable to succeed when I requested to write "missing" files in ./lostfound. Only when answering "No" the partition was repaired and could be mounted. I remember that one of the causes flags was something like "Sudden loss of power".
Today I have completely shutdown my machine using "poweroff". When I switched the machine back on I had a similar experience as two days ago, my root partition would mound with the same segment manager error. I again ran the fsck.f2fs, this time not being prompted for missing files. Neither did it mention anything similar like loss of power.
I wonder if the partition is fixed using the fsck.f2fs tool, considering the output. If not, is this a gap in the implementation? Should this partition be completely be copied, and then restored on a new f2fs partition? Or is it expected that the file structure is "OK" after running the tool, and the fact that two days in a row this happened was a coincidence?
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
[f2fs-dev] [Bug 206551] Failed to initialize F2FS segment manager (-117)
https://bugzilla.kernel.org/show_bug.cgi?id=206551
--- Comment #1 from Stefan de Konink ([email protected]) --- Created attachment 287425
--> https://bugzilla.kernel.org/attachment.cgi?id=287425&action=edit
fsck.f2fs result specifically showing SIT bitmap is 0x0.
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
[f2fs-dev] [Bug 206551] Failed to initialize F2FS segment manager (-117)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=206551
Chao Yu ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |[email protected]--- Comment #2 from Chao Yu ([email protected]) ---
Both kernel log“Mismatch valid blocks” and fsck log "SIT bitmap is 0" says SIT table may be inconsistent in your image.
I noticed that you're using a swap partition, may I ask where did you build the swap partition? in your f2fs image? What's your swap option?
Quoted: "I use hibernation to a swap partition"
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
[f2fs-dev] [Bug 206551] Failed to initialize F2FS segment manager (-117)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=206551
--- Comment #3 from Stefan de Konink ([email protected]) --- My swap partition is at /dev/sda3, as independent of f2fs.
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
[f2fs-dev] [Bug 206551] Failed to initialize F2FS segment manager (-117)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=206551
--- Comment #4 from Chao Yu ([email protected]) ---
What's your mkfs option and mount option?
Can you upload kernel message? maybe we can find clue from it.
Thanks,
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
[f2fs-dev] [Bug 206551] Failed to initialize F2FS segment manager (-117)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=206551
--- Comment #5 from Stefan de Konink ([email protected]) ---
[ 1.404552] F2FS-fs (sda4): Found nat_bits in checkpoint [ 1.638356] F2FS-fs (sda4): Mounted with checkpoint version = 68992090
I don't have the dmesg of the 'recovery' attempts.
/dev/sda4 on / type f2fs (rw,noatime,lazytime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,fsync_mode=posix)
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
[f2fs-dev] [Bug 206551] Failed to initialize F2FS segment manager (-117)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=206551
--- Comment #6 from Chao Yu ([email protected]) ---
IIRC, in knew bugs, except swap file feature, large_nat_bitmap feature can also damage f2fs metadata (SIT table) (they are all fixed in mainline), did you enable this feature during mkfs/resize?
Can you try fsck.f2fs -d 3 /dev/sda4 to catch the full fsck log?
Signature · 7 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel