[CRIU] PID mismatch problem

Federico Reghenzani federico1.reghenzani at mail.polimi.it
Mon Dec 21 07:49:40 PST 2015


My call is
ssh 0.0.0.0 orted-restore

This is the code I've used for restore in orted-restore:

    criu_init_opts();
    if(0 > (dir = open(path, O_DIRECTORY))){
               ....
    }
    criu_set_images_dir_fd(dir);
    criu_set_log_file("criu_restore.log");
    criu_set_log_level(4);
    int status = criu_restore();

Also I have noticed that orted (the restored process) is an init child (not
orted-restore child) but I have no stdout, stderr on ssh (with or without
criu_set_shell_job) probably because it's a init child and not a
orted-restore child.


Cheers,
Federico
__
Federico Reghenzani
M.Eng. Student @ Politecnico di Milano
Computer Science and Engineering



2015-12-21 15:10 GMT+01:00 Federico Reghenzani <
federico1.reghenzani at mail.polimi.it>:

> I've attached the criu log for dump and restore when it fails for PID.
> Today I noticed that the tty problem happens only if I tried to restore
> manually via ssh (so it's not really a problem for us).
>
> @Pavel how can I add --restore-sibling and -f via C API?
>
>
>
> Cheers,
> __
> Federico Reghenzani
> M.Eng. Student @ Politecnico di Milano
> Computer Science and Engineering
>
>
>
> 2015-12-17 14:09 GMT+01:00 Cyrill Gorcunov <gorcunov at gmail.com>:
>
>> On Thu, Dec 17, 2015 at 03:35:56PM +0300, Pavel Emelyanov wrote:
>> > >     > other times tells me:
>> > >     >
>> > >     >     /  5485: Error (tty.c:531): tty: Unable to open dev/ptmx
>> with specified index 0/
>> > >     >     /  5485: Error (tty.c:917): tty: Can't open a (index 0):
>> Bad file descriptor/
>> > >
>> > >     Did you use the -j option on dump? If so, then it's likely the
>> lack of
>> > >     same -j option for restore.
>> > >
>> > >
>> > > I'm neither using -j for dump nor for restore. I tried also adding
>> that but it seems it changes
>> > > nothing. (I'm using the C API, so the criu_set_shell_job)
>> >
>> > Hm... Then it's some tty issue. Cyrill, would you help us, please?
>> > BTW, Frederico, feel free to file an issues about it on
>> github.com/xemul/criu
>> > if you find it easier to track issue progress out there.
>>
>> Mind to run restore with -v4 option, or as via RPC
>> criu_local_set_log_level
>> to 4, and show the restore.log?
>>
>> >
>> > >     >     /Error (files-reg.c:445):  `- XFail
>> [/dev/shm/open_mpi.0000.cr.1.ghost] ghost: No such file or directory/
>> > >
>> > >     MPI? Are you trying to C/R mpi jobs?
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20151221/7170457d/attachment.html>


More information about the CRIU mailing list