OpenVZ Forum


Home » General » Support » SOLVED* Cloned but the mysqld timed out in cloned VE
SOLVED* Cloned but the mysqld timed out in cloned VE [message #8478] Mon, 20 November 2006 17:39 Go to next message
zenny
Messages: 48
Registered: November 2006
Member
The VEs were cloned in the same HN node, but the mysqld failed to initialize in cloned VE, but runs fine in the original VE. The problem is similar to http://www.centos.org/modules/newbb/viewtopic.php?topic_id=5 953 and also noted a bug report at http://bugs.centos.org/view.php?id=869

Did everything from changing the my.cnf file to reinstalling mysql mysql-server mysql-devel, yet the same error pops up in the cloned VEs alone. Please guide.

[Updated on: Mon, 20 November 2006 20:29]

Report message to a moderator

Re: VE Cloned but the mysqld timed out in cloned VE [message #8481 is a reply to message #8478] Mon, 20 November 2006 20:28 Go to previous messageGo to next message
zenny
Messages: 48
Registered: November 2006
Member
The problem is copying the VE using the cp with -r and -a flag which does not preserve the permssions and ownership of the files.

Therefore I did the following to copy.

#mkdir /vz/private/new_VEid
#cd /vz/private/old_VEID
#tar cf - * | ( cd /vz/private/new_VEid tar xfp -)
#cp old_VEID.conf new_VEID.conf

And it works smoothly.

Hope this input does not get hijacked as it happened with the clone VE in the openvz wiki. :/)

[Updated on: Tue, 21 November 2006 06:20]

Report message to a moderator

Re: SOLVED* Cloned but the mysqld timed out in cloned VE [message #8484 is a reply to message #8478] Mon, 20 November 2006 20:39 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

how did you clone it? did you stop mysql before cloning?
what exact errors do you have?


http://static.openvz.org/userbars/openvz-developer.png
Re: VE Cloned but the mysqld timed out in cloned VE [message #8485 is a reply to message #8481] Mon, 20 November 2006 20:42 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

I guess 'cp -a' should help as well.


http://static.openvz.org/userbars/openvz-developer.png
Re: SOLVED* Cloned but the mysqld timed out in cloned VE [message #8494 is a reply to message #8484] Tue, 21 November 2006 06:13 Go to previous message
zenny
Messages: 48
Registered: November 2006
Member
Dear dev:

Of course, the entire VE to be cloned needs to be stopped before cloning. So I did accordingly. cp -a and cp -r didn't help.

However the tar command as I said earlier helped and it worked flawlessly.

I am posting here it could be helpful to someone who encounters similar problem. All the best.
Previous Topic: SOLVED * Veth on startup (again) + bridge config - venet config
Next Topic: *SOLVED* Gateway problem
Goto Forum:
  


Current Time: Thu May 09 12:01:56 GMT 2024

Total time taken to generate the page: 0.01689 seconds