Troubleshoot – ExpLinux https://www.explinux.com Explore Linux How to, Tutorials, Unix, Updates, Technology. Tue, 18 May 2021 12:22:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.explinux.com/wp-content/uploads/2023/04/cropped-favicon-32x32-1-32x32.png Troubleshoot – ExpLinux https://www.explinux.com 32 32 How to disable EEE feature on the nic on RHEL7-8/Centos7-8 https://www.explinux.com/2021/01/how-to-disable-eee-feature-on-the-nic-on-rhel7-8-centos7-8.html https://www.explinux.com/2021/01/how-to-disable-eee-feature-on-the-nic-on-rhel7-8-centos7-8.html#respond Tue, 19 Jan 2021 07:25:00 +0000 How to disable EEE feature on the nic on RHEL7-8/Centos7-8 Read More »

]]>
 

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • CentOS 7
  • CentOS 8

Issue

  • Would like to disable the (Energy Efficient Ethernet) EEE feature of the NIC.

Resolution

  • To disable EEE use the ethtool command. In the example below, EEE is disabled on eth0:
# ethtool --set-eee eth0 eee off
  • To make this change persist across reboots, please add the ETHTOOL_OPTS parameter to the interface’s interface configuration file found in the /etc/sysconfig/network-scripts/ directory. For example:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:21:97:2E:EE:77
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
ETHTOOL_OPTS="--set-eee ${DEVICE} eee off"

Diagnostic Steps

  • The ethtool command option –show-eee will display the current status of EEE:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# ethtool --show-eee eth0
EEE Settings for eth0:
EEE status: enabled - inactive
Tx LPI: 0 (us)
Supported EEE link modes: 100baseT/Full
1000baseT/Full
Advertised EEE link modes: 100baseT/Full
1000baseT/Full
Link partner advertised EEE link modes: Not reported
]]>
https://www.explinux.com/2021/01/how-to-disable-eee-feature-on-the-nic-on-rhel7-8-centos7-8.html/feed 0
RHEL 7 Slow Login – Delay in SSH login https://www.explinux.com/2020/11/rhel-7-slow-login-delay-in-ssh-login.html https://www.explinux.com/2020/11/rhel-7-slow-login-delay-in-ssh-login.html#comments Sat, 14 Nov 2020 01:38:00 +0000 https://explinux.online/2020/11/14/rhel-7-slow-login-delay-in-ssh-login/ RHEL 7 Slow Login – Delay in SSH login Read More »

]]>

RHEL 7 Slow Login%2B %2BDelay in SSH login Centos 7


RHEL 7 Slow Login – Delay in SSH login 

Why does it take a long time to get on login prompt after successful authentication with ssh with correct credentials?

ISSUE:

  • It takes more than 20 sec to login with ssh
  • Delay happens after successful login authentication 
  • you find below error message in /var/log/secure 
sshd[19312]: pam_systemd(sshd:session): Failed to create session: Connection timed out

RCA:

  • pam_systemd create CreateSession method in systemd-logind via DBus, and this means systemd-logind is unable to reply pam_systemd.
  • Sometimes the machine gets stuck or hangs during boot or due to high load.
  • ‘systemd-logind’ following output error meaning, meaning that some directories have incorrect permission.
systemd-logind[681]: Failed to save session data /run/systemd/sessions/28: File exists
systemd-logind[681]: Failed to save user data /run/systemd/users/0: File exists

How To Fix This Login Delay in SSH:

  1. Check the permission of the below directories this should be 755, If not then fix it.
  • /run/user
  • /run/systemd/users
  • /run/systemd/sessions
After the above status if the issue not fixes then we have to restart the below services step by step to resolve this issue.

1. You have to reload the system login based daemon

 # systemctl daemon-reload

2. Check the health status of the inter-process communication daemon
# systemctl status dbus.service
# systemctl status polkit.service 
3. If the dbus and polkit service is not running then you will start the first polkit service then we will start the dbus service. Please make sure this will start in the same order.

# systemctl start polkit.service
# systemctl start dbus.service
4. In the last step we have to restart the systemd-logind service

 # systemctl restart systemd-logind

 
That’s it, now you have successfully fixed the issue. This is in the case when you have sufficient space in the root partition and load if optimal. If you have both issues then you have to fix them first. 
Now you have added one more troubleshoot option in your skill.

Share the article if it helps you !!!

]]>
https://www.explinux.com/2020/11/rhel-7-slow-login-delay-in-ssh-login.html/feed 29