OpenVZ Forum


Home » Mailing lists » Users » possible container states/statuses
Re: possible container states/statuses [message #42735 is a reply to message #42730] Tue, 17 May 2011 06:13 Go to previous messageGo to previous message
knawnd is currently offline  knawnd
Messages: 27
Registered: April 2011
Junior Member
Kir Kolyshkin wrote on 16/05/11 22:48:
>
> Generally speaking, all the states (words) are independent, with a few
> exceptions (mostly obvious and logical):
>
> 1. Running CT can't be unmounted.
> 2. Deleted CT can't be mounted or running or suspended (or so I think,
> might be wrong here — if you manually delete running CT's
> configuration file it might show as deleted mounted running).
> 3. (Contrary to common thinking) running CT can be suspended!
>
Does your last sentence mean "CT can be in running and suspended state"
i.e. 'vzctl status' has to show 'exist mounted running suspended'?
I've just tried to reproduce that state following [1] guide. So I did:
$ vzctl create 103 --ostemplate centos-5-x86
Creating container private area (centos-5-x86)
Performing postcreate actions
Container private area was created

$ vzctl start 103
Starting container ...
Container is mounted
Setting CPU units: 1000
Container start in progress...

$ vzlist
CTID NPROC STATUS IP_ADDR HOSTNAME
103 6 running - -

$ vzctl chkpnt 103 --suspend
Setting up checkpoint...
suspend...
get context...
Checkpointing completed succesfully

$ vzctl status 103
CTID 103 exist mounted running

$ vzlist
CTID NPROC STATUS IP_ADDR HOSTNAME
103 12 running - -

$vzctl chkpnt 103 --dump --dumpfile /vz/dump/dump.103
Setting up checkpoint...
join context..
dump...
Checkpointing completed succesfully

$ vzlist
CTID NPROC STATUS IP_ADDR HOSTNAME
103 12 running - -

$ vzctl status 103
CTID 103 exist mounted running

As one can see 'vzctl status' doesn't show running CT as suspended. So
what is the proper way to detect that state (running and suspended CT)?

Software versions used:

$ rpm -q vzctl
vzctl-3.0.26.3-1

$ uname -rsvpi
Linux 2.6.18-238.9.1.el5.028stab089.1 #1 SMP Thu Apr 14 14:34:26 MSD
2011 i686 i386

[1] http://wiki.openvz.org/Checkpointing_and_live_migration


> On May 16, 2011 5:47 PM, <knawnd@gmail.com <mailto:knawnd@gmail.com>>
> wrote:
>
>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Slackware 13 weirdness
Next Topic: how to get the current HN CPU utilization by particular CT
Goto Forum:
  


Current Time: Mon Jun 23 06:25:54 GMT 2025

Total time taken to generate the page: 0.04878 seconds