Aha, the root of all evil.
Whats happening here is that vsd-install.pl uses the `hostname` command
to set up the self-hosting configuration, which calls the interface
'chiefwigham', which it is quite right, however, the C call
gethostbyname returns chiefwigham.office.fubra which is also correct.
Now, when you call vsdadm with chiefwigham specified as the hosting
server, vsd recognises that it has a server call chiefwigham registered,
but when it compares the name supplied with the name of the machine it
is running on, it notices that they are different, and therefore doesn't
allow the vs_create command to be executed, returning the 'No such
command' error. Whne you supply chiefwigham.office.fubra as the hosting
server, it then knows that it is running on itself, but can't find a
configuration section for chiefwigham.office.fubra, and therefore
returns the 'virtual server doesnt exist'. (Sorry if that doesn't make
sense, I though I'd try and give a bit of background to help understand
the problem.)
Anyway, in you're case, changing /etc/hosts to:
192.168.0.4 chiefwigham chiefwigham.office.fubra localhost
127.0.0.l chiefwigham
should then make it all work, and call vsdadm with chiefwigham as the
hosting server (C returns the first name defined, hostname returns the
shortest name, make the two the same and all will work (either FQDN the
first and shortest, or the shortest the first)). The best way to check
for all cases is to look in etc/vsd/vsd.conf, and rearrange /etc/hosts
so that the name given to the first VirtualServer definition is the
first name specified in /etc/hosts (I think.).
I hope that some of this makes sense, I think I've confused myself now.
Damion.
Damion Parry wrote:
>
> And what about your /etc/hosts file?
>
> Damion.
>
> Ben Kennish wrote:
> >
> > It's not this. Doing chiefwigham.office.fubra gives -ERR virtual server
> > doesnt exist.
> >
> > Doing chiefwigham gives this "No Such Command".
> >
> > "hostname" gives "chiefwigham" and there is a /home/vsd/vs/chiefwigham
> > sym link.
> >
> > Cheers,
> >
> > --
> > Ben Kennish
> >
> > e: [EMAIL PROTECTED]
> > w: www.fubra.com
> >
> > Damion Parry wrote:
> > >
> > > Hello,
> > >
> > > This could be a problem associated with the hostname of the machine, as
> > > a result of the 'self-hosting' functionality you need to enter the full
> > > name of the hosting server (that returned by the `hostname` command). If
> > > `hostname` returns 'chiefwigham' instead of 'chiefwigham.fubra.net' (for
> > > example) then it is a result of having chiefwigham before
> > > chiefwigham.fubra.net in the /etc/hosts file. In which case, you'll need
> > > to swap the two entries round (put chiefwigham.fubra.net before
> > > chiefwigham).
> > >
> > > If that doesn't solve the problem, let us know and I'll have a propper
> > > look.
> > > Damion.
> > >
> > > Ben Kennish wrote:
> > > >
> > > > Does anyone get "No Such command" when doing "vsdadm vs_create"..
> > > >
> > > > e.g.
> > > >
> > > > vsdadm vs_create chiefwigham vsone 192.168.0.66 vsone.office.fubra 200
> > > > 1000 default
> > > >
> > > > Doing "vsdadm vs_create ?" gives the syntax.
> > > >
> > > > Any ideas?
> > > >
> > > > Cheers,
> > > >
> > > > --
> > > > Ben Kennish
> > > >
> > > > e: [EMAIL PROTECTED]
> > > > w: www.fubra.com