View previous topic :: View next topic |
Author |
Message |
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1771 Location: PB, Germany
|
Posted: Sat Jan 10, 2015 6:45 pm Post subject: 3.18.0, ext4 journal_checksum not working anymore? |
|
|
Hi,
until last my root partition in fstab was:
Code: | LABEL=root / ext4 noatime,nodiratime,nouser_xattr,barrier,data=writeback,journal_checksum,commit=100 0 1 |
Now the system was not booting anymore because ext4 was not mounted.
It took me some time to get to know, journal_checksum is not working anymore. This is sys-kernel/ck-sources-3.18.0 and sys-fs/e2fsprogs-1.42.12.
Changing fstab it is working again:
Code: | LABEL=root / ext4 noatime,nodiratime,nouser_xattr,barrier,data=writeback,commit=100 0 1 |
Trying to remount: Code: | mount -o remount,journal_checksum / |
Code: | EXT4-fs (sda3): changing journal_checksum during remount not supported |
If this is only the case for remount I tried to set it as default: Code: | $ tune2fs -O metadata_csum /dev/sda3
tune2fs 1.42.12 (29-Aug-2014)
Setting filesystem feature 'metadata_csum' not supported. |
I read this is only supported by some branch of the e2fsprogs. But why was journal checksumming working at all before the last updates? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sun Jan 11, 2015 6:36 am Post subject: |
|
|
I have the same problem. So the next question is: How do you force mounting of root partition (and remounting) with the journal_checksum option in
a) openrc
b) systemd
without patching the init-system and without using an initramdisk?
Currently, neither does the first mount according to fstab (of course, not...). systemd tries to force your fstab option on the remount and thus causes total breakage, while openrc remounts ignoring the fstabn options which is not a perfect solution, either. |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sat Jan 17, 2015 7:02 am Post subject: |
|
|
kernelOfTruth wrote: | does appending flags to the kernel on bootup work? |
Like a charm with both, openrc and systemd
Thanks a lot!
I knew about the rootfstype= kernel option, but did not expect that there is such an option for mount flags, too.
Some mount flags are not supported (e.g. I had to remove "defaults", "dev", "suid", "exec", and even "noatime" since the kernel greeted me with a panic). However, "data=ordered,journal_checksum,barrier=1" is accepted and honoured. |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sun Jan 18, 2015 4:33 pm Post subject: |
|
|
kernelOfTruth wrote: | a shame that the options from /etc/fstab (or most of them) don't get applied |
Not really: Is the story of Münchhausen and his horse known to you? I mean: How can you apply mount options which you have to read from a file in the filesystem you want to mount?
However, what is a shame is that "remounting" obviously does not mean for ext* what everybody understands from this name: umount and subsequent remount, and thus to remount with any options should not be a problem at all (as long as the filesystem can be mounted with these options at all, of course). |
|
Back to top |
|
|
weedy Apprentice
Joined: 24 Jun 2005 Posts: 247
|
Posted: Sat Jan 24, 2015 3:29 am Post subject: |
|
|
Thanks for this, just got around to rebooting my laptop and the 3.18 update made my first boot a lot of fun. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sat Jan 24, 2015 5:19 am Post subject: |
|
|
weedy wrote: | Thanks for this, just got around to rebooting my laptop and the 3.18 update made my first boot a lot of fun. |
I was also angry about this, first. But then I realized that the real reason is that over all those years I ran ext4 without journal_checksum, and even without knowing it.
So once more: The "real" problem is not the new "verbose" refusal but the inability to change options when remounting - which is clearly against the documentation of "mount" and the expectation which the user has. |
|
Back to top |
|
|
|