1835661 Members
3219 Online
110082 Solutions
New Discussion

Re: linux boot

 
SOLVED
Go to solution
tarek_3
Frequent Advisor

linux boot

hi
During linux boot and after enabling swap space, the system hang for more than 10 minutes, can any one explain why ?
Pease i need help
Regards
thx in advance
10 REPLIES 10
Alexander Chuzhoy
Honored Contributor

Re: linux boot

it could be many thing that aren't related to swap space.
Start with file system check for errors.
Then if didn't help - boot to single init
(see if there's something in /var/log/messages)
and try to disable services, while checking if it works.
Did you change some configuration file prior to that error message?
tarek_3
Frequent Advisor

Re: linux boot

hi
I installed drivers from smart start.
i installed this drivers on two identical servers (DL380) one of them will hing for some time after enable swap space.
is there any log file where can i find which service didn't start?
thx for yr reply
Alexander Chuzhoy
Honored Contributor

Re: linux boot

Messages are manupilated by syslog that is started as service also during boot.
Why don't you fsck to see if it helps?

tarek_3
Frequent Advisor

Re: linux boot

hi
fsck for what? i thing it is a service problem, but i need to know which service
Regards
Ivan Ferreira
Honored Contributor
Solution

Re: linux boot

Normally this can be caused because a problem in your hostname/DNS configuration. Services can take a log time to start if the hostname of your machine does not have a entry in DNS or the hosts file. Sendmail/apache are good candidates to take a long time to start.

If you are using Red Hat or Fedora, disable the graphical boot. Remove the rhgb from the kernel boot options.

Also you can start in "Interactive" Mode by pressing I when prompted.

You can also start in single user mode and start the services in the right order as your runlevel dictates. To start in single user mode add the "single" option to your kernel boot options.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
George Liu_4
Trusted Contributor

Re: linux boot

wild guessing since you don't provide more information: disables rhgb in your grub.conf, i.e., change rhgb to norhgb, and reboot
tarek_3
Frequent Advisor

Re: linux boot

hi
thx for ur answers the problem is solved by adding thefollowing line to /etc/hosts
127.0.0.1 hostname localhost.localdomain localhost

but it seems that i have another problem, when i try to start any service (like vsftpd) from "service configuration" menu, the service configuration menu hang.the system still runnig without any problem excpt the service configuration menu
any one has any idea?
Ivan Ferreira
Honored Contributor

Re: linux boot

This is incorrect:

127.0.0.1 hostname localhost.localdomain localhost


The correct configuration is:

127.0.0.1 localhost.localdomain localhost
# Real host ip (eth0) - Full Host name - Short Host name
192.168.0.1 myhost.mydomain.com myhost

Try configuring like it that.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
tarek_3
Frequent Advisor

Re: linux boot

hi
i edit the file /etc/hosts
but i still have the problem of service configuration, i see this problem on many workstation with redhat 4,
whow can i fix it
Ivan Ferreira
Honored Contributor

Re: linux boot

Yes, I just tried and I have the same problem. I don't know why is this and debug is a problem because if you run strace it does too many calls.

I suggest you to use command line utilities that always work and are faster:

chkconfig: To enable disable services at startup, for example:

chkconfig vsftpd on
chkconfig vsftpd off

service: To start and stop services, for example:

service vsftpd start
service vsftpd stop
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?