* fast_commit option not recognized/supported by e2fsck?
@ 2022-05-16 9:30 Lakshmipathi.G
2022-05-16 14:57 ` Theodore Ts'o
0 siblings, 1 reply; 3+ messages in thread
From: Lakshmipathi.G @ 2022-05-16 9:30 UTC (permalink / raw)
To: linux-ext4
Hi,
Seems like I can't use the new fast_commit option.
Steps:
$ apt-get install gcc make bison -y && wget
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/snapshot/e2fsprogs-1.46.4.tar.gz
tar -xvf e2fsprogs-1.46.4.tar.gz && cd e2fsprogs-1.46.4 && ./configure
&& make -j2 && sudo make install
$ sudo tune2fs -O fast_commit /dev/nvme0n1p2
# and verified flags with
$ sudo tune2fs -l /dev/nvme0n1p2 | grep fast_commit
Filesystem features: has_journal ext_attr resize_inode dir_index
fast_commit filetype needs_recovery extent 64bit flex_bg sparse_super
large_file huge_file dir_nlink extra_isize metadata_csum
$ e2fsck -V
e2fsck 1.46.4 (18-Aug-2021)
Using EXT2FS Library version 1.46.4, 18-Aug-2021
$ uname -a
Linux db 5.13.0-1022-aws #24~20.04.1-Ubuntu SMP Thu Apr 7 22:14:11 UTC
2022 aarch64 aarch64 aarch64 GNU/Linux
Now I did a reboot and the system hangs. It shows the following error
message. Any thoughts on what's going wrong here? thanks!
```
Begin: Will now check root file system ... fsck from util-linux 2.34
[/usr/sbin/fsck.ext4 (1) -- /dev/nvme0n1p2] fsck.ext4 -a -C0 /dev/nvme0n1p2
/dev/nvme0n1p2 has unsupported feature(s): fast_commit
e2fsck: Get a newer version of e2fsck!
/dev/nvme0n1p2: ********** WARNING: Filesystem still has errors **********
fsck exited with status code 12
done.
Failure: File system check of the root filesystem failed
The root filesystem on /dev/nvme0n1p2 requires a manual fsck
```
----
Cheers,
Lakshmipathi.G
http://www.giis.co.in https://www.webminal.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fast_commit option not recognized/supported by e2fsck?
2022-05-16 9:30 fast_commit option not recognized/supported by e2fsck? Lakshmipathi.G
@ 2022-05-16 14:57 ` Theodore Ts'o
[not found] ` <CAKuJGC__aRPGK2a8e5VK=aDzN92PbJoC3z=AM6x=vJ-g7vd5sA@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Theodore Ts'o @ 2022-05-16 14:57 UTC (permalink / raw)
To: Lakshmipathi.G; +Cc: linux-ext4
On Mon, May 16, 2022 at 03:00:14PM +0530, Lakshmipathi.G wrote:
> e2fsck 1.46.4 (18-Aug-2021)
> Using EXT2FS Library version 1.46.4, 18-Aug-2021
> $ uname -a
> Linux db 5.13.0-1022-aws #24~20.04.1-Ubuntu SMP Thu Apr 7 22:14:11 UTC
> 2022 aarch64 aarch64 aarch64 GNU/Linux
>
> Now I did a reboot and the system hangs. It shows the following error
> message. Any thoughts on what's going wrong here? thanks!
>
> ```
> Begin: Will now check root file system ... fsck from util-linux 2.34
> [/usr/sbin/fsck.ext4 (1) -- /dev/nvme0n1p2] fsck.ext4 -a -C0 /dev/nvme0n1p2
> /dev/nvme0n1p2 has unsupported feature(s): fast_commit
> e2fsck: Get a newer version of e2fsck!
E2fsck 1.46.4 supports fast commit. I'm guessing what's going on is
that the version of e2fsck in the initial ramdisk is pre-1.46 and so
it didn't support fast commit --- and the root file system is checked
before it is mounted using scripts and binaries in the initrd.
After installing e2fsprogs, you need to update / recreate the
initramfs. How to do this is distro-dependent, but since you are
using Ubuntu, try this:
sudo update-initramfs -u -k all
See the man page for update-initramfs and mkinitramfs for more
information.
Cheers,
- Ted
P.S. fast commit is a relatively new feature, and we are still fixing
bugs in fast commit. So please be careful before using it in a
production system, especially if it is mission- or life- critical. If
you really want to use it, you may want to be using newer kernels than
5.13.0, such as 5.15 LTS.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-16 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16 9:30 fast_commit option not recognized/supported by e2fsck? Lakshmipathi.G
2022-05-16 14:57 ` Theodore Ts'o
[not found] ` <CAKuJGC__aRPGK2a8e5VK=aDzN92PbJoC3z=AM6x=vJ-g7vd5sA@mail.gmail.com>
2022-05-16 16:20 ` Lakshmipathi.G
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox