sysctl command reports "No such file or directory" after adding kernel parameters

Solution Verified - Updated -

Issue

  • Getting an error when executing sysctl -p "sysctl: cannot stat /proc/sys/* : No such file or directory" After updating the kernel parameters in sysctl.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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content