OpenVZ Forum


Home » General » Support » Checkpointing failed (vzctl chkpnt fails)
Checkpointing failed [message #37529] Wed, 23 September 2009 21:26 Go to next message
unxs is currently offline  unxs
Messages: 21
Registered: September 2009
Location: Oregon, USA
Junior Member
Need help or any hints...have setup more than 20 OPenVZ servers and have never seen this problem. Details below.

Google shows no exact error message match.

Thanks!

[root@FS2 ~]# vzctl chkpnt 1261
Setting up checkpoint...
Can not set CT ID: Invalid argument
Checkpointing failed
[root@FS2 ~]#
[root@FS2 ~]# vzctl --version
vzctl version 3.0.23
[root@FS2 ~]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              9851340   1785868   7565048  20% /
/dev/sda1               248895     35092    200953  15% /boot
/dev/mapper/VolGroup00-LogVol00
                     926506584  10995464 868447264   2% /vz
tmpfs                  8202652         0   8202652   0% /dev/shm
[root@FS2 ~]# uname -a
Linux X.X.X 2.6.18-128.2.1.el5.028stab064.7 #1 SMP Wed Aug 26 15:47:17 MSD 2009 x86_64 x86_64 x86_64 GNU/Linux
Re: Checkpointing failed [message #37556 is a reply to message #37529] Fri, 25 September 2009 12:28 Go to previous messageGo to next message
unxs is currently offline  unxs
Messages: 21
Registered: September 2009
Location: Oregon, USA
Junior Member
Guess I will have to download the source and analyze.

If a bug is found I will report at bugzilla.

Cheers!
Re: Checkpointing failed SOLVED [message #37569 is a reply to message #37556] Fri, 25 September 2009 17:22 Go to previous messageGo to next message
unxs is currently offline  unxs
Messages: 21
Registered: September 2009
Location: Oregon, USA
Junior Member
This works...

# wget http://download.openvz.org/utils/vzctl/3.0.23/src/vzctl-3.0.23-1.src.rpm
# rpm -i vzctl-3.0.23-1.src.rpm
# cd /usr/src/redhat/SOURCES
# tar xvjf vzctl-3.0.23.tar.bz2
# cd vzctl-3.0.23
# ./configure --enable-bashcomp --enable-logrotate
# make
# make install


The above complile from sources placed new utils in /usr/local.

And viola...now it works! Why is the question? More rudimentary investigating...

[root@fs2 vzctl-3.0.23]# /usr/local/sbin/vzctl chkpnt 1261
Setting up checkpoint...
        suspend...
        dump...
        kill...
Container is unmounted
Checkpointing completed succesfully
[root@fs2 vzctl-3.0.23]# /usr/local/sbin/vzctl restore 1261
Restoring container ...
Starting container ...
Container is mounted
        undump...
Adding IP address(es): 91.102.45.12
Setting CPU units: 1000
Configure meminfo: 127100
        resume...
Container start in progress...
Restoring completed succesfully
[root@fs2 vzctl-3.0.23]# vlist
-bash: vlist: command not found
[root@fs2 vzctl-3.0.23]# vzlist
      CTID      NPROC STATUS  IP_ADDR         HOSTNAME
      1051         59 running 91.102.45.3     ice-9.texxxs.nl
      1061         59 running 91.102.45.4     main.texxxs.nl
      1261          3 running 91.102.45.12    delme2.texxxs.nl
[root@fs2 vzctl-3.0.23]# ldd /usr/local/sbin/vzctl
        libvzctl-0.0.2.so => /usr/local/lib/libvzctl-0.0.2.so (0x00002b9630e37000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003002e00000)
        libutil.so.1 => /lib64/libutil.so.1 (0x0000003005600000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003002a00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003002600000)
[root@fs2 vzctl-3.0.23]# ldd /usr/sbin/vzctl
        libvzctl-0.0.2.so => /usr/lib/libvzctl-0.0.2.so (0x0096a000)
        libdl.so.2 => /lib/libdl.so.2 (0x007db000)
        libutil.so.1 => /lib/libutil.so.1 (0x00990000)
        libc.so.6 => /lib/libc.so.6 (0x00671000)
        /lib/ld-linux.so.2 (0x00653000)
[root@fs2 vzctl-3.0.23]# diff /usr/lib/libvzctl-0.0.2.so /usr/local/lib/libvzctl-0.0.2.so
Binary files /usr/lib/libvzctl-0.0.2.so and /usr/local/lib/libvzctl-0.0.2.so differ
[root@fs2 vzctl-3.0.23]# ls -l /usr/local/lib/libvzctl-0.0.2.so
-rwxr-xr-x 1 root root 498441 Sep 25 19:01 /usr/local/lib/libvzctl-0.0.2.so*
[root@fs2 vzctl-3.0.23]# ls -l /usr/lib/libvzctl-0.0.2.so
-rwxr-xr-x 1 root root 384813 Oct 30  2008 /usr/lib/libvzctl-0.0.2.so*


So on my server set of new CentOS 5.3 x86_64 servers with yum installed OpenVZ kernel:

2.6.18-128.2.1.el5.028stab064.7

I had this thread's problem.

Summary: Had to compile from source to get chkpnt to work.

More info on my server farm, all my servers are dual quad core Xeons with 16Gb of RAM. Example cpu0:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
stepping        : 6
cpu MHz         : 2333.413
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 4668.57
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:
...
Re: Checkpointing failed SOLVED [message #37576 is a reply to message #37569] Sat, 26 September 2009 18:44 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

have you installed the OpenVZ tools (esp. vzclt) for x86-64 as well or only the i386 Version ?

---8<...
[root@fs2 vzctl-3.0.23]# ldd /usr/sbin/vzctl
libvzctl-0.0.2.so => /usr/lib/libvzctl-0.0.2.so (0x0096a000)
libdl.so.2 => /lib/libdl.so.2 (0x007db000)
libutil.so.1 => /lib/libutil.so.1 (0x00990000)
libc.so.6 => /lib/libc.so.6 (0x00671000)
/lib/ld-linux.so.2 (0x00653000)

[root@fs2 vzctl-3.0.23]# ldd /usr/local/sbin/vzctl
libvzctl-0.0.2.so => /usr/local/lib/libvzctl-0.0.2.so (0x00002b9630e37000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003002e00000)
libutil.so.1 => /lib64/libutil.so.1 (0x0000003005600000)
libc.so.6 => /lib64/libc.so.6 (0x0000003002a00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003002600000)
---8<...

Bye,
Thorsten
Re: Checkpointing failed SOLVED [message #37577 is a reply to message #37576] Sat, 26 September 2009 21:34 Go to previous message
unxs is currently offline  unxs
Messages: 21
Registered: September 2009
Location: Oregon, USA
Junior Member
Thanks Thorsten,

That was exactly the problem. What was very confusing is that ALL the other vzctl functions worked perfectly. So I guess the chkpnt loads a .so (like M$ dll's) that the other parts of vzctl do not use.

So I guess this problem was based on some yum confusion but only regarding the utils pkg. I think yum/rpm should be improved on or the underlying .spec files.

For now I have to be very careful and not yum install everything without the proper checks.

A test suite would also be cool. We will make one.

Thanks again for your on the mark comment!
Previous Topic: Template creation from live Linux System
Next Topic: Error Starting VPS
Goto Forum:
  


Current Time: Sat Nov 09 03:24:21 GMT 2024

Total time taken to generate the page: 0.04145 seconds