Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284481 - sys-fs/e2fsprogs goes through full filesystem check when it detects superblock write time in future
Summary: sys-fs/e2fsprogs goes through full filesystem check when it detects superbloc...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://bugs.launchpad.net/e2fsprogs/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 13:56 UTC by PM
Modified: 2009-10-12 01:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PM 2009-09-10 13:56:48 UTC
Before, when I hard-rebooted my system, I would get a message that "superblock last write time is in future. fixed", or something like that during the next boot. And that was it.

Now, some time ago I started getting something like this:

Gentoo: Superblok last write time (Thu Sep 10 17:39:55 2009,
        now = Thu Sep 10 15:40:00 2009) is in the future.


Gentoo: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)

Then it boots fine, but during the following bootup, it says the filesystem has errors and does a full scan (ext4).

Reproducible: Always

Steps to Reproduce:
1.Do a hard reboot
2.Wait for it to boot, and do a normal reboot
3.




# emerge --info                                                                                                      
Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo x86_64)                       
=================================================================                                                             
System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.0.1                         
Timestamp of tree: Thu, 10 Sep 2009 10:30:01 +0000                                                                            
app-shells/bash:     4.0_p33                                                                                                  
dev-java/java-config: 2.1.9                                                                                                   
dev-lang/python:     2.6.2-r1, 3.1.1                                                                                          
dev-util/cmake:      2.6.4-r2                                                                                                 
sys-apps/baselayout: 2.0.1                                                                                                    
sys-apps/openrc:     0.4.3-r3                                                                                                 
sys-apps/sandbox:    2.1                                                                                                      
sys-devel/autoconf:  2.13, 2.63-r1                                                                                            
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                                                         
sys-devel/binutils:  2.19.1-r1                                                                                                
sys-devel/gcc-config: 1.4.1                                                                                                   
sys-devel/libtool:   2.2.6a                                                                                                   
virtual/os-headers:  2.6.30-r1                                                                                                
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                                
CBUILD="x86_64-pc-linux-gnu"                                                                                                  
CFLAGS="-O2 -march=core2 -msse3 -mssse3 -msse4.1 -pipe -g"                                                                    
CHOST="x86_64-pc-linux-gnu"                                                                                                   
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                              
CXXFLAGS="-O2 -march=core2 -msse3 -mssse3 -msse4.1 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/berkano /usr/local/portage/moje"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb async audiofile automount bash-completion berkdb bluetooth branding bzip2 cairo cddb cdio cdparanoia cdr chdir cli consolekit cracklib crypt css cups curl dbus dirac disk-partition divx djvu dri dts dvd dvdr editor eds embedded emboss emovix encode esd evo exchange exif faac faad fam fat ffmpeg firefox firefox3 flac fortran gd gdbm geoip gif glitz gmedia gphoto2 gpm gstreamer gtk hal hddtemp iconv id3 id3tag imagemagick inotify ipod isdnlog jpeg kde kde4 kdeenablefinal kdehiddenvisibility kipi kpathsea kqemu ladspa lame laptop libcaca libnotify libsamplerate lm_sensors mad mikmod mjpeg mmap mmx mmxext mng mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ntfs ogg openal opencore-amr opengl openmp pam pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection roe sasl scanner schroedinger sdl sensord session slang sndfile solver soundtouch sourceview spell spl sse sse2 sse3 sse4a ssl ssse3 startup-notification suid svg swat symlink sysfs syslog tcpd theora threads thunar tiff truetype unicode upnp usb vamp vcd vdpau vorbis webkit wmf wmp wxwindows x264 xcb xcomposite xine xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-09-11 06:14:33 UTC
I'm guessing you've set your hardware clock to be in local time, yes?
If so, it seems to me to be insane of e2fsprogs to expect that last write time is in the past. Default should be to expect last write time to be < NOW+24HRS

Piotr: Please add to this report the output of:
grep '^clock' /etc/conf.d/hwclock 
cat /etc/timezone
emerge -pv e2fsprogs
Comment 2 PM 2009-09-11 09:10:53 UTC
piotrek@gentoo ~ $ grep '^clock' /etc/conf.d/hwclock
clock="local"
clock_systohc="YES"
clock_args=""
piotrek@gentoo ~ $ cat /etc/timezone
Europe/Warsaw
piotrek@gentoo ~ $ emerge -pv e2fsprogs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-fs/e2fsprogs-1.41.9  USE="nls" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
piotrek@gentoo ~ $
Comment 3 SpanKY gentoo-dev 2009-09-11 09:29:01 UTC

*** This bug has been marked as a duplicate of bug 142850 ***
Comment 4 PM 2009-09-11 09:52:10 UTC
This bug is not about fsck babbling about write time in the future, but about going through a full filesystem check during next boot (though someone changed the summary so it looks like a duplicate, I'm changing it now to something more appropriate)
Comment 5 SpanKY gentoo-dev 2009-10-11 09:09:32 UTC
except that your error still looks like a dupe.  create the /etc/e2fsck.conf as documented in the other bug and verify that rebooting still causes problems.
Comment 6 PM 2009-10-11 10:34:32 UTC
I don't get it. Should I create /etc/e2fsck.conf and write "buggy_init_scripts" to it? If so, it doesn't work.

Also the openrc 5.1 (i think it was it) changed it, that now fsck runs during the same boot, but it does not look right.


* Checking local filesystems ...
Gentoo: Superblok last write time (Sun Oct 11 14:17:16 2009,
        now = Sun Oct 11 12:17:23 2009) is in the future.


Gentoo: NIEOCZEKIWANA NIESPOJNO∎∎; TRZEBA URUCHOMI∎ fsck R∎CZNIE.
        (tzn. bez opcji -a ani -p)
* Fileystem errors left uncorrected, aborting
[ !! ]* rc: Aborting!
* fsck: caught SIGTERM, aborting* rc-abort: failed to signal parent 1275: No such process

* Checking local filesystems ...
Gentoo zawiera system plików z b∎∎dami, wymuszono sprawdzenie.
Gentoo: 563184/15269888 plików (1.4% nieci∎g∎ych), 46398426/61071073 bloków
Gentoo-boot: odtwarzanie z kroniki
Gentoo-boot: czysty, 68/26208 plików, 49080/104420 bloków
[ ok ]* Remounting root filesystem read/write...
Comment 7 Jake Magee 2009-10-12 01:03:46 UTC
I'm seeing the same issue.  I installed fresh at the beginning of this year.  I just updated my entire "world" except for the kernel.  The previous bugs that come up when searching for solutions don't have clear solutions.  Could someone please shine some light on this while I try to work through it myself.