You are not logged in.

#1 2013-05-21 16:35:20

Osiris
Member
Registered: 2003-01-18
Posts: 160
Website

Identical mount resulting in different options

Hello,

I have two identical hard drives. Both have a gparted created GPT table and a CLI created ext4 filesystem with no options other than -L (label).

Both are mounted with identical fstab options:

LABEL=Archiv_1  /mnt/Archiv_1           ext4            defaults
LABEL=Archiv_2  /mnt/Archiv_2           ext4            defaults

Archiv_1 was created like two weeks before Archiv_2 (which was created right now). I don't know about exact kernel versions, but:

root@horus /home/florian # mount
[...]
/dev/sde1 on /mnt/Archiv_1 type ext4 (rw,relatime)
/dev/sdd1 on /mnt/Archiv_2 type ext4 (rw,relatime,data=ordered)
/dev/sdb1 on /home type ext4 (rw,relatime,data=ordered)

I am curious why Archiv_1 and 2 have different mount options applied? If default options have changed in the last two weeks, why has /home the same options like Archiv_2 though it's much older?

What mount options would you recommend for ext4 disks that are primarily used for bulk data storage?

Thanks!

Last edited by Osiris (2013-05-21 17:04:22)

Offline

#2 2013-05-21 16:57:24

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Identical mount resulting in different options

Compare the output of 'tune2fs -l /dev/sde1 | grep "mount options"' with the output of  'tune2fs -l /dev/sdd1 | grep "mount options"' and see if they are different.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2013-05-21 16:59:54

Osiris
Member
Registered: 2003-01-18
Posts: 160
Website

Re: Identical mount resulting in different options

Nope, they are identical:

root@horus /mnt/Archiv_2 # tune2fs -l /dev/sde1 | grep "mount options" 
Default mount options:    user_xattr acl
root@horus /mnt/Archiv_2 # tune2fs -l /dev/sdd1 | grep "mount options" 
Default mount options:    user_xattr acl

Could it be related to disk usage?

Offline

#4 2013-05-21 20:27:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Identical mount resulting in different options

No idea then, maybe some mount helper changed the mount options for those partitions. You will have to wait for someone else to chime in with more ideas.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2013-05-21 20:43:47

Osiris
Member
Registered: 2003-01-18
Posts: 160
Website

Re: Identical mount resulting in different options

Seems to be systemd related.

root@horus ~ # systemctl show mnt-Archiv_1.mount > A1
root@horus ~ # systemctl show mnt-Archiv_2.mount > A2
root@horus ~ # diff -y A1 A2
[...]
Where=/mnt/Archiv_1                                           | Where=/mnt/Archiv_2
What=/dev/sde1                                                | What=/dev/sdd1
Options=rw,relatime,rw                                        | Options=rw,relatime,rw,data=ordered
[...]

The unit files for the mounts in /run/systemd/generator show no difference there.

Last edited by Osiris (2013-05-21 20:48:07)

Offline

#6 2013-05-21 21:04:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Identical mount resulting in different options

Osiris wrote:

Seems to be systemd related.
<snip>
The unit files for the mounts in /run/systemd/generator show no difference there.

If the unit files are the same, how is this related to systemd?

Strongly suspect tune2fs isn't giving you the full story and this is simply the kernel following the FS.

Last edited by falconindy (2013-05-21 21:05:30)

Offline

#7 2013-05-21 21:11:05

Osiris
Member
Registered: 2003-01-18
Posts: 160
Website

Re: Identical mount resulting in different options

You seem to be right.

Archiv_1 has:
Filesystem features:      ext_attr resize_inode dir_index filetype sparse_super large_file

Archiv_2:
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

I thought I used mkfs.ext4 on both in the same way. Filesystem magic number is identical.

Why is Archiv_1 without journal?

Offline

#8 2013-05-21 21:17:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Identical mount resulting in different options

/etc/mke2fs.conf defines defaults for mkfs.extN. These defaults may not be the same given different size partitions, media types, etc.

Offline

#9 2013-05-21 21:22:18

Osiris
Member
Registered: 2003-01-18
Posts: 160
Website

Re: Identical mount resulting in different options

The partitions are exactly identical, the drives are the same manufactor, same series, ...

Offline

#10 2013-05-21 21:25:50

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Identical mount resulting in different options

No idea. Only you know what you typed when you formatted them.

Offline

Board footer

Powered by FluxBB