Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16847751ybl; Wed, 1 Jan 2020 15:27:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwz1Ia3kM/FdCGwLq3ZzFJk0d9nB3lZu3p36oDvRoQK1ps2cjkw5E2L2nuzbRiOGThZHDPk X-Received: by 2002:a05:6830:1691:: with SMTP id k17mr91893568otr.282.1577921266504; Wed, 01 Jan 2020 15:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577921266; cv=none; d=google.com; s=arc-20160816; b=revpNmiCuZe1BOp5X0Zkk12g9r58jdj6iP/umJEe1CctBX1dx0NSIDtmqHbInxUZdz L3trncQi34LHmENBwIXL0/i7jZclDIcPzX2BMC4K05KERbm9T+IjW7dXSoJu0Q+6H84N 7f6QfXCqrXKFBGDLPMixxuVKEzy3sEztrvrAwsqyEVyvB9n25Ivj+C74TiE5SR7cRKr4 T0vx2qq9tYb9q6X10lSdlQcu9uWMePjC2/i6+CX2STmUl7+a9AJT3B5BzY8vPPYQkccV yM9iUbr3trfLFzl70euCgeLJR6/egd25tdwhe0p/IrfUYQn0BRKWsNSmEWJei7DEP79f tKCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V7fM8wJLsdkRbqSTtr1bCPRdkXWe4JNUEFnPU4bzcoY=; b=RaOb6PRKvA9vZZOyqK0wxxMWiisutuf57cF7DI1myfNmbmGBdyLJeZ7dSr2VWROF2r npIPWICZiRSwPLP3HC08nvy0d6JvMMkCi33BT//8w7pRDbpbXjZZFGYSWvhBUaxvvamh MYd3c25U22o3qMubSCZnfaYj/Uxl+bcyHT1rrPvcAtsY1boESQITujt0br+lCGMXhkqA 450fgiRybC4jv2r7ZTBtnmHBYINEZi+tOzND8cUQdEs9cqpBJCmIJj9QsvZYNDgH936k JtQgSdkvGHYTuGQlRVU7kD+e1uXzD1L/jT6huPgkLJtcKl0pvLI4A63Q/gfoiI3qIjRC Jx/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gU/tbS5E"; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si28293302otq.222.2020.01.01.15.27.16; Wed, 01 Jan 2020 15:27:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gU/tbS5E"; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbgAAXTW (ORCPT + 99 others); Wed, 1 Jan 2020 18:19:22 -0500 Received: from mail-il1-f170.google.com ([209.85.166.170]:36972 "EHLO mail-il1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727393AbgAAXTW (ORCPT ); Wed, 1 Jan 2020 18:19:22 -0500 Received: by mail-il1-f170.google.com with SMTP id t8so32916486iln.4 for ; Wed, 01 Jan 2020 15:19:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V7fM8wJLsdkRbqSTtr1bCPRdkXWe4JNUEFnPU4bzcoY=; b=gU/tbS5EAjJ4UzdcrTJluc/f800wh3L7mBgQN7WPu+Bv91gDRhRLn3DrcXPcSmS5GW 4+c5krN0wE7PuVosdLdRn0BysQMmbba1ixmgxWSstwaB/9vlcOTOdMQTFL5dxOaIhYEe A0KJAMisePJsqnJRc88C9zOa/ObJ7Agk26kryOl19oFllH9HCSdN8dE+jKWz4V15LGgc h7WUN+cG2/5c7Miq1i+sXvxIsgBs5LEzb96KInFUd3SvdM2OXkvNVOoaIxwOUFEKgA07 PfVfqnygGoqi7+3xwXG4S9qVHPgipzZvfpJJW3gGLfAyFu5CWFug/wymkC7R/F5+lKgy 2CaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V7fM8wJLsdkRbqSTtr1bCPRdkXWe4JNUEFnPU4bzcoY=; b=ENqlGpHca4MPVJ/jSfnYVvC+yRTUXRFtUXNtPCcmJVskpwkJFD90of8A57fnR29fqT m8V76CmhAWo0+s+WZ4RcS6nlfv2A4zM9NmCr7E+1mBZqG8hWMNy9kOdX/ohiB3YRD4zy MiNq2oWVT/HlcCZx4/PwduQFximY6jHmtcFaje9FIAZeCiFYdJ9jgwALrBsMu4ujCUXA WkAkA2M3rmRLgBoSM1FjtOctLUQ3XAsesh5+Nk/a8ThAjBAu0ZV+aXVuN0NwQmtE/OVy mRi1ncWgfVaqNRbb8LtkJe/hAkF0AbmPqv/CFv/5u0i2f3iCvmzZljxSiWaZ6ElcvmFv ihzg== X-Gm-Message-State: APjAAAU6T1jC6jDwmOSv9LuA8gDdsmOefxoaDCrA1yctvA/JjewjLxQ8 6M0ullh6pDF0BOYW2qINf/ciBvNoIqDrTCxoPKMvrEnpzm1jfw== X-Received: by 2002:a92:58d7:: with SMTP id z84mr64767351ilf.179.1577920761050; Wed, 01 Jan 2020 15:19:21 -0800 (PST) MIME-Version: 1.0 References: <20200101141748.GA191637@mit.edu> In-Reply-To: <20200101141748.GA191637@mit.edu> From: Mikhail Gavrilov Date: Thu, 2 Jan 2020 04:19:10 +0500 Message-ID: Subject: Re: [bugreport] Ext4 automatically checked at each boot To: "Theodore Y. Ts'o" Cc: linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, 1 Jan 2020 at 19:17, Theodore Y. Ts'o wrote: > > The problem is casued by the fact that the mount time is incorrect, > which indicates that the system time was incorrect at the time when > the file system was mounted and when it fsck was run. Since the last > write time was in the future, this triggered "time is insane" check. > > This is inconsistent with your report that started happening when you > switched to a new motherboard. That's because the real time clock is > not reporting the correct time when the system is booted. Later on, > in the boot cycle, after the root file system is checked and remounted > read-write, the system time is getting set from an internet time > server. This then causes the last write time to be ahead of the last > mount time, and "in the future" with respect to the real time clock. > > Normally, the hardware clock's time gets set to match system time when > it is set from network time, or when the system is getting shut down > cleanly, but your init scripts aren't doing this properly --- or you > normally shut down your system by just flipping the power switch, and > not letting the shutdown sequence run correctly. The other possibilty > is the real time clock on your system is just completly busted > (although normally when that happens, the last mount time would be in > the 1970's.) > > Running "/sbin/hwclock -w" as root may fix things; as is figuring out > why this isn't run automatically by your boot scripts. Another > workaround is to add to /etc/e2fsck.conf the following: > > [options] > broken_system_lock = true > > This will disable e2fsck's time checks. > Thank you very much for the tip, I would never have guessed that the cause of this issue in hwclock. I started to watch hwclock through the motherboard BIOS and found that hwclock resets every time after booting Linux. Demonstration: https://youtu.be/TBrLNFbBaPo Apparently for this reason, "hwclock -w" did not help me, workaround with "broken_system_clock = true" is working, but I would like to fix the root of the cause. Who can help with this? -- Best Regards, Mike Gavrilov.