[CRIU] Live migration failure with mistmatch sid/pgid

Pavel Emelyanov xemul at parallels.com
Thu Feb 19 12:30:37 PST 2015


On 02/19/2015 11:24 PM, Nam Ninh wrote:
> 
> 
> On Thu, Feb 19, 2015 at 2:35 PM, Pavel Emelyanov <xemul at parallels.com <mailto:xemul at parallels.com>> wrote:
> 
>     On 02/19/2015 10:25 PM, Nam Ninh wrote:
>     > On Thu, Feb 19, 2015 at 2:13 PM, Pavel Emelyanov <xemul at parallels.com <mailto:xemul at parallels.com> <mailto:xemul at parallels.com <mailto:xemul at parallels.com>>> wrote:
>     >
>     >     On 02/19/2015 10:03 PM, Nam Ninh wrote:
>     >     > Please find attached restore.log when I run
>     >     > criu restore -d --images-dir /tmp/images -o restore.log
>     >     >
>     >     > The content of pstree.img shows:
>     >     >
>     >     > root at 128:~# criu show -f /tmp/images/pstree.img
>     >     > pid: 1251 ppid: 0 pgid: 1251 sid: 950 threads: 1251
>     >     > pid: 1290 ppid: 1251 pgid: 1251 sid: 950 threads: 1290
>     >     >
>     >
>     >     OK. How did you dump this tree? Did you use the -j/--shell-job option?
>     >
>     >
>     > I dumped using this command:
>     > criu dump -t 1251 --images-dir /tmp/images --shell-job --leave-stopped
> 
>     Ah, I see. The -j option should be used on both stages -- dump and restore. Add one
>     to your restore command, it should fix the sid mismatch issue. 
> 
> 
> It works when I have -j on both dump and restore. Thank you very much for your help.

You're always welcome.

> Should we update this page?
> http://criu.org/Live_migration
> 
> - "--tree <pid" is obsolete and add "-d" with restore
> - Add a note to use -j on both dump and restore for shell job migration

Well, shell jobs are not supposed to live migrate. But anyway, I don't mind updating :)
Would you do it, or do you expect us to add this note?

Thanks,
Pavel



More information about the CRIU mailing list