[Users] Container Migration - Ploop

Axton axton.grams at gmail.com
Sun Mar 3 19:21:13 EST 2013


I am attempting to migrate a container from one host to another.  I am
running into issues that cause the migration to fail.

Environment information:
- Build:Debian 6; updates, install RHEL kernel
- Kernel:
042stab072.10
- Packages:
ploop-1.6-1.x86_64.rpm
ploop-devel-1.6-1.x86_64.rpm
ploop-lib-1.6-1.x86_64.rpm
vzctl-4.1.2-1.x86_64.rpm
vzctl-core-4.1.2-1.x86_64.rpm
vzkernel-2.6.32-042stab072.10.x86_64.rpm
vzkernel-debug-2.6.32-042stab072.10.x86_64.rpm
vzkernel-debug-devel-2.6.32-042stab072.10.x86_64.rpm
vzkernel-devel-2.6.32-042stab072.10.x86_64.rpm
vzkernel-firmware-2.6.32-042stab072.10.noarch.rpm
vzkernel-headers-2.6.32-042stab072.10.x86_64.rpm
vzquota-3.1-1.x86_64.rpm

The only part that is failing is the live migration.  If I stop the
container, I can migrate without any issue.

root at cluster-01:~/.ssh# vzlist -a -o ctid,name,name,status
      CTID NAME                             NAME
      STATUS
      1000 ns01                             ns01
      running
      2000 dhcp01                           dhcp01
      running
      3000 ca                               ca
      running
      4000 proxy01                          proxy01
      running
      5000 fs01                             fs01
      running
      6000 svn                              svn
      running

root at cluster-01:~/.ssh# cat /etc/vz/conf/2000.conf
HOSTNAME="dhcp01"
NAMESERVER="10.0.20.250"
SEARCHDOMAIN="home.arswiki.org"
ONBOOT="yes"
NAME="dhcp01"
CONFIG_CUSTOMIZED=yes
AVNUMPROC="180:180"
CPUUNITS="1000"
DCACHESIZE="2147483647:2147483647"
DGRAMRCVBUF="2147483647:2147483647"
DISKINODES="2147483647:2147483647"
DISKSPACE="1048576:1048576"
#FEATURES="sysfs:on nfs:on "
KMEMSIZE="2147483647:2147483647"
LOCKEDPAGES="2147483647:2147483647"
NUMFILE="2147483647:2147483647"
NUMFLOCK="2147483647:2147483647"
NUMIPTENT="2147483647:2147483647"
NUMOTHERSOCK="2147483647:2147483647"
NUMPROC="2147483647:2147483647"
NUMPTY="2147483647:2147483647"
NUMSIGINFO="2147483647:2147483647"
NUMTCPSOCK="2147483647:2147483647"
OOMGUARPAGES="2147483647:2147483647"
ORIGIN_SAMPLE="vps.basic"
OSTEMPLATE=debian-6.0
OTHERSOCKBUF="2147483647:2147483647"
PHYSPAGES="2147483647:2147483647"
PRIVVMPAGES="2147483647:2147483647"
QUOTATIME="0"
SHMPAGES="2147483647:2147483647"
TCPRCVBUF="2147483647:2147483647"
TCPSNDBUF="2147483647:2147483647"
VMGUARPAGES="2147483647:2147483647"
BOOTORDER="9000"
NETIF="ifname=eth1,bridge=vmbr10,mac=00:18:51:77:29:AC,host_ifname=veth2000.10,host_mac=00:18:51:2A:39:C6;ifname=eth2,bridge=vmbr20,mac=00:18:51:D5:89:11,host_ifname=veth2000.20,host_mac=00:18:51:D7:48:F6;ifname=eth3,bridge=vmbr30,mac=00:18:51:FB:F5:23,host_ifname=veth2000.30,host_mac=00:18:51:F9:4B:EA;ifname=eth4,bridge=vmbr40,mac=00:18:51:49:E4:D7,host_ifname=veth2000.40,host_mac=00:18:51:17:55:76"

root at cluster-01:~/.ssh# vzmigrate -s -v -t --live cluster-02 2000
Starting live migration of CT 2000 to cluster-02
OpenVZ is running...
   Loading /etc/vz/vz.conf and /etc/vz/conf/2000.conf files
   Check if ploop is supported on destination node
Next unused minor: 347152
   Check IPs on destination node:
Preparing remote node
   Copying config file
2000.conf
                              100% 1425     1.4KB/s   00:00
Name dhcp01 assigned
No changes in CT configuration, not saving
   Creating remote container root dir
   Creating remote container private dir
Creating a container snapshot
Creating snapshot {ecd0befb-bee4-442d-8be5-76f33242598c}
Storing /vz/private/2000/Snapshots.xml.tmp
Setting up checkpoint...
        suspend...
        get context...
Checkpointing completed successfully
Storing /vz/private/2000/root.hdd/DiskDescriptor.xml.tmp
Creating delta /vz/private/2000/root.hdd/root.hdd.{bf557feb-9538-45b2-865a-12dbe6d1a0d2}
bs=2048 size=2097152 sectors
Creating snapshot dev=/dev/ploop48460
img=/vz/private/2000/root.hdd/root.hdd.{bf557feb-9538-45b2-865a-12dbe6d1a0d2}
ploop snapshot {ecd0befb-bee4-442d-8be5-76f33242598c} has been
successfully created
Setting up checkpoint...
        join context..
        dump...
Can not dump container: Invalid argument
Checkpointing failed
Opening delta /vz/private/2000/root.hdd/root.hdd
Merging top delta
Storing /vz/private/2000/root.hdd/DiskDescriptor.xml
Removing /vz/private/2000/root.hdd/root.hdd.{bf557feb-9538-45b2-865a-12dbe6d1a0d2}
ploop snapshot {5fbaabe3-6958-40ff-92a7-860e329aab41} has been
successfully merged
Resuming...
Failed to create snapshot
Error: Failed to snapshot a container
Syncing private
Live migrating container...
   Copying top ploop delta with CT suspend
Sending /vz/private/2000/root.hdd/root.hdd
Setting up checkpoint...
        suspend...
        get context...
Checkpointing completed successfully
   Dumping container
Setting up checkpoint...
        join context..
        dump...
Can not dump container: Invalid argument
Checkpointing failed
Error: Failed to dump container
Resuming...
WARNING: /etc/vz/conf/2000.conf not found: No such file or directory


I will try to look more into this, but wanted to see if it is a known issue.

Axton Grams



More information about the Users mailing list