[CRIU] ***SPAM*** vzctl snapshot (leveraging criu) expected to work?

jjs - mainphrame jjs at mainphrame.com
Fri Oct 30 15:28:51 PDT 2015


Greetings,

I've been running some test containers on OVZ7 beta, and, while I realize
not all functionality is in place yet, they have been so dependable that
I'm starting to depend on them.

So, understandably, I was looking at backups, and my first tries with vzctl
snapshot failed. I don't want to spend a lot of time troubleshooting
something that's not yet known to be working, but ihas anyone had better
luck?


Here is the result of my attempt to make a snapshot:

[root at hachi vz]# vzctl snapshot 1001
Creating snapshot {57c8aa0d-1c04-4469-9d1e-c95fab04bd01}
Storing /local/vz/private/1001/Snapshots.xml.tmp
Setting up checkpoint...
Failed to checkpoint the Container
All dump files and logs were saved to
/local/vz/private/1001/dump/{57c8aa0d-1c04-4469-9d1e-c95fab04bd01}.fail
Checkpointing failed
Failed to create snapshot
[root at hachi vz]#


The last few lines of the dump log contain these clues:

(00.570576) Error (proc_parse.c:404): Can't handle non-regular mapping on
8366's map 7f2164d63000
(00.570582) Error (cr-dump.c:1487): Collect mappings (pid: 8366) failed
with -1
(00.570746) Unlock network
(00.570751) Running network-unlock scripts


pid 8366 on the host corresponds to the mysql instance running in the
container that I'm trying to snapshot:

[root at hachi vz]# ps -ef|grep 8366
27          8366    7098  0 14:03 ?        00:00:00 /usr/libexec/mysqld
--basedir=/usr --datadir=/var/lib/mysql
--plugin-dir=/usr/lib64/mysql/plugin
--log-error=/var/log/mariadb/mariadb.log
--pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock

So apparently it has trouble with dumping mysql. I shut down mysql and
tried the snapshot again, and it broke for some other reason.

Interestingly enough, I am able to successfully snapshot a brand new,
virgin container - but with any container where I've actually installed
working apps, the dump fails. For instance, I have a container that's
basically running only ssh and dnsmaq, and the dump also failed there.

Is this criu functionality something that ought to be working, something I
ought to be submitting bug reports for, or should I forget about it until
some additional functionality is in place?

Regards,

Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20151030/2d7fa68b/attachment.html>


More information about the CRIU mailing list