Bug 1254833 - "mount -o remount" does not work with lazytime
Summary: "mount -o remount" does not work with lazytime
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-19 01:35 UTC by srakitnican
Modified: 2015-08-19 10:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-19 07:55:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description srakitnican 2015-08-19 01:35:32 UTC
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-19 01:48:49 UTC
(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 07:55:44 UTC
(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 10:17:29 UTC
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.