[Bug 1608880] Re: systemd doesnt work with timed fsck, only with counted mount fsck

Reuben Thomas rrt at sc3d.org
Thu Jan 19 19:39:32 UTC 2017


I confirm this problem. Another curious thing is that fsck appears to be
run, but doesn't do anything as the file system is clean:

/run/initramfs/fsck.log says:

Log of fsck -C -a -T -t ext4 /dev/md1 
Thu Jan 19 19:09:43 2017

/dev/md1: clean, 46950805/57753600 files, 197262216/231002624 blocks

Thu Jan 19 19:09:44 2017
----------------

In other words, it terminates immediately. Yet, the log file for the
boot says:

Jan 19 19:09:59 femur kernel: [    8.478804] EXT4-fs (md1): warning:
checktime reached, running e2fsck is recommended

And this is confirmed by the output of dumpe2fs:

Last checked:             Fri Dec 25 18:19:07 2015
Check interval:           15552000 (6 months)
Next check after:         Wed Jun 22 19:19:07 2016

So I'm a bit puzzled: e2fsck is indeed being run in "preen" mode on this
file system, the next check is due, so why is the check not made?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1608880

Title:
  systemd doesnt work with timed fsck, only with counted mount fsck

Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  Updated my homserver from 14.04 to 16.04. Got a "/dev/sda1 will be
  fscked on next reboot" hint in the MOTD. Did some reboots and the fsck
  never happend. Tried with "sudo touch /forcefsck" but the message
  didnt go away. Thought it was an error of the MOTD scripts and tried
  to fiddle with them. But it reappeard ever time.

  Looked at the syslogs logs and saw the fsck never happend.

  Looked at the output from dumpe2fs and it showed several interesting informations:
   * the mount count was 12 and the maximum mountcount of 34 was not reached
   * the timed fsck date was reached
   * the last fsck was long ago (next confirmation the /forcefsck didnt work at all)

  i changed the mount count to 35 with "sudo tune2fs -C 35 /dev/sda1"
  which made the fsck on next reboot.

  So what works: 
   * mount count fsck on reboot

  what doesnt work:
   * setting /forcefsck manually
   * timed fsck 

  what should work?
   * all 3 of them should work.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1608880/+subscriptions



More information about the foundations-bugs mailing list