LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-29-2012, 05:17 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 403

Rep: Reputation: 16
worker nodes want to boot faster from the server (!)


we have setup a diskless cluster where there is a server which run DHCP and there are some clients that receive an ip address from the server upon the boot.
The problem is, if the nodes (server + clients) restart unexpectedly (power plant problems), then the server will start dhcp service with delay because the fsck is running. At the mean time, the clients quickly pass the POST process and they want to get IP address from server. The server still has not started the DHCP service, so the clients stuck at the first step of network boot.

My questions:
1) is there any way to prioritize the services on server? For example, I want the DHCP to be the first service!!

2) Currently the clients wait for about 10 seconds to get an IP from server. I mean the | / - | \ progress bar. Is there any way to increase this short timeout?
 
Old 07-29-2012, 07:14 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
fsck runs at a lower level than a service like dhcp and MUCH earlier in the boot process ie specifically during the disk mount process.
You'll have to wait.
 
Old 07-30-2012, 11:18 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
What about a network controlled power outlet for the nodes. Hence, after the server is up, you can switch on the nodes from the server.

NB: Do you have any message on the monitor for the BIOS of the network card? In this menu for the network card, you could try to adjust to reboot if there is no response instead of falling to the next boot option (this is not possible with all cards though).
 
Old 08-01-2012, 04:38 AM   #4
mahmoodn
Member
 
Registered: May 2010
Posts: 403

Original Poster
Rep: Reputation: 16
Quote:
fsck runs at a lower level than a service like dhcp and MUCH earlier in the boot process ie specifically during the disk mount process.
You'll have to wait.
What about changing the S numbers in /etc/rcX.d/ to change the priority?

Quote:
NB: Do you have any message on the monitor for the BIOS of the network card? In this menu for the network card, you could try to adjust to reboot if there is no response instead of falling to the next boot option (this is not possible with all cards though).
no
 
Old 08-01-2012, 12:02 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Your setup is buggy

Your clients have to wait; you need to switch your clients on once the server is up (as indicated by Reuti). I don't expect that the startup sequence will make a serious difference for your problem.
 
Old 08-01-2012, 08:44 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
You need to read up on the boot process, as your suggestion in post#4 makes no sense.
fsck runs BEFORE the disks are mounted; no way you can run a service until the code it depends upon is available from the disk being mounted.
 
Old 08-02-2012, 04:10 AM   #7
mahmoodn
Member
 
Registered: May 2010
Posts: 403

Original Poster
Rep: Reputation: 16
Currently all nodes (clients and server) are plugged in power source. So in case of power problems and recovery, all nodes start at the same time.
What I understand from your replies, is that adding an external device to delay the power current for the clients. Right?
Something like this:

power source -> server
power source -> delay circuit -> clients
 
Old 08-02-2012, 04:20 AM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Yes

And the nicest solution would be if you don't use a delay circuit but a device controlled by the server (serial port, network); once the server has brought up the dhcp daemon, it can start a process to control that device to power on the clients.

Last edited by Wim Sturkenboom; 08-02-2012 at 04:22 AM.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"udev worker did not accept message" error on boot Dell Mini 9 frankbell Linux - Laptop and Netbook 2 10-28-2010 08:47 PM
[SOLVED] Warning worker http://192.168.1.5/ already used by another worker Apache problem tkmsr Linux - Server 2 06-30-2010 06:37 AM
LXer: Linux 2.6.30 Gets Faster Boot - but is Fedora Faster? LXer Syndicated Linux News 0 06-11-2009 04:40 AM
Pinging All the Nodes Connected to the Server Hi_This_is_Dev Linux - Newbie 1 05-15-2009 09:43 AM
How to boot Mandrake Linux faster (skip boot option) lava Linux - General 7 02-28-2003 02:39 PM


All times are GMT -5. The time now is 07:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration