Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fstrim.service prevents /home in a separate partition from being trimmed #824

Closed
tomgar opened this issue Jul 21, 2019 · 1 comment
Closed

Comments

@tomgar
Copy link

tomgar commented Jul 21, 2019

I have /home in a separate partition and I noticed checking the systemd journal that fstrim ignored my /home. After research, I found the fstrim.service file has a ProtectHome=yes value, which prevents fstrim from trimming it.

Once I added an override to set up ProtectHome=no, fstrim now sees my /home and trims it in every run.

karelzak added a commit that referenced this issue Jul 22, 2019
ProtectHome=yes makes /home inaccessible, but we need to open the
directories (mountpoints) read-only.

Addresses: #824
Signed-off-by: Karel Zak <kzak@redhat.com>
@karelzak
Copy link
Collaborator

Oh, good point. Thanks!

I think ProtectHome=read-only should be good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants