an mount option question and dunno if right here...
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
Signature · 10 lines
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 [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 3 lines · 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/fstabi 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.
Signature · 4 lines
Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 12 lines · 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:
Quoted 8 lines
rw,relatime,lazytime,attr2,inode64,logbufs=8,logbsize=256k,sunit=1024,swidth=3072,noquotaWhy is relatime listed? Or is lazytime override this setting? Even when i set "norelatime" in
/etc/fstabi 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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Am 2016-03-10 18:02, schrieb Eric Sandeen:
Quoted 41 lines · On 3/9/16 4:35 AM, Marko Weber | 8000 wrote:
Quoted 13 lines
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:
Quoted 8 lines
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/fstabi 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:
Quoted 7 lines
[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/testxfs rw,lazytime 0 0
/proc/mounts:/dev/sdb1/mnt/testxfs
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
Quoted 7 lines
-Eric
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 14 lines · On 3/16/16 8:03 AM, Marko Weber | 8000 wrote:
Hi Eric,
my
/etc/fstabentry:
/dev/VolGroup01/wiso/raid5/wiso xfs norelatime,lazytime# mount:
Quoted 7 lines
/dev/mapper/VolGroup01-wisoon /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 <[email protected]> Date: Mon Feb 2 00:37:00 2015 -0500
vfs: add support for a lazytime mount option
-Eric
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 23 lines · Eric Sandeen
Quoted 14 lines · On 3/16/16 8:03 AM, Marko Weber | 8000 wrote:
Hi Eric,
my
/etc/fstabentry:
/dev/VolGroup01/wiso/raid5/wiso xfs norelatime,lazytime# mount:
Quoted 7 lines
/dev/mapper/VolGroup01-wisoon /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
Quoted 7 lines
Ok, I stand corrected, sorry; I forgot about this:
commit
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8Author: Theodore Ts'o <[email protected]> Date: Mon Feb 2 00:37:00 2015 -0500vfs: 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.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs