Article ID: 114595, created on Aug 16, 2012, last review on Nov 18, 2014

  • Applies to:
  • Virtuozzo containers for Linux

Symptoms

A container on Parallels Virtuozzo Containers for Linux 4.7 hangs in the "stopping" state and becomes inoperable.

A bash process can be found in the "D" or "Z" state in this container, and it is not possible to terminate the process using the kill command:
[root@myserver ~]# vzctl stop 1234
Stopping the Container ...
Set up iolimit: 0
Set up iopslimit: 0
Unable to stop the Container; operation timed out
[root@myserver ~]# vzps -E 1234 axflww
F   UID   PID  PPID PRI  NI   VSZ  RSS WCHAN  STAT TTY        TIME COMMAND
4     0 33823 33822  20   0     0    0 exit   Zs   ?          0:00 [bash] <defunct>
1     0 32993     2  20   0     0    0 kthrea S    ?          0:00 [kthreadd/1234]
1     0 32994 32993  20   0     0    0 worker S    ?          0:00  \_ [khelper/1234]
4     0 32992     1  20   0     0    0 zap_pi Ss   ?          0:09 [init]

Cause

Most likely, the vzctl exec command for this container has been sent to the background on the Hardware Node.

Resolution

Bring all "vzctl"-related jobs to the foreground:
~# jobs
[1]+ Stopped vzctl exec 60 "sleep 10; ls /"
~# fg

NOTE: Sending vzctl exec to the background is NOT recommended.

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f

Email subscription for changes to this article
Save as PDF