LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-01-2016, 11:06 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,126

Rep: Reputation: 47
CentOS 6.8 Kernel 2.6.32-642 SLOW to boot


I recently had to add a bunch of 3rd party repos in order to be able to burn MP3s so that may potentially have caused a non standard configuration when I did a system update. That's why I mentioned kernel in case that's not the typical one that ships with 6.8.

The issue I have is when I first turn it on, it just sits at the splash screen for ever. If I hit esc to see progress I just see a blinking cursor. Eventually it goes to "starting udev" then it sits there for a long time too. The whole process takes about 5-10 minutes.

Is there a way to speed it up? This is a machine that will be sorta a server but also used as a desktop, in a sound room environment. So someone needs to be able to come up to it, turn it on and use it right away. Not after the show is over. It's in a church environment so may get a few hours we week of usage so no point in leaving it on.

Anything I can do to make it boot faster? I'm thinking SSD, but I have a feeling that won't help much, this is simply too slow even for a HDD.
 
Old 09-02-2016, 08:49 AM   #2
kernel-of-truth
LQ Newbie
 
Registered: Sep 2016
Distribution: 80% rhel/centos, 20% ubuntu server
Posts: 4

Rep: Reputation: Disabled
Detailed Look at the Boot Process
→ vim -R /var/log/messages
→ sysklogd has a DEBUG option.

→ I'd also do a minimal install (CentOS-6.8-x86_64-minimal.iso) within a virtual machine, and use the 'linux text' mode installer, not the GUI.
→ When prompted to select packages, I clear the default (Gnome Desktop), tab down to “Customize software Selection,” and do a bare bones install.
Gets the install up and running fast
Allows me to use yum to selectively install packages and observe the outcome.
→ I'd start with installing a command-line burner (keep it simple at first).
→ I'd perform a 'yum update' after installing packages. It usually reports, "no packages marked for update" but there have been a few occasions where 'yum update' solved my issue (v6.8, 64-bit install).

Do you have mounts established with windows hosts (cifs, samba)? For me, mounting to windows NTFS via CIFS, causes my system to delay during shutdown.

L
 
Old 09-02-2016, 02:00 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,126

Original Poster
Rep: Reputation: 47
I don't really want to reinstall though. I mostly have it setup how I want, like the raid array mounts on startup etc. It's just so slow to boot. I know a reinstall would fix it as that tends to fix issues, but I'm hoping to avoid that.

The only mounts are local (md raid), as this is not a networked machine. That's why I really don't want to reinstall, I have it all properly setup so stuff comes up at startup etc, which is always a pain to setup as it seems to be a new story each time where some stuff won't start properly etc.
 
Old 09-02-2016, 02:51 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,412

Rep: Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589
Quote:
I recently had to add a bunch of 3rd party repos in order to be able to burn MP3s
not a great idea as you know .

did you install and CONFIGURE the yum priorities plugin ?
as per the warning on the cent wiki
and WHAT repos ?
some of them ARE incompatible with others

that extreme boot time is something timing out (350 seconds )
what is in the system logs and the boot.log ?????
the error will be there
 
Old 09-02-2016, 03:25 PM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,126

Original Poster
Rep: Reputation: 47
Yeah I hate installing 3rd party repos but did not really know what else to do as the package I needed was not in the main repos. Was getting an error in K3B that it can't accept MP3, and found that you have to install a separate package, and it was not in the repos. Don't really want to install from source when the rest is through repos either, as the packages might not "see" each other, being installed in different ways. So I found a repo on the official CentOS site that was geared towards multimedia. I can't recall the name, but looking at my command line history, the file name was called nux-dextop-release-0-2.el6.nux.noarch.rpm. Not sure if that helps at all.

Not sure about priorities, never heard of a way to set that. I guess now that I got the package I want I can probably get rid of the 3rd party repo, any way to revert everything except for that one package I needed? I'm not even sure if the 3rd party repo is why the system is acting up though, but it is a variable. How do you remove a repo that was installed through an RPM?

I just checked boot.log but it does not help much as it starts at "starting udev" and the real slow down is before that. That part is slow too but it's tolerable. (like maybe 5-10 seconds).

I read something about sometimes the kernel ends up being spread in multiple chunks on the hard drive but can't see why it would be THAT slow. Is there a way to defragment that?

Any other logs I might be able to look at?

Last edited by Red Squirrel; 09-02-2016 at 03:35 PM.
 
Old 09-02-2016, 04:16 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,412

Rep: Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589Reputation: 2589
the repos section of the wiki
https://wiki.centos.org/AdditionalRe...s/Repositories
has a link to the yum plugin
-- under the "third party repos - WARNING
https://wiki.centos.org/PackageManag...Yum/Priorities

the "nux" repo ALSO!!! requires using the EPEL repo used
 
Old 09-02-2016, 05:13 PM   #7
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,126

Original Poster
Rep: Reputation: 47
I think I figured out the issue, but still need to know a fix. If I disconnect the cdrom drive, then it boots right away. I realized that in grub there's different kernels I can pick to boot from and tried different ones with same result. So I don't think it has anything to do with repos, I just happened to install this drive at same time since I realized the one that was in there was IDE and not connected so swapped it with a sata one I had lying around. (no IDE on that motherboard)
 
Old 09-02-2016, 05:19 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: Slackware®
Posts: 13,312
Blog Entries: 30

Rep: Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524Reputation: 2524
Moderator response

Moved: This thread is more suitable in <CentOS> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 09-02-2016, 06:30 PM   #9
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,126

Original Poster
Rep: Reputation: 47
Ok so upon more googling I found a fix. I found that if you remove the "rhgb" flag in the kernel flags in /etc/grub.conf you get more output. There was an error having to do with IRQ 19, so when I googled that I found that if you add the irqfix flag it fixes it, and it worked!

As far as I know everything works including the cdrom drive and network. Internet is not working though... but think that's DNS related, won't bother to fix that since the IP addressing is different on the network I'll be connecting it to, and there's no internet there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is it possible to slow down the kernel boot process ? Mike Davies Linux - General 4 02-08-2011 04:10 PM
Slow kernel boot alienDog Zenwalk 5 03-10-2007 07:25 PM
Boot problem with Smart Array 642 (cciss) eescar SUSE / openSUSE 5 11-17-2004 10:44 AM
random boot with proliant ml350 and Smart Array 642 eescar Linux - Software 1 11-17-2004 04:05 AM
4 questions. slow boot + kernel compile xushi Slackware 15 10-03-2004 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration