public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* an mount option question and dunno if right here...
@ 2016-03-09 10:35 Marko Weber | 8000
  2016-03-09 11:01 ` Carlos E. R.
  2016-03-10 17:02 ` Eric Sandeen
  0 siblings, 2 replies; 6+ messages in thread
From: Marko Weber | 8000 @ 2016-03-09 10:35 UTC (permalink / raw)
  To: Xfs



hello list,

my drives are all xfs formatted.
in fstab i set:

                  lazytime,logbsize=256k,logbufs=8


when i call "mount" on console i get:

                  
rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota


Why is relatime listed? Or is lazytime override this setting?
Even when i set "norelatime" in /etc/fstab i get "relatime" listed on 
'mount'

Or am i wrong here with this question? is this not xfs related?
anyway, for any hints or suggestions i am thankful


best regards

marko





-- 
zbfmail - Mittendrin statt nur Datei!

OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways
Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup
Redundante Mailgateways, HA Mailserver, Secure Mailserver

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an mount option question and dunno if right here...
  2016-03-09 10:35 an mount option question and dunno if right here Marko Weber | 8000
@ 2016-03-09 11:01 ` Carlos E. R.
  2016-03-10 17:02 ` Eric Sandeen
  1 sibling, 0 replies; 6+ messages in thread
From: Carlos E. R. @ 2016-03-09 11:01 UTC (permalink / raw)
  To: XFS mail list


[-- Attachment #1.1: Type: text/plain, Size: 436 bytes --]

On 2016-03-09 11:35, Marko Weber | 8000 wrote:

> Why is relatime listed? Or is lazytime override this setting?
> Even when i set "norelatime" in /etc/fstab i get "relatime" listed on
> 'mount'

Because you get a number of default options. Probably depends on the
distribution. I know that on openSUSE you get relatime set, for instance.

-- 
Cheers / Saludos,

		Carlos E. R.
		(from 13.1 x86_64 "Bottle" at Telcontar)


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an mount option question and dunno if right here...
  2016-03-09 10:35 an mount option question and dunno if right here Marko Weber | 8000
  2016-03-09 11:01 ` Carlos E. R.
@ 2016-03-10 17:02 ` Eric Sandeen
  2016-03-16 13:03   ` Marko Weber | 8000
  1 sibling, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2016-03-10 17:02 UTC (permalink / raw)
  To: xfs

On 3/9/16 4:35 AM, Marko Weber | 8000 wrote:
> 
> 
> hello list,
> 
> my drives are all xfs formatted.
> in fstab i set:
> 
>                  lazytime,logbsize=256k,logbufs=8
> 
> 
> when i call "mount" on console i get:
> 
>                  rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota
> 
> 
> Why is relatime listed? Or is lazytime override this setting?
> Even when i set "norelatime" in /etc/fstab i get "relatime" listed on 'mount'
> 
> Or am i wrong here with this question? is this not xfs related?
> anyway, for any hints or suggestions i am thankful

lazytime is not a valid xfs mount option:

[root ~]# mount -o lazytime /dev/sdb1 /mnt/test
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root ~]# dmesg | tail -n 1
[645779.811802] XFS (sdb1): unknown mount option [lazytime].

I'm guessing this is your root fs? xfs today will silently ignore
unknown mount options on remount (patches to fix that are upstream),
and the root fs may get remounted w/ fstab options.  So presumably
that's how you got lazytime into the mount output, especially if
it's looking at /etc/mtab. Look in /proc/mounts; I doubt you'll
see "lazytime" for this filesystem:

[root ~]# mount /dev/sdb1 /mnt/test
[root ~]# mount -o remount,lazytime /mnt/test

[root ~]# grep sdb1 /etc/mtab /proc/mounts
/etc/mtab:/dev/sdb1 /mnt/test xfs rw,lazytime 0 0
/proc/mounts:/dev/sdb1 /mnt/test xfs rw,seclabel,relatime,attr2,inode64,noquota 0 0

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an mount option question and dunno if right here...
  2016-03-10 17:02 ` Eric Sandeen
@ 2016-03-16 13:03   ` Marko Weber | 8000
  2016-03-16 13:48     ` Eric Sandeen
  0 siblings, 1 reply; 6+ messages in thread
From: Marko Weber | 8000 @ 2016-03-16 13:03 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs



Am 2016-03-10 18:02, schrieb Eric Sandeen:
> On 3/9/16 4:35 AM, Marko Weber | 8000 wrote:
>> 
>> 
>> hello list,
>> 
>> my drives are all xfs formatted.
>> in fstab i set:
>> 
>>                  lazytime,logbsize=256k,logbufs=8
>> 
>> 
>> when i call "mount" on console i get:
>> 
>>                  
>> rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota
>> 
>> 
>> Why is relatime listed? Or is lazytime override this setting?
>> Even when i set "norelatime" in /etc/fstab i get "relatime" listed on 
>> 'mount'
>> 
>> Or am i wrong here with this question? is this not xfs related?
>> anyway, for any hints or suggestions i am thankful
> 
> lazytime is not a valid xfs mount option:
> 
> [root ~]# mount -o lazytime /dev/sdb1 /mnt/test
> mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
> 
> [root ~]# dmesg | tail -n 1
> [645779.811802] XFS (sdb1): unknown mount option [lazytime].
> 
> I'm guessing this is your root fs? xfs today will silently ignore
> unknown mount options on remount (patches to fix that are upstream),
> and the root fs may get remounted w/ fstab options.  So presumably
> that's how you got lazytime into the mount output, especially if
> it's looking at /etc/mtab. Look in /proc/mounts; I doubt you'll
> see "lazytime" for this filesystem:
> 
> [root ~]# mount /dev/sdb1 /mnt/test
> [root ~]# mount -o remount,lazytime /mnt/test
> 
> [root ~]# grep sdb1 /etc/mtab /proc/mounts
> /etc/mtab:/dev/sdb1 /mnt/test xfs rw,lazytime 0 0
> /proc/mounts:/dev/sdb1 /mnt/test xfs
> rw,seclabel,relatime,attr2,inode64,noquota 0 0

Hi Eric,


my /etc/fstab entry:

/dev/VolGroup01/wiso    /raid5/wiso     xfs     norelatime,lazytime



# mount:


/dev/mapper/VolGroup01-wiso on /raid5/wiso type xfs 
(rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota)


cat /proc/mounts:

/dev/mapper/VolGroup01-wiso /raid5/wiso xfs 
rw,lazytime,relatime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota 
0 0






> 
> -Eric
> 
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an mount option question and dunno if right here...
  2016-03-16 13:03   ` Marko Weber | 8000
@ 2016-03-16 13:48     ` Eric Sandeen
  2016-03-16 19:34       ` Dave Chinner
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2016-03-16 13:48 UTC (permalink / raw)
  To: weber; +Cc: xfs

On 3/16/16 8:03 AM, Marko Weber | 8000 wrote:
> 

> Hi Eric,
> 
> 
> my /etc/fstab entry:
> 
> /dev/VolGroup01/wiso    /raid5/wiso     xfs     norelatime,lazytime
> 
> 
> 
> # mount:
> 
> 
> /dev/mapper/VolGroup01-wiso on /raid5/wiso type xfs (rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota)
> 
> 
> cat /proc/mounts:
> 
> /dev/mapper/VolGroup01-wiso /raid5/wiso xfs rw,lazytime,relatime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota 0 0
> 

Ok, I stand corrected, sorry; I forgot about this:

commit 0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8
Author: Theodore Ts'o <tytso@mit.edu>
Date:   Mon Feb 2 00:37:00 2015 -0500

    vfs: add support for a lazytime mount option

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an mount option question and dunno if right here...
  2016-03-16 13:48     ` Eric Sandeen
@ 2016-03-16 19:34       ` Dave Chinner
  0 siblings, 0 replies; 6+ messages in thread
From: Dave Chinner @ 2016-03-16 19:34 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs, weber

On Wed, Mar 16, 2016 at 08:48:13AM -0500, Eric Sandeen wrote:
> On 3/16/16 8:03 AM, Marko Weber | 8000 wrote:
> > 
> 
> > Hi Eric,
> > 
> > 
> > my /etc/fstab entry:
> > 
> > /dev/VolGroup01/wiso    /raid5/wiso     xfs     norelatime,lazytime
> > 
> > 
> > 
> > # mount:
> > 
> > 
> > /dev/mapper/VolGroup01-wiso on /raid5/wiso type xfs (rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota)
> > 
> > 
> > cat /proc/mounts:
> > 
> > /dev/mapper/VolGroup01-wiso /raid5/wiso xfs rw,lazytime,relatime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquota 0 0
> > 
> 
> Ok, I stand corrected, sorry; I forgot about this:
> 
> commit 0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8
> Author: Theodore Ts'o <tytso@mit.edu>
> Date:   Mon Feb 2 00:37:00 2015 -0500
> 
>     vfs: add support for a lazytime mount option

Don't for that lazytime isn't actually implemented by XFS, and we
can't intercept that flag at mount time because it's been added as a
VFS flag. So on everything but ext4 it does nothing, it conflicts
with other atime settings we do support, and we can't really do
anything about it...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-16 19:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 10:35 an mount option question and dunno if right here Marko Weber | 8000
2016-03-09 11:01 ` Carlos E. R.
2016-03-10 17:02 ` Eric Sandeen
2016-03-16 13:03   ` Marko Weber | 8000
2016-03-16 13:48     ` Eric Sandeen
2016-03-16 19:34       ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox