Re: [vserver] vserver won't start properly

From: andy baxter <andy_at_earthsong.free-online.co.uk>
Date: Thu 09 Dec 2010 - 17:30:42 GMT
Message-ID: <4D011242.6070301@earthsong.free-online.co.uk>

On 09/12/10 17:22, Michael wrote:
>
>
> On Fri, Dec 10, 2010 at 6:10 AM, andy baxter
> <andy@earthsong.free-online.co.uk
> <mailto:andy@earthsong.free-online.co.uk>> wrote:
>
> Hi,
>
> I have set up a couple of vservers on my debian stable machine,
> both running ubuntu lucid. The first one, dolphin, has been
> running nicely for a while. I built a copy of it (using the rsync
> method to 'vserver build'), and changed the hostname to make
> another vserver, alien. Yesterday I managed to get alien to start
> up, and it was working fine with apache / php / mysql running on
> it and the network being routed on the host machine. Today there
> was a power interruption and now it won't start up - when I do
> 'vserver alien start', it boots up to a certain point with a few
> processes running, but most of the services don't start up.
>
> This is 'ps ax' on the vserver:
>
> root@whale:/# ps ax
> PID TTY STAT TIME COMMAND
> 1 ? Ss 0:00 /sbin/init
> 3876 ? Ss 0:00 /bin/sh -e /proc/self/fd/9
> 3897 ? S 0:00 initctl emit local-filesystems
> 3915 ? Ss 0:00 dbus-daemon --system --fork
> 3973 ? R+ 0:00 login
> 4006 pts/2 Ss 0:00 /bin/bash -login
> 4019 pts/2 R+ 0:00 ps ax
>
> This is 'vserver alien status' on the host:
>
> whale:/etc/aide# vserver alien status
> Vserver 'alien' is running at context '40003'
> Number of processes: 4
> Uptime: 00:14
>
> The other thing I find strange is that when I log into alien using
> either 'vserver enter 'or ssh (which was working yesterday but not
> today), the hostname in the terminal is reported as 'whale'.
>
> whale:/etc/aide# vserver alien enter
> root@whale:/# hostname
> whale
> root@whale:/# cat /etc/hostname
> alien
>
> Can anyone help with this?
>
> Thanks,
>
> andy baxter
>
>
> 1.! fsck on root nad guest filesystem for errors.
>
whale:/# fsck /dev/sda6
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sda6: clean, 43590/625856 files, 375913/2502115 blocks

(sda6 is mounted at /virt on the host, and the vservers are both in
subdirs of that)

> cat /etc/vservers/alien/name ?
> put alien there.
>
I have already done this and it still gives the wrong hostname:

whale:/etc/vservers/alien# cat /etc/vservers/alien/name
alien

> what about your old copy? Is it working fine?

Yes, everything started fine on that one.
Received on Thu Dec 9 17:31:33 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 09 Dec 2010 - 17:31:33 GMT by hypermail 2.1.8