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, <[email protected] <mailto:[email protected]>> wrote:


_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to