Debian Bug report logs - #616317
base: commit= ext3 mount option in fstab has no effect.

Package: initscripts; Maintainer for initscripts is Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>; Source for initscripts is src:sysvinit.

Reported by: "Ilya V. Kalujny" <kalujny@gmail.com>

Date: Thu, 3 Mar 2011 12:57:01 UTC

Severity: normal

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, kalujny@gmail.com, Base Maintainers <virtual-pkg-base-maintainers@lists.alioth.debian.org>:
Bug#616317; Package base. (Thu, 03 Mar 2011 12:57:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Ilya V. Kalujny" <kalujny@gmail.com>:
New Bug report received and forwarded. Copy sent to kalujny@gmail.com, Base Maintainers <virtual-pkg-base-maintainers@lists.alioth.debian.org>. (Thu, 03 Mar 2011 12:57:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Ilya V. Kalujny" <kalujny@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: base: commit= ext3 mount option in fstab has no effect.
Date: Thu, 03 Mar 2011 15:54:09 +0300
Package: base
Severity: normal


I`m not sure which pacakge to indicate for this bug, so I`m putting it into base, please forward as necessary. Some guys on #debian channel were able to reproduce this aswell.

The commit=[sec] ext3 mount option in fstab has no effect. After putting noatime,commit=150 into line for root filesystem options in fstab and booting I do "grep ext3 /proc/mounts" and it shows the commit interval is still default 5 sec. Editing line with root filesystem options during boot with GRUB doesnt have any effect either. The only way to change commit interval for ext3 is to remount root filesystem with "mount -o remount,commit=150,..". Whats worth noting is if you do "sudo mount | grep ext3" after boot it gives me line like this: "/dev/md1 on / type ext3 (rw,noatime,commit=150,errors=remount-ro,commit=0)" which makes me think something is appening default value commit option.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc4 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Bug reassigned from package 'base' to 'e2fsprogs'. Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Thu, 03 Mar 2011 13:36:03 GMT) Full text and rfc822 format available.

Bug reassigned from package 'e2fsprogs' to 'base'. Request was from Ted Ts'o <tytso@mit.edu> to control@bugs.debian.org. (Sun, 08 May 2011 02:45:08 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Base Maintainers <virtual-pkg-base-maintainers@lists.alioth.debian.org>:
Bug#616317; Package base. (Sun, 08 May 2011 04:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to Base Maintainers <virtual-pkg-base-maintainers@lists.alioth.debian.org>. (Sun, 08 May 2011 04:27:02 GMT) Full text and rfc822 format available.

Message #14 received at 616317@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: Ted Ts'o <tytso@mit.edu>
Cc: Holger Levsen <holger@layer-acht.org>, debian-devel@lists.debian.org, 616317@bugs.debian.org
Subject: Re: Bug#616317: base: commit= ext3 mount option in fstab has no effect.
Date: Sun, 08 May 2011 05:24:09 +0100
[Message part 1 (text/plain, inline)]
On Sat, 2011-05-07 at 22:43 -0400, Ted Ts'o wrote:
[...]
> Should we try to make this work (at best badly) since a change in
> mount options in /etc/fstab would only take effect at the next
> mkinitramfs and/or update-grub invocation?  Or should we just close
> out this bug and say, "tough luck, kid; if you want to change the root
> file system's mount options, you need to edit your kernel's boot
> options using whatever bootloader you might happen to be using"?
[...]

Could we not have init remount root based on /etc/fstab?  It already
handles remounting read-write.  I suppose the problem then is that some
mount options can't practically be changed when remounting.  (Worse, the
failure to change them is silent in some cases.  And that is definitely
a bug.)

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Base Maintainers <virtual-pkg-base-maintainers@lists.alioth.debian.org>:
Bug#616317; Package base. (Sun, 08 May 2011 05:42:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Base Maintainers <virtual-pkg-base-maintainers@lists.alioth.debian.org>. (Sun, 08 May 2011 05:42:05 GMT) Full text and rfc822 format available.

Message #19 received at 616317@bugs.debian.org (full text, mbox):

From: Roger Leigh <rleigh@codelibre.net>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: Ted Ts'o <tytso@mit.edu>, Holger Levsen <holger@layer-acht.org>, debian-devel@lists.debian.org, 616317@bugs.debian.org
Subject: Re: Bug#616317: base: commit= ext3 mount option in fstab has no effect.
Date: Sun, 8 May 2011 06:38:34 +0100
[Message part 1 (text/plain, inline)]
On Sun, May 08, 2011 at 05:24:09AM +0100, Ben Hutchings wrote:
> On Sat, 2011-05-07 at 22:43 -0400, Ted Ts'o wrote:
> [...]
> > Should we try to make this work (at best badly) since a change in
> > mount options in /etc/fstab would only take effect at the next
> > mkinitramfs and/or update-grub invocation?  Or should we just close
> > out this bug and say, "tough luck, kid; if you want to change the root
> > file system's mount options, you need to edit your kernel's boot
> > options using whatever bootloader you might happen to be using"?
> [...]
> 
> Could we not have init remount root based on /etc/fstab?  It already
> handles remounting read-write.  I suppose the problem then is that some
> mount options can't practically be changed when remounting.  (Worse, the
> failure to change them is silent in some cases.  And that is definitely
> a bug.)

See also: #520009

Also, with the version of initscripts in experimental, the domount
mount helper can remount filesystems with the options from /etc/fstab.
This is used to remount the filesystems mounted in the early initramfs
with the options the sysadmin defined (if any).  This could also be
extended to do the same for the rootfs.  The existing read_fstab
could also be refactored to use the generic read_fstab_entry to pull
out the entire set of mount options for remounting rather than just
using the ro option.  As both this and #520009 note, this won't work
for all mount options such as data= for ext3, but it would allow any
other options to from fstab to be applied to the root mount.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package 'base' to 'general'. Request was from Amaya <amaya@debian.org> to control@bugs.debian.org. (Sun, 08 May 2011 10:45:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#616317; Package general. (Mon, 17 Oct 2011 03:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Mon, 17 Oct 2011 03:39:03 GMT) Full text and rfc822 format available.

Message #26 received at 616317@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Roger Leigh <rleigh@codelibre.net>
Cc: Ben Hutchings <ben@decadent.org.uk>, Ted Ts'o <tytso@mit.edu>, Holger Levsen <holger@layer-acht.org>, 616317@bugs.debian.org
Subject: Re: base: commit= ext3 mount option in fstab has no effect.
Date: Sun, 16 Oct 2011 22:37:08 -0500
reassign 616317 initscripts
quit

Roger Leigh wrote:
> On Sun, May 08, 2011 at 05:24:09AM +0100, Ben Hutchings wrote:

>> Could we not have init remount root based on /etc/fstab?
[...]
> Also, with the version of initscripts in experimental, the domount
> mount helper can remount filesystems with the options from /etc/fstab.

I guess that means this bug was fixed by initscripts 2.88dsf-13.5.

[...]
>> I suppose the problem then is that some
>> mount options can't practically be changed when remounting.  (Worse, the
>> failure to change them is silent in some cases.  And that is definitely
>> a bug.)

That sounds like a separate bug, though probably an important one.
Could you say more about it?  For example, which package would have to
be changed to fix it?

lazily,
Jonathan




Bug reassigned from package 'general' to 'initscripts'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 17 Oct 2011 03:39:04 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 24 05:37:36 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.