-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix disable swap failed in Centos/RHEL 7 #10751
Fix disable swap failed in Centos/RHEL 7 #10751
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yankay The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Did you find out which version of systemd changed that ? |
Hi @VannTen The systemds version is 219.
Because the Centos 7 is still widely used, the swap disable is important to Kubernetes. Would you please give a lgtm to this PR :-) |
/lgtm Happens with lvm, but probably without it as well. |
@VannTen , Thank you for the PR review :-) |
What type of PR is this?
What this PR does / why we need it:
After #10587 , the swap cannot be disabled in Centos/RHEL 7.
After some investigating, the swap cannot be disabled by
systemctl mask swap.target
in this os. And it should be disabled by modify the/etc/fstab
according to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/s1-swap-removingWhich issue(s) this PR fixes:
Fixes #10741
Fixes #10581
Special notes for your reviewer:
Does this PR introduce a user-facing change?: