OpenVZ Forum


Home » General » Support » Child * exited with status 7
Child * exited with status 7 [message #51370] Tue, 29 April 2014 08:52 Go to next message
slrslr is currently offline  slrslr
Messages: 12
Registered: April 2014
Junior Member
Hello, i repeatedly getting an error in 2 of my biggest VMs which have big cpu, ram assignment.

Quote:
Child 61485 exited with status 7


when executed: vzctl restart 860

the VM has constant load of: 118.99
in HyperVM can be seen: "Out of memory, locked" or something.
but bean counters dont show any failcnt

the child is constantly changing when i repeat this vzctl restart command. so killing appears not to help. In fact no vzctl exec command output anything..

vzctl exec 860 shutdown -h now
vzctl exec 860 killall5 -9
vzctl exec 860 kill -9 `ps -ef | grep root | grep -v grep | awk '{print $2}'`

vzctl enter 860 dont works.

These are processes returned by command "vzps axf 860"
pastebin.com/xNf5JpV8

This appears like repeated issue, so i want to ask how to solve, which files to check and what to look for please?

Restarting whole node daily is not good. Shocked

Thank you for advices

PS: can i anyhow use VM root files to create clone of the VM and run this VM clone without rebooting OpenVZ node? (just reassigning IPs)

----
update: "exited with status 7" happend again next day at another VM. I managed to return it into working state without node reboot. From HyperVM free control panel, i selected "Recover Corrupted Vps" icon. Description:
Quote:
Recover vps will untar your existing ostemplate over your vps. This means that if any of the system files were corrupted, they will be recovered. Since, only the system files are updated and your data files are left untouched, this is a safe means to fix a broken vps.


So i did it because i know i have 1 day old vzdump file of VM.

And within like 3 minutes VM become available and websites loading Rolling Eyes Shocked

Here is /var/log/vzctl.log of that:
Quote:
14-04-30T20:54:04-0400 vzctl : CT 190 : Setting up checkpoint...
2014-04-30T20:54:05-0400 vzctl : CT 190 : suspend...
2014-05-01T02:54:05+0200 vzctl : CT 190 : get context...
2014-04-30T20:54:05-0400 vzctl : CT 190 : Checkpointing completed successfully
2014-04-30T21:09:13-0400 vzctl : CT 190 : Stopping container ...
2014-04-30T21:09:16-0400 vzctl : CT 190 : Child 12473 exited with status 7
2014-04-30T21:09:16-0400 vzctl : CT 190 : Killing container ...
2014-04-30T21:09:19-0400 vzctl : CT 190 : Child 12569 exited with status 7
2014-04-30T21:09:19-0400 vzctl : CT 190 : Unable to stop container
2014-04-30T21:21:30-0400 vzctl : CT 10000 : stat(/vz/root/10000): No such file or directory
2014-04-30T21:22:51-0400 vzctl : CT 190 : UB limits were set successfully
2014-04-30T21:22:51-0400 vzctl : CT 190 : CT configuration saved to /etc/vz/conf/190.conf
2014-04-30T21:22:51-0400 vzctl : CT 190 : CT configuration saved to /etc/vz/conf/190.conf
2014-04-30T21:22:51-0400 vzctl : CT 190 : Setting CPUs: 3
2014-04-30T21:22:52-0400 vzctl : CT 190 : CT configuration saved to /etc/vz/conf/190.conf
2014-04-30T21:22:52-0400 vzctl : CT 190 : CT configuration saved to /etc/vz/conf/190.conf
2014-04-30T21:22:52-0400 vzctl : CT 190 : Setting CPU units: 1000
2014-04-30T21:22:52-0400 vzctl : CT 190 : CT configuration saved to /etc/vz/conf/190.conf
2014-04-30T21:22:56-0400 vzctl : CT 10000 : stat(/vz/root/10000): No such file or directory
2014-04-30T21:23:21-0400 vzctl : CT 190 : Resuming...
2014-04-30T21:23:57-0400 vzctl : CT 10000 : stat(/vz/root/10000): No such file or directory
2014-04-30T21:24:23-0400 vzctl : CT 190 : Stopping container ...
2014-04-30T21:25:56-0400 vzctl : CT 190 : Container was stopped
2014-04-30T21:25:57-0400 vzctl : CT 190 : Container is unmounted
2014-04-30T21:25:57-0400 vzctl : CT 10000 : stat(/vz/root/10000): No such file or directory
2014-04-30T21:26:17-0400 vzctl : CT 10000 : stat(/vz/root/10000): No such file or directory
2014-04-30T21:26:17-0400 vzctl : CT 190 : Starting container...
2014-04-30T21:26:20-0400 vzctl : CT 190 : Container is mounted
2014-04-30T21:26:20-0400 vzctl : CT 190 : Adding IP address(es): myvmiphere
2014-04-30T21:26:23-0400 vzctl : CT 190 : Setting CPU limit: 100
2014-04-30T21:26:23-0400 vzctl : CT 190 : Setting CPU units: 1000
2014-04-30T21:26:23-0400 vzctl : CT 190 : Setting CPUs: 3
2014-04-30T21:26:33-0400 vzctl : CT 190 : Container start in progress...


HyperVM man told me this "Restore" function does basically this: use system files from VM template file (one which was used to setup VM) and replace current system files, folders in VM, keeping files in /home , mysqls etc.

Please can anyone kindly know how to discover which linux commands was executed so one can do it simply from command line without HyperVM? I mean how to rebuild VMs only system files froma template.

[Updated on: Fri, 02 May 2014 16:28]

Report message to a moderator

Re: Child * exited with status 7 [message #51780 is a reply to message #51370] Wed, 03 December 2014 12:08 Go to previous message
slrslr is currently offline  slrslr
Messages: 12
Registered: April 2014
Junior Member
Update:
i think these two commands solved the issue without need of recovery:

1) vzctl chkpnt MYCTID --kill
2) vzctl --verbose MYCTID CTIDHERE
Previous Topic: creating and keeping a standby server current
Next Topic: OpenVZ on Cluster
Goto Forum:
  


Current Time: Fri Apr 26 00:51:15 GMT 2024

Total time taken to generate the page: 0.01590 seconds