Booting takes hours in my centos 7

General support questions
Post Reply
Avu
Posts: 2
Joined: 2017/11/22 12:17:09

Booting takes hours in my centos 7

Post by Avu » 2017/11/22 12:42:48

Hey
I have recently installed cents 7 on my system. For a few days it was working preety good but now it has become unimaginably slow. Booting my PC takes several hours.
When I checked with command systemd-analyze blame it shows
1h 5min kdump.service
53 min systemd-tmpfiles-clean.service
23 min plymouth-quit-wait.service
These are the most time taking
Others then fall under 2 min
I have 16 GB ram

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Booting takes hours in my centos 7

Post by TrevorH » 2017/11/22 12:54:50

Are you sure you don't have hard disk problems? Or have you configured an authentication mechanism that needs to use the network to resolve usernames and the network is not up so it tries repeatedly to get there nad times out each time and retries? Check in /etc/nsswitch.conf for the users and groups methods configured.

kdump is pretty pointless to even have installed on CentOS unless you have the ability to analyze the resulting dump it takes - no-one else will care.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Avu
Posts: 2
Joined: 2017/11/22 12:17:09

Re: Booting takes hours in my centos 7

Post by Avu » 2017/11/22 13:12:45

What is the best way to check if i have issues in my hard disk. My system is not even a year old. I havent configured any such mechanism. Just a user name and password for login.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Booting takes hours in my centos 7

Post by TrevorH » 2017/11/22 13:19:59

Start by checking in your logs in /var/log
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Booting takes hours in my centos 7

Post by tunk » 2017/11/22 13:27:55

Running smartctl -a /dev/sdX (X=a,b,c..) should give you an indication of hard disk health.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Booting takes hours in my centos 7

Post by hunter86_bg » 2017/11/23 05:15:06

Can you try this:

Code: Select all

systemd-analyze plot > ~/plot.scv
Then open the file with a web browser.

Post Reply