Bug 1253595 - lazytime mount option doesn't work on root partition
Summary: lazytime mount option doesn't work on root partition
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-14 08:20 UTC by srakitnican
Modified: 2015-08-19 14:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-19 14:53:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description srakitnican 2015-08-14 08:20:18 UTC
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://www.spinics.net/lists/linux-fsdevel/msg86233.html

Version-Release number of selected component (if applicable):
util-linux-2.26.2-1.fc22.x86_64
kernel-4.1.3-201.fc22.x86_64


How reproducible: Always


Steps to Reproduce:
1. Add lazytime option to /etc/fstab
2. Reboot

Actual results: lazytime applied only to /home 


Expected results: lazytime applied on both /home and / partitions


Additional info:

Comment 1 Josh Boyer 2015-08-17 15:09:52 UTC
(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.

> 
> http://www.spinics.net/lists/linux-fsdevel/msg86233.html
> 
> Version-Release number of selected component (if applicable):
> util-linux-2.26.2-1.fc22.x86_64
> kernel-4.1.3-201.fc22.x86_64
> 
> 
> How reproducible: Always
> 
> 
> Steps to Reproduce:
> 1. Add lazytime option to /etc/fstab
> 2. Reboot

Did you specify rootflags=lazytime on the kernel command line or did you rebuild your initramfs after updating /etc/fstab?

Comment 2 srakitnican 2015-08-19 01:42:36 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.
 
Did that: https://bugzilla.redhat.com/show_bug.cgi?id=1254833
 
> Did you specify rootflags=lazytime on the kernel command line or did you
> rebuild your initramfs after updating /etc/fstab?

I did not do any of that because I thought that will work as is. With rootflags=lazytime at boot time works, did not try to rebuild initramfs.

Comment 3 Josh Boyer 2015-08-19 14:53:24 UTC
(In reply to semiRocket from comment #2)
> (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.
>  
> Did that: https://bugzilla.redhat.com/show_bug.cgi?id=1254833
>  
> > Did you specify rootflags=lazytime on the kernel command line or did you
> > rebuild your initramfs after updating /etc/fstab?
> 
> I did not do any of that because I thought that will work as is. With
> rootflags=lazytime at boot time works, did not try to rebuild initramfs.

The initramfs mounts the root filesystem, so if the fstab containted within does not have the flag set it will not mount the rootfs with it unless rootflags= is specified.  I believe on future kernel updates, dracut will read /etc/fstab and pick up the options for the corresponding initramfs.


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