Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4217  / 1 Year ago, sun, december 4, 2022, 5:37:53

I have noticed that when I unplug the network cable, system waits about 100 seconds to configure the network, So I edited /etc/init/failsafe.conf and comment two wait() lines (thanks to tutorial here)



# Plymouth errors should not stop the script because we *must* reach
# the end of this script to avoid letting the system spin forever
# waiting on it to start.
$PLYMOUTH message --text="Waiting for network configuration..." || :
#sleep 40

$PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
#sleep 59
$PLYMOUTH message --text="Booting system without full network configuration..." || :


Then I grab a timer and start counting seconds of boot time, the odd thing is it takes 15 more seconds to boot a system with an unplugged network cable that a system with a plugged network cable. and most of the delay is in this line that appears on start up :



the disk driver for servername--vg-swap1 not ready


My home folder is encrypted and Ubuntu has been installed with LVM.



Maybe you say "so what harm can come from 15 more seconds of delay?" Well, I am configuring this server to be used in a traffic control system and in case of power failure the system should be back on its feet as soon as possible, so every second counts.



Thank you.


More From » 12.04

 Answers
7

Do you have eth0 set up to be automatic by DHCP? Look at /etc/network/interfaces (it's a file, not a folder)



If your entry looks something like this:



auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp


then that large delay is because your system is trying to run DHCP, even though the network cable is unplugged, which means it runs through all of the channels until it gets a response, which it never will because it's not plugged in, so it takes a while. If it's plugged in, this is much faster because it should get a DHCP offer fairly quickly.



That would be the best explanation I can think of.


[#31312] Monday, December 5, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
neasinient

Total Points: 491
Total Questions: 120
Total Answers: 93

Location: The Bahamas
Member since Mon, Aug 2, 2021
3 Years ago
;