From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: restart (mktree) program usage Date: Thu, 17 Sep 2009 13:20:41 -0500 Message-ID: <20090917182041.GA8504@us.ibm.com> References: <20090909055636.GA27622@us.ibm.com> <4AA82B7C.8080107@librato.com> <20090917013546.GA30161@us.ibm.com> <4AB1A99D.3020307@librato.com> <20090917131843.GA29297@us.ibm.com> <4AB278D0.50604@librato.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4AB278D0.50604-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Containers , Sukadev Bhattiprolu List-Id: containers.vger.kernel.org Quoting Oren Laadan (orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org): > > > Serge E. Hallyn wrote: > > Quoting Oren Laadan (orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org): > >> > >> Sukadev Bhattiprolu wrote: > >>> Oren Laadan [orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org] wrote: > >>> | > >>> | > >>> | Sukadev Bhattiprolu wrote: > >>> | > I have a usage question on the 'restart' (formerly mktree) program. > >>> | > > >>> | > In the following container c/r case: > >>> | > > >>> | > - create a container > >>> | > - log in to the container, > >>> | > - restore filesystem(s) from snapshot > >>> | > - restart application from checkpoint > >>> | > >>> | FWIW, I'd expect that future versions of 'restart' will be capable > >>> | of doing this entire setup, (filesystem(s) included), as it matures. > >>> | > >>> | Note that this use case that you suggest will only work to restart > >>> | subtrees; it is unsuitable for full containers (with pids) because > >>> | the pid of init (1) will already be in use. > >>> > >>> True. But if originally the application was started as: > >>> > >>> Create container > >>> Login to contaienr > >> Actually, I'm not sure what you mean by "login to container" ? > > > > I assume he was thinking of a system container created with liblxc > > or libvirt, and literally logging in on its console or over ssh. > > This is exactly my point: > > * If you checkpoint full container, you get the sshd (and init) as > well, so you can't restore into an "existing" container, but create > a new one. > > * If you checkpoint subtree, you will miss orphans, and you will > give up leak-detection. > > I'd assume most users of this scenarios will prefer full container. Yup, I think we are agreed. -serge