[SOLVED] Linux hung_task_timeout_sec | Password prompt take so long to appear
[SOLVED] Linux hung_task_timeout_sec | Password prompt take so long to appear :
"hung_task_timeout_sec"
"Password prompt take so long to appear"
"login timed out after 60 seconds"
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
This "hung_task" error due to changes made in server like "DB, APP or Antivirus software"
Se we have to identify what changes done before showing error.
[SOLVED] Linux hung_task_timeout_sec | Password prompt take so long to appear:
1- Boot the system from installation boot CD-ROM / mounted ISO image
2- Enter to OS using maintenance mode
3- Give root password at "give root password for maintenance or press ctrl+d to continue"
Step 1:
# echo 0 > /proc/sys/kernel/hung_task_timeout_secs
# sysctl -p
or
#vi /etc/sysctl.conf
add below two lines
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
# init 6
Enter user name and it will ask for password.
Step 2:
ERROR:"login timed out after 60 secondes"
Here we have to identify which server making my server busy and disable that service.
For RHEL 6
#chkconfig --list
or
#chkconfig --list | grep $(runlevel | awk '{print $2}'):on
#chkconfig <service name> off
For RHEl 7
#systemctl list-units --type service
#systemctl list-units --type service --all
# systemctl is active <Service Name>
# systemctl disable <Service Name>
# init 6
Done - Server will boot normally
"hung_task_timeout_sec"
"Password prompt take so long to appear"
"login timed out after 60 seconds"
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
This "hung_task" error due to changes made in server like "DB, APP or Antivirus software"
Se we have to identify what changes done before showing error.
[SOLVED] Linux hung_task_timeout_sec | Password prompt take so long to appear:
1- Boot the system from installation boot CD-ROM / mounted ISO image
2- Enter to OS using maintenance mode
3- Give root password at "give root password for maintenance or press ctrl+d to continue"
Step 1:
# echo 0 > /proc/sys/kernel/hung_task_timeout_secs
# sysctl -p
or
#vi /etc/sysctl.conf
add below two lines
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
# init 6
Enter user name and it will ask for password.
Step 2:
ERROR:"login timed out after 60 secondes"
Here we have to identify which server making my server busy and disable that service.
For RHEL 6
#chkconfig --list
or
#chkconfig --list | grep $(runlevel | awk '{print $2}'):on
#chkconfig <service name> off
For RHEl 7
#systemctl list-units --type service
#systemctl list-units --type service --all
# systemctl is active <Service Name>
# systemctl disable <Service Name>
# init 6
Done - Server will boot normally
Comments
Post a Comment