| CentOS 4.5 ssh/console fails on openvz. [message #5728] |
Sun, 27 May 2007 13:31  |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
People who have updated their centOS4.4 to 4.5 seemed to run into a major problem with their vps rendered nearly inaccssible with both ssh and console failing. The reason is the switch to udev, which removed the static dev files, which is how openvz VPSes are configured. The solution:
vzctl stop bad-vpsid
mv /vz/private/bad-vpsid/dev /vz/private/bad-vpsid/dev.disabled
cp -a /vz/private/good-vpsid/dev /vz/private/bad-vpsid
vzctl start bad-vpsid
Good-vpsid is a vps running centos-4.4. You can create a fresh vps using one of the centos-4 ostemplates to get a working centos-4.4 vps to copy the '/dev' from.
Thanks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: CentOS 4.5 ssh/console fails on openvz. [message #7394 is a reply to message #7392] |
Tue, 26 June 2007 11:47   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
>
> Hello,
>
> I understand.
>
> I created VM witch CENTOS4 and started install cpanel. Have error.
>
> I created other vm witch centos4 and copyed /dev of new vm for old vm. Install of cpanel is Ok.
>
> Cpanel damaged /dev ???
|
yes. That's it. It is not cpanel, but rather the updation, that installs udev.
Thanks.
|
|
|
|
|
|
| Re: CentOS 4.5 ssh/console fails on openvz. [message #8414 is a reply to message #8412] |
Fri, 13 July 2007 23:40   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Yes. That will indeed do. Please create another thread with this hyperVM howto forum itself, and I will make it sticky.
Thanks.
| Quote: |
>
>
> I've found an workaround so that the yum don't delete the /dev, and also don't mess another things.
> I've look in forums and this seems to be a recurrent problem when updating centos. (4.2->4.3 , 4.3->4.4 amd so on)
>
> So what i did was after instaling the HIB23 ostemplate, I edited the /etc/yum.conf and added the following line:
>
>
> exclude=udev kernel* mkinitrd module-init-tools MAKEDEV
>
>
> and then did the normal:
>
> # yum check-update
> # yum -y update
>
>
> My VPS was updated from centos4.4 to centos4.5
> Rebooted and my sshd was still OK :)
>
> I hope this helps ;)
> Pedro Carvalho
|
|
|
|
|
| Re: CentOS 4.5 ssh/console fails on openvz. [message #10602 is a reply to message #9260] |
Sat, 11 August 2007 23:08  |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
The fix is now built into hyperVM. Go to vps home -> fix centos 4.5 dev
Thanks for everyone's input.
On Wed, Jul 25, 2007 at 11:59:46AM -0000, Pedro Carvalho wrote:
>
>
>
> I've cerated the a thread called "HOWTO Upgrade a CentOS VPS" [message #9259]
> Is it ok?
> Sorry for the delay ;)
>
> BR,
> Pedro Carvalho
|
|
|