Skip to content

Relatime is always turned on temporarily on ZFS root. #7947

Closed
@crocket

Description

@crocket

System information

Type Version/Name
Distribution Name Gentoo
Distribution Version None
Linux Kernel 4.14.65-gentoo
Architecture x86_64
ZFS Version 0.7.11-r0-gentoo
SPL Version 0.7.11-r0-gentoo

Describe the problem you're observing

I want to apply noatime to every single mount, but / is resisting my will.

$ findmnt | grep zfs
/                             os/ROOT/gentoo    zfs         rw,relatime,xattr,noacl
├─/home                       os/HOME           zfs         rw,noatime,xattr,noacl
├─/mnt/data                   user-data/data    zfs         rw,noatime,xattr,posixacl
├─/root                       os/HOME/root      zfs         rw,noatime,xattr,noacl
├─/usr/portage                os/GENTOO/portage zfs         rw,nosuid,noatime,xattr,noacl
$ cat /proc/mounts | grep zfs
os/ROOT/gentoo / zfs rw,relatime,xattr,noacl 0 0
os/HOME /home zfs rw,noatime,xattr,noacl 0 0
user-data/data /mnt/data zfs rw,noatime,xattr,posixacl 0 0
os/HOME/root /root zfs rw,noatime,xattr,noacl 0 0
os/GENTOO/portage /usr/portage zfs rw,nosuid,noatime,xattr,noacl 0 0
$ /sbin/zfs get all os/ROOT/gentoo | grep time
os/ROOT/gentoo  atime                 off                    inherited from os
os/ROOT/gentoo  relatime              on                     temporary
$ cat /etc/fstab
PARTUUID="e271ef53-7377-0545-9f0e-8467fafd1202" none swap sw 0 0
PARTUUID="d5179cfd-ea96-4183-8c0b-9ffc20a9b990" none swap sw 0 0
tmpfs /var/tmp/portage tmpfs size=14G,uid=portage,gid=portage,mode=775,noatime 0 0
tmpfs /tmp tmpfs size=8G,mode=1777,noatime 0 0
PARTUUID="7e95e77c-f08c-f34d-a2d3-9d540ff191c4" /boot btrfs rw,noatime,discard 0 0
PARTUUID="17485930-4257-41fc-bc1a-5921ea09c2a4" /boot/efi vfat rw,noatime,discard 0 0
$ /sbin/zfs list
NAME                           USED  AVAIL  REFER  MOUNTPOINT
os                            63.7G  46.7G    96K  none
os/GENTOO                     33.4G  46.7G    96K  none
os/GENTOO/portage             33.4G  46.7G  33.4G  /usr/portage
os/HOME                       20.9G  46.7G  19.8G  /home
os/HOME/root                  23.5M  46.7G  23.5M  /root
os/ROOT                       9.41G  46.7G    96K  none
os/ROOT/gentoo                9.41G  46.7G  9.41G  /
user-data                     1.23T  1.40T    96K  none
user-data/data                1.23T  1.40T  1.22T  /mnt/data

Describe how to reproduce the problem

Install root on a dataset, and set bootfs to that dataset. grub-mkconfig will take care of the rest.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions