OpenVZ Forum


Home » Mailing lists » Devel » RE: trying to build simple checkpoint/restart recipes
RE: trying to build simple checkpoint/restart recipes [message #41980] Wed, 08 December 2010 21:10
Rob Landley is currently offline  Rob Landley
Messages: 19
Registered: December 2010
Junior Member
> > The restoration of the mounts is not scriptable however. It involves
> > parsing the mountinfo file and coordinating the mounts with those done by
> > lxc itself during lxc-restart. I honestly haven't looked at that closely
>
> I'd be fine with requiring some bit of hand-parsing. But right, even
> once we get a list of the mounts to be restored, I don't know of any
> good way to get those mounts re-created at the right time.

Mount code is one of my old stomping grounds from back when I wrote
the busybox mount and switch_root commands and had to learn more
implementation details about it than I ever wanted to know. :)

I never could find a proper mount spec, and kept meaning to write one,
but I blathered about some of the less obvious details here:

http://www.mail-archive.com/busybox@busybox.net/msg07013.htm l

There are four top level categories of filesystem: Block backed, ram backed,
pipe backed (network and fuse and so on), and synthetic (sysfs, procfs,
devtmpfs...). And that's not counting bind mounts (which are internal
to the VFS and not really a filesystem), and loopback devices (which are
sort of the _opposite_ of a filesystem)...

> I suppose I could hack lxc-restart to do it. But I'm sort of hoping we
> can get something less hacked and more true to the 'real' upstream
> code.

Which upstream code?

> So do you know of anyone who's been working on re-creation of mounts
> in the kernel? If not, what have you been doing, hand-scripting
> all container creation, checkpoint, and restart?

I express interest in this topic.

Rob
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containe rs
Previous Topic: Re: [Ksummit-2010-discuss] checkpoint-restart: naked patch
Next Topic: Containers HOWTO? (Where do I start?)
Goto Forum:
  


Current Time: Tue Aug 05 14:27:38 GMT 2025

Total time taken to generate the page: 2.27981 seconds