Bug 1254833 - "mount -o remount" does not work with lazytime
"mount -o remount" does not work with lazytime
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
22
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Karel Zak
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-18 21:35 EDT by srakitnican
Modified: 2015-08-19 06:22 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-19 03:55:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description srakitnican 2015-08-18 21:35:32 EDT
Description of problem: Changing mount options on mounted partitions described in following mail using 'mount -o remount' command does not work.
http://www.spinics.net/lists/linux-fsdevel/msg86233.html

# mount | grep sda
/dev/sda1 on / type ext4 (rw,relatime,lazytime,seclabel,data=ordered)
/dev/sda3 on /home type ext4 (rw,relatime,lazytime,seclabel,data=ordered)
# mount -o remount,nolazymount /dev/sda3 
mount: /home not mounted or bad option

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
# mount -o remount,lazymount /dev/sda3 
mount: /home not mounted or bad option

       In some cases useful info is found in syslog - try

journalctl:

Kol 19 03:24:28 computer kernel: EXT4-fs (sda3): Unrecognized mount option "nolazymount" or missing value
Kol 19 03:26:51 computer kernel: EXT4-fs (sda3): Unrecognized mount option "lazymount" or missing value


Version-Release number of selected component (if applicable):
util-linux-2.26.2-1.fc22.x86_64
kernel-4.1.4-200.fc22.x86_64
Comment 1 srakitnican 2015-08-18 21:48:49 EDT
(In reply to Josh Boyer from comment #1)
> (In reply to semiRocket from comment #0)
> > Description of problem: By adding lazytime mount option to fstab and
> > rebooting, mount command shows lazytime applied only to /home partition, not
> > on /. 
> 
> > Moreover changing mount options on mounted partitions described in
> > following mail using mount -o remount command does not work at all.
> 
> http://article.gmane.org/gmane.comp.file-systems.ext4/48663
> 
> suggests that the remount issue is a regression in util-linux.  You should
> probably file a separate bug against that component to get it fixed.

Seems is the issue.
Comment 2 Karel Zak 2015-08-19 03:55:44 EDT
(In reply to semiRocket from comment #0)
> Kol 19 03:24:28 computer kernel: EXT4-fs (sda3): Unrecognized mount option
> "nolazymount" or missing value

It's "lazytime", no "lazymount".

Anyway, it seems that ext4 kernel driver does not support nolazytime remount. It seems that the code allows to enable lazytime only. I'll try to talk abou tit with ext4 developers.
Comment 3 srakitnican 2015-08-19 06:17:29 EDT
It was late when I was doing report. I was wondering why I was suddenly getting that dmesg output :D

Yes you are right, sorry. The issue I am getting is this one:

# mount | grep sda
/dev/sda1 on / type ext4 (rw,relatime,lazytime,seclabel,data=ordered)
/dev/sda3 on /home type ext4 (rw,relatime,lazytime,seclabel,data=ordered)
# mount -o remount,nolazytime /dev/sda3 
# mount | grep sda
/dev/sda1 on / type ext4 (rw,relatime,lazytime,seclabel,data=ordered)
/dev/sda3 on /home type ext4 (rw,relatime,lazytime,seclabel,data=ordered)
dmesg | tail -1
[ 7273.392922] EXT4-fs (sda3): re-mounted. Opts: (null)

Note You need to log in before you can comment on or make changes to this bug.