sysctl command reports "No such file or directory" after adding kernel parameters
Issue
- Getting an error when executing
sysctl -p"sysctl: cannot stat /proc/sys/* : No such file or directory" After updating the kernel parameters insysctl.conf.
[root@localhost ~]# sysctl -p
sysctl: cannot stat /proc/sys/tcp_keepalive_probes: No such file or directory
sysctl: cannot stat /proc/sys/tcp_keepalive_intvl: No such file or directory
sysctl: cannot stat /proc/sys/tcp_retries2: No such file or directory
sysctl: cannot stat /proc/sys/icmp_echo_ignore_broadcasts: No such file or directory
sysctl: cannot stat /proc/sys/icmp_echo_ignore_broadcasts: No such file or directory
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.