OpenVZ Forum


Home » General » Support » How to enter a "Not Running Container" (Unable to start init, probably incorrect template)
How to enter a "Not Running Container" [message #46162] Sat, 28 April 2012 21:08 Go to next message
d.har is currently offline  d.har
Messages: 1
Registered: April 2012
Junior Member
Hello,

Recently one of our client suffered because his VPS stopped booting. I tried starting it from main node but i get the following.
vzctl start 336
Starting container ...
Container is mounted
Adding IP address(es): XXX.XXX.XXX.XXX
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
Unable to start init, probably incorrect template
Container start failed
Stopping container ...
Container was stopped
Container is unmounted

Both our main node and the container(VPS) is running Centos 5.

I would like to ask the following:
1- Can it be fixed?
If yes, what is the fix? (I have 0 knowledge)

2- If not, then i would like to do the followings
I would like to copy MYSQL DB And the Home directory from the effected container to my main node. And then copy them to another container. (I have 0 knowledge)

Please look at my issue. Thanks

Kind Regards,
Har.
Re: How to enter a "Not Running Container" [message #46195 is a reply to message #46162] Tue, 01 May 2012 18:45 Go to previous message
potatosalad is currently offline  potatosalad
Messages: 3
Registered: May 2012
Junior Member
If you can't get things fixed on the container, you could try the following...

CTID=336
mount proc /vz/private/$CTID/proc -t proc
mount sys /vz/private/$CTID/sys -t sysfs
mount --bind /dev /vz/private/$CTID/dev
chroot /vz/private/$CTID


You should be chrooted into the container's root with everything mounted that you would need to start up mysqld manually and dump whatever you need.

Once you're done, just make sure to exit out of the chroot and unmount everything...

umount /vz/private/$CTID/dev
umount /vz/private/$CTID/sys
umount /vz/private/$CTID/proc


Hope that helps!
Previous Topic: Fedora 16 containers problem
Next Topic: I can't install heartbeat in VPS openvz
Goto Forum:
  


Current Time: Sun Oct 20 07:31:16 GMT 2024

Total time taken to generate the page: 0.09108 seconds