[BlueOnyx:11819] Re: /etc/hosts

Ken - Precision Web Hosting, Inc kenlists at precisionweb.net
Mon Dec 17 14:13:46 -05 2012


----- Original Message ----- 
From: "Christoph Schneeberger" <cschnee at box.telemedia.ch>
To: <blueonyx at mail.blueonyx.it>
Sent: Monday, December 17, 2012 12:37 AM
Subject: [BlueOnyx:11808] Re: /etc/hosts


> Ken, Steffan,
>
> Sorry for my late reply. There are 2 parts in the hostfile, each being
> modified by another piece of code. My own problems on VPS lie mostly
> within the part that parses ifconfig (the part with "### Begin - Nuonce
> hosts Fix" in the hosts file), the responsible script for this is
> /usr/sausalito/constructor/base/vsite/fixhosts .
> However the part that messes it up for you seems to come from the script 
> at
> /usr/sausalito/handlers/base/network/etchosts.pl .
> This script uses only values from CODB, so it seems that the old IP you
> see is buried somewhere in CODB and results in the wrong results in
> hosts file.
>
> Beside checking the GUI for i.e. Sites that still have the old IP and
> removing them to make sure CODB looses the old IP I can only give the
> following workaround until somebody with more and deeper knowledge of
> CODB chimes in:
>
> Fix the hosts file in question based on a working template from another
> VPS. Once you saved it corrected and hostname -f returns what you think
> it should lock the file against being recreated or modified with the
> following command:
>
> chattr +i /etc/hosts
>
> Now you can safely reboot without loosing your corrected host settings,
> it will result in a few errors on startup but will work fine.
>
> Once there is a fix or you want to make the hosts file writable again,
> just use
>
> chattr -i /etc/hosts
>
>
> Sorry for not being of more help, but this should help you at least to
> feel a bit more comfortable for the season holidays ;-)
>
> Hth,
> Christoph
>
> On 12/14/2012 10:57 AM, Steffan wrote:
>> Its Aventurin   running BO vps Solarspeed special 5106  (5107 doesnt have
>> this problem)
>>
>> # Auto-generated file.  Keep your customizations at the bottom of this 
>> file.
>> 127.0.0.1       localhost localhost.localdomain
>> OLD IP           server7.tkservers.com server7-venet0:0.xxxxxx.com
>> server7-venet0:0
>> #END of auto-generated code.  Customize beneath this line.
>>
>> 127.0.0.1 localhost.localdomain localhost server7.tkservers.com #
>> Auto-generated hostname. Please do not remove this comment.
>> OLD IP server7.xxxx.com  server7 server7-venet0:0.xxxx.com
>> server7-venet0:0 #
>> ## Begin - Nuonce hosts Fix
>> 127.0.0.1      server7.xxxx
>> 127.0.0.1       server7.xxxxx
>> NEW IP    server7.xxxxx
>> ###  End  - Nuonce hosts Fix
>>
>> -----Oorspronkelijk bericht-----
>> Van: blueonyx-bounces at mail.blueonyx.it
>> [mailto:blueonyx-bounces at mail.blueonyx.it] Namens Christoph Schneeberger
>> Verzonden: donderdag 13 december 2012 23:03
>> Aan: BlueOnyx General Mailing List
>> Onderwerp: [BlueOnyx:11799] Re: /etc/hosts
>>
>> On 12/13/2012 07:57 PM, Ken - Precision Web Hosting, Inc wrote:
>>> ----- Original Message -----
>>> From: "Steffan" <mailinglist at tikklik.nl>
>>> To: "'BlueOnyx General Mailing List'" <blueonyx at mail.blueonyx.it>
>>> Sent: Wednesday, December 12, 2012 4:36 AM
>>> Subject: [BlueOnyx:11782] /etc/hosts
>>>
>>>
>>>> Hello,
>>>>
>>>> Im moving virtual servers to a new NOC.
>>>> So the ips are changed
>>>> But when looking at /etc/hosts the old ip is listed in it.
>>>> If i change it and reboot theold ip is put back.
>>>>
>>>> So how can i fix the ip in /etc/hosts
>>>>
>>>> Thanxs
>>>>
>>>> Steffan
>>>>
>>>>
>>> I see that also. The new IP is there, but the old IP gets put back in
>>> that file also.
>>> I delete it, and it comes back.
>>>
>>> This is also a VPS.
>>>
>>>
>> Could one of you post the contents of your hosts file ? And also the
>> BlueOnyx version and the virtualization software they use ?
>>
>> Christoph
>
>


Christoph

Thanks for your reply.

Using
cd /usr/sausalito
grep -r 209.112 *
I did find a location that had that IP at
/usr/sausalito/codb/objects/5/.ipaddr
I manually changed that now.

And at
/usr/sausalito/codb/objects/3/VsiteDefaults.ipaddr
I changed that in the GUI.

Thanks!

Ken Marcus





More information about the Blueonyx mailing list