Re: [Vserver] Guest OS Stops Responding After Hours Of Working

From: Michael S. Zick <mszick_at_morethan.org>
Date: Sat 14 Jan 2006 - 14:47:56 GMT
Message-Id: <200601140847.57001.mszick@morethan.org>

On Fri January 13 2006 18:19, John Alberts wrote:
> Hi all. I'm using vserver on a Gentoo machine. I originally tried to get
> some help on the gentoo-vserver irc channel; however, I think we must all
> have opposite schedules.
>
> Anyway, I am using Gentoo for my host machine and also Gentoo as the guest
> os. The guest os runs Apache2 and MySQL and it works well for a while (5, 6
> hours). After a while I am unable to connect to the guest os. From the
> host os, I can reach the guest os (ping, browse web page using links, etc),
> but not from outside the host os. If I go into the guest os using vserver
> myguest enter, the only fqdn i can ping is the one for the host os the is in
> my hosts file. No other fqdn's work.
>
Is DNS accessible on both nic cablings?
Could be the resolver is trying the nic/cable setup that does not reach
any name server.

> If I ping a known working ip address,
> everything starts working again! I have no idea what this means or how to
> fix it. As a temporary solution, just to keep my guest os working, I put a
> cron job that pings 2 different servers every half hour.
> I think it's probably a routing problem, but I'm not sure what to do. My
> host has 2 gigabit nics, both on the same subnet.
>
> Here is my ifconfig -a and route from my host os: (route hangs a while and
> then finally prints the output below)
>
The delay in route response is probably DNS lookup time (failing and retrying)
See if there is a difference in: "route " and "route -n"

See below
> -----------
> ifconfig -a
>
> route
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 205.215.68.0 * 255.255.255.0 U 0 0 0 eth0
> 205.215.68.0 * 255.255.255.0 U 0 0 0 eth1
> loopback * 255.0.0.0 U 0 0 0 lo
> default 205.215.68.254 0.0.0.0 UG 0 0 0 eth0
> default 205.215.68.254 0.0.0.0 UG 0 0 0 eth1
>
Note there is no name resolution for names not in '/etc/hosts'

 
> --------
>
> Here is the ifconfig -a and route from inside my guest os:
> ----------
> ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FE
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:929890 errors:0 dropped:0 overruns:0 frame:0
> TX packets:981291 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:256023685 (244.1 Mb) TX bytes:1085603257 (1035.3 Mb)
> Base address:0xecc0 Memory:df9e0000-dfa00000
>
> eth0:100 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FE
> inet addr:205.215.68.100 Bcast:205.215.68.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:929890 errors:0 dropped:0 overruns:0 frame:0
> TX packets:981291 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:256023685 (244.1 Mb) TX bytes:1085603257 (1035.3 Mb)
> Base address:0xecc0 Memory:df9e0000-dfa00000
>
> route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 205.215.68.0 * 255.255.255.0 U 0 0 0 eth0
> 205.215.68.0 * 255.255.255.0 U 0 0 0 *
> loopback * 255.0.0.0 U 0 0 0 *
> default 205.215.68.254 0.0.0.0 UG 0 0 0 eth0
> default * 0.0.0.0 UG 0 0 0 *
> --------------
>
Same here.

What is the search order in /etc/host.conf?
What name services in /etc/resolv.conf?
What are the service providers for 'hosts:' in /etc/nsswitch.conf
Duh...
Which libc version is handling the above?

Mike

> Thanks in advance for any help.
>
> John
>
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Jan 14 14:48:26 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 14 Jan 2006 - 14:48:31 GMT by hypermail 2.1.8