[Bug 866283] New: No automatic fsck on ext4 fs after checktime reached
https://bugzilla.novell.com/show_bug.cgi?id=866283 https://bugzilla.novell.com/show_bug.cgi?id=866283#c0 Summary: No automatic fsck on ext4 fs after checktime reached Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: martin@oneiros.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=580532) --> (http://bugzilla.novell.com/attachment.cgi?id=580532) /etc/fstab User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 I have these messages in my dmesg: [ 20.526382] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem [ 20.572718] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: acl,user_xattr [ 20.653012] EXT4-fs (dm-0): warning: checktime reached, running e2fsck is recommended [ 20.700149] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: acl,user_xattr,journal_checksum [ 20.780360] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled [ 20.877039] EXT4-fs (dm-2): warning: checktime reached, running e2fsck is recommended [ 20.891707] XFS (dm-6): Mounting Filesystem [ 20.911392] XFS (dm-7): Mounting Filesystem [ 20.913928] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: acl,user_xattr,journal_checksum [ 20.960387] XFS (dm-8): Mounting Filesystem [ 21.907109] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: acl,user_xattr [ 21.928877] EXT4-fs (dm-9): warning: checktime reached, running e2fsck is recommended [ 21.929530] XFS (dm-7): Ending clean mount [ 21.945120] XFS (dm-8): Ending clean mount [ 21.966153] EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: acl,user_xattr,journal_checksum [ 22.015595] EXT4-fs (dm-4): mounted filesystem with ordered data mode. Opts: acl,user_xattr,journal_checksum [ 22.193371] XFS (dm-6): Ending clean mount Although the relevant filesystems have the right flags in /etc/fstab, no automatic fsck is run. This is a system with LVM on RAID5. mounts:
mount|fgrep ext4 /dev/mapper/system-root on / type ext4 (rw,relatime,journal_checksum,data=ordered) /dev/mapper/system-home on /home type ext4 (rw,relatime,journal_checksum,data=ordered) /dev/mapper/system-space on /space type ext4 (rw,relatime,journal_checksum,data=ordered) /dev/mapper/raid-nelson--boot on /raid/nelson/boot type ext4 (ro,relatime,stripe=256,data=ordered) /dev/mapper/raid-backup on /raid/backup type ext4 (rw,relatime,journal_checksum,stripe=64,data=ordered) /dev/mapper/raid-raid on /raid/raid type ext4 (rw,relatime,journal_checksum,stripe=64,data=ordered)
l /dev/mapper/ insgesamt 0 drwxr-xr-x 2 root root 260 28. Feb 13:52 ./ drwxr-xr-x 20 root root 4300 28. Feb 13:52 ../ crw------- 1 root root 10, 236 28. Feb 13:52 control lrwxrwxrwx 1 root root 7 28. Feb 13:52 raid-backup -> ../dm-9 lrwxrwxrwx 1 root root 7 28. Feb 13:52 raid-nelson--boot -> ../dm-5 lrwxrwxrwx 1 root root 7 28. Feb 13:52 raid-nelson--home -> ../dm-6 lrwxrwxrwx 1 root root 7 28. Feb 13:52 raid-nelson--root -> ../dm-7 lrwxrwxrwx 1 root root 7 28. Feb 13:52 raid-nelson--space -> ../dm-8 lrwxrwxrwx 1 root root 7 28. Feb 13:52 raid-raid -> ../dm-4 lrwxrwxrwx 1 root root 7 28. Feb 13:52 system-home -> ../dm-0 lrwxrwxrwx 1 root root 7 28. Feb 13:52 system-root -> ../dm-1 lrwxrwxrwx 1 root root 7 28. Feb 13:52 system-space -> ../dm-2 lrwxrwxrwx 1 root root 7 28. Feb 13:52 system-swap -> ../dm-3
Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
sudo tune2fs -l /dev/mapper/raid-backup tune2fs 1.42.6 (21-Sep-2012) Filesystem volume name: <none> Last mounted on: /raid/backup Filesystem UUID: ad418c10-1e8c-4da3-8b2a-14ac54b48e7d Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c1
--- Comment #1 from Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c
zhang jiajun
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c2
Martin Schröder
sudo tune2fs -l /dev/sda1 tune2fs 1.42.9 (28-Dec-2013) Filesystem volume name: <none> Last mounted on: /boot Filesystem UUID: 4ac0e637-e02f-4667-9194-42ccd47e27c9 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 66264 Block count: 264192 Reserved block count: 13209 Free blocks: 194367 Free inodes: 65922 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 256 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2008 Inode blocks per group: 251 Flex block group size: 16 Filesystem created: Wed Nov 24 12:27:30 2010 Last mount time: Tue Mar 25 10:35:09 2014 Last write time: Tue Mar 25 10:35:09 2014 Mount count: 34 Maximum mount count: 36 Last checked: Sat Sep 21 13:32:49 2013 Check interval: 15552000 (6 months) Next check after: Thu Mar 20 12:32:49 2014 Lifetime writes: 4272 MB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: ce434223-13e5-48fa-b7c9-b51c6e706d3b Journal backup: inode blocks
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c3
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c4
--- Comment #4 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c5
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c6
Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c7
--- Comment #7 from Martin Schröder
and the output of:
for i in `systemctl list-units | grep fsck | cut -d " " -f1`; do systemctl status $i; done
systemd-fsck@dev-datengrab-backup.service - File System Check on /dev/datengrab/backup Loaded: loaded (/usr/lib/systemd/system/systemd-fsck@.service; static) Active: active (exited) since Di 2014-03-25 10:35:12 CET; 1 day 1h ago Docs: man:systemd-fsck@.service(8) Main PID: 626 (code=exited, status=0/SUCCESS) systemd-fsck@dev-datengrab-space.service - File System Check on /dev/datengrab/space Loaded: loaded (/usr/lib/systemd/system/systemd-fsck@.service; static) Active: active (exited) since Di 2014-03-25 10:35:12 CET; 1 day 1h ago Docs: man:systemd-fsck@.service(8) Main PID: 623 (code=exited, status=0/SUCCESS) systemd-fsck@dev-disk-by\x2did-ata\x2dINTEL_SSDSA2M080G2GN_CVPO017402JP080JGN\x2dpart1.service - File System Check on /dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO017402JP080JGN-part1 Loaded: loaded (/usr/lib/systemd/system/systemd-fsck@.service; static) Active: active (exited) since Di 2014-03-25 10:35:08 CET; 1 day 1h ago Docs: man:systemd-fsck@.service(8) Main PID: 556 (code=exited, status=0/SUCCESS) systemd-fsck@dev-system-home.service - File System Check on /dev/system/home Loaded: loaded (/usr/lib/systemd/system/systemd-fsck@.service; static) Active: active (exited) since Di 2014-03-25 10:35:09 CET; 1 day 1h ago Docs: man:systemd-fsck@.service(8) Main PID: 586 (code=exited, status=0/SUCCESS) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c8
--- Comment #8 from Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c9
--- Comment #9 from Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c
Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c10
Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c11
--- Comment #11 from Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c12
--- Comment #12 from Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c13
--- Comment #13 from Martin Schröder
Can you please run it manually, e.g.:
/usr/lib/systemd/systemd-fsck /dev/sda1
sudo /usr/lib/systemd/systemd-fsck /dev/sda1 /dev/sda1: sauber, 342/66264 Dateien, 69825/264192 Blöcke (Prüfung nach 2 Einhängevorgängen)
and afterwards check via tune2fs wheter the checktime was updated?
sudo tune2fs -l /dev/sda1 tune2fs 1.42.9 (28-Dec-2013) Filesystem volume name: <none> Last mounted on: /boot Filesystem UUID: 4ac0e637-e02f-4667-9194-42ccd47e27c9 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 66264 Block count: 264192 Reserved block count: 13209 Free blocks: 194367 Free inodes: 65922 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 256 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2008 Inode blocks per group: 251 Flex block group size: 16 Filesystem created: Wed Nov 24 12:27:30 2010 Last mount time: Tue Mar 25 10:35:09 2014 Last write time: Wed Mar 26 12:58:33 2014 Mount count: 34 Maximum mount count: 36 Last checked: Sat Sep 21 13:32:49 2013 Check interval: 15552000 (6 months) Next check after: Thu Mar 20 12:32:49 2014 Lifetime writes: 4461 MB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: ce434223-13e5-48fa-b7c9-b51c6e706d3b Journal backup: inode blocks
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c14
--- Comment #14 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c15
Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c16
Martin Schröder
fsck.ext4 without the option -f doesn't update the checktime either. Can you please reboot the machine with the kernel comand line parameter:
fsck.mode=force
and check again?
Works. tune2fs 1.42.9 (28-Dec-2013) Filesystem volume name: <none> Last mounted on: /boot Filesystem UUID: 4ac0e637-e02f-4667-9194-42ccd47e27c9 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 66264 Block count: 264192 Reserved block count: 13209 Free blocks: 194367 Free inodes: 65922 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 256 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2008 Inode blocks per group: 251 Flex block group size: 16 Filesystem created: Wed Nov 24 12:27:30 2010 Last mount time: Wed Mar 26 14:14:54 2014 Last write time: Wed Mar 26 14:14:54 2014 Mount count: 1 Maximum mount count: 36 Last checked: Wed Mar 26 14:14:52 2014 Check interval: 15552000 (6 months) Next check after: Mon Sep 22 15:14:52 2014 Lifetime writes: 4462 MB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: ce434223-13e5-48fa-b7c9-b51c6e706d3b Journal backup: inode blocks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c17
--- Comment #17 from Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c18
Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c19
--- Comment #19 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c20
--- Comment #20 from Martin Schröder
IMHO this may cause that on every boot the file systems will be checked .. ?
Yes. All fs will be fsckd always. Please fix the bug instead. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c21
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c22
Martin Schröder
(In reply to comment #20)
you may try to set the maximum mount count by using
tune2fs -c 2 /dev/sda1
and test if this cause a file system check on next reboot. Also please show the kernels command line using
Without fsck.mode=force it does not. Time and count "violations" are reported (and apparently an fsck is done, see comment #11 - but not recorded). Or do you want me to test fsck.mode=force? If you look at the bootlog which I attached, you will see fscks for _all_ fs, even those I previously fscked manually.
cat /proc/cmdline
cat /proc/cmdline root=/dev/system/root resume=/dev/system/swap fsck.mode=force vga=0x3e6
also attach /etc/e2fsck.conf
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c23
--- Comment #23 from Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c24
--- Comment #24 from Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c25
--- Comment #25 from Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c26
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c27
--- Comment #27 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c28
--- Comment #28 from Martin Schröder
So there are likely two things at play: 1) e2fsck doesn't do any checking (unless -f is specified) if the system is running on battery (there is defer_check_on_battery=0 option to turn off this feature).
The systems in question are not running on battery.
2) e2fsck doesn't do any time based checks if broken_system_clock option is set to 1. We do set this option in /etc/e2fsck.conf with the justification to not stop booting due to broken clocks. This is the culprit of the problem reported by Stanislav. I'll have a look how to fix this.
Please see comment #11. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c29
--- Comment #29 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c30
--- Comment #30 from Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c31
Jan Kara
sudo tune2fs -l /dev/dm-1 tune2fs 1.42.8 (20-Jun-2013) Filesystem volume name: <none> Last mounted on: /root Filesystem UUID: a7b21580-3d4f-49db-8448-6aff9b9822e7 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c32
--- Comment #32 from Martin Schröder
rpm -qi e2fsprogs Name : e2fsprogs Version : 1.42.8 Release : 2.1.2 Architecture: x86_64 Install Date: Mi 21 Mai 2014 15:19:13 CEST Group : System/Filesystems Size : 2431576 License : GPL-2.0 Signature : RSA/SHA256, Fr 27 Sep 2013 22:04:26 CEST, Key ID b88b2fd43dbdc284 Source RPM : e2fsprogs-1.42.8-2.1.2.src.rpm Build Date : Fr 27 Sep 2013 22:04:06 CEST Build Host : cloud134 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://e2fsprogs.sourceforge.net Summary : Utilities for the Second Extended File System Description : Utilities needed to create and maintain ext2 and ext3 file systems under Linux. Included in this package are: chattr, lsattr, mke2fs, mklost+found, tune2fs, e2fsck, resize2fs, and badblocks. Distribution: openSUSE 13.1
So nothing has changed since comment 30. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c33
Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c34
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c35
Martin Schröder
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c36
--- Comment #36 from Martin Schröder
I checked with .11 - it works for non-root filesystems. / is still not fscked.
Btw: My / is on LVM. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c37
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c38
--- Comment #38 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c39
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c40
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c42
--- Comment #42 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c43
Matthias Grießmeier
https://bugzilla.novell.com/show_bug.cgi?id=866283
https://bugzilla.novell.com/show_bug.cgi?id=866283#c44
--- Comment #44 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com