[lxc-users] Can not stop lxc with lxc-stop

Marat Khalili mkh at rqc.ru
Tue Sep 27 15:39:03 UTC 2016


I'd guess that some container process has stuck in the kernel due to a 
hardware/driver/filesystem problem. Since all containers actually share 
the same kernel, there's no easy way out in this case. Check if you see 
any processes of a container still running and whether you can kill them.

--

With Best Regards,
Marat Khalili

On 27/09/16 11:55, John Y. wrote:
> The same as lxc-stop -n testlxc
>
>
> Thank you for your help.
> John
>
> 2016-09-27 14:21 GMT+08:00 Marat Khalili <mkh at rqc.ru <mailto:mkh at rqc.ru>>:
>
>     What's with:
>
>     # lxc-stop -n testlxc -k
>
>     ?
>
>     --
>
>     With Best Regards,
>     Marat Khalili
>
>     On 27/09/16 05:46, John Y. wrote:
>>     I create a container with lxc 2.0.4.
>>     lxc-stop hangs up when I want to stop it.
>>
>>     #lxc-stop -n testlxc
>>
>>     But it may already stoped, because I exited from lxc auto
>>     automatically and lxc-attach failed.:
>>
>>     #lxc-attach -n testlxc
>>     lxc-attach: attach.c: lxc_attach_to_ns: 257 No such file or
>>     directory - failed to open '/proc/23193/ns/mnt'
>>     lxc-attach: attach.c: lxc_attach: 948 failed to enter the namespace
>>
>>     And lxc-stop still hanged without any output.
>>
>>     Anyone know why?
>>
>>     Thanks,
>>     John
>>
>>
>>
>>
>>
>>     _______________________________________________
>>     lxc-users mailing list
>>     lxc-users at lists.linuxcontainers.org
>>     <mailto:lxc-users at lists.linuxcontainers.org>
>>     http://lists.linuxcontainers.org/listinfo/lxc-users
>>     <http://lists.linuxcontainers.org/listinfo/lxc-users>
>     _______________________________________________ lxc-users mailing
>     list lxc-users at lists.linuxcontainers.org
>     <mailto:lxc-users at lists.linuxcontainers.org>
>     http://lists.linuxcontainers.org/listinfo/lxc-users
>     <http://lists.linuxcontainers.org/listinfo/lxc-users> 
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160927/5aaaf10b/attachment.html>


More information about the lxc-users mailing list