Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #3743

Re: Lightweight nodes for learning hands-on TCP/IP networking and administration

From Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups comp.os.linux.networking
Subject Re: Lightweight nodes for learning hands-on TCP/IP networking and administration
Date 2016-05-11 08:53 -0400
Organization A noiseless patient Spider
Message-ID <jwvlh3g69uh.fsf-monnier+comp.os.linux.networking@gnu.org> (permalink)
References <980fd0b7-3cfd-4583-9e32-68f25e950a74@googlegroups.com>

Show all headers | View raw


> I have looked at LxC also. It can surely cut down the RAM footprint and
> boot-up times of my node but I'd still need to have a *copy* of the VM
> image/rootfs for each of the nodes on the disk (each disk copy being several
> 100 MBs). The reason for this *copy* is: I'm using ext4fs which does not
> support efficient cloning of LxC disk images.

Not sure I understand your remark about ext4, but here's how I think I'd
do it: I'd use lxc, and more specifically, I'd create an LVM volume for
an initial lxc container.  Once I have this container working in
a satisfactory way, I'd make N "LVM snapshots" of this volume.
From then on, you don't want to write to the original LVM volume any
more (more specifically, you can, but it costs too much, so make sure
you either don't mount this volume any more or only mount it read-only)
The snapshots are writable and you can use them for your
N lxc containers.  Of course, you don't have to know N beforehand, you
can create new snapshots as the need arises.

See http://tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html


        Stefan

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Lightweight nodes for learning hands-on TCP/IP networking and administration HS <simonsharry@gmail.com> - 2016-05-09 19:57 -0700
  Re: Lightweight nodes for learning hands-on TCP/IP networking and administration Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2016-05-10 09:06 +0300
    Re: Lightweight nodes for learning hands-on TCP/IP networking and administration HS <simonsharry@gmail.com> - 2016-05-12 04:28 -0700
  Re: Lightweight nodes for learning hands-on TCP/IP networking and administration "Carlos E. R." <robin_listas@invalid.es> - 2016-05-11 02:21 +0200
  Re: Lightweight nodes for learning hands-on TCP/IP networking and administration Stefan Monnier <monnier@iro.umontreal.ca> - 2016-05-11 08:53 -0400
    Re: Lightweight nodes for learning hands-on TCP/IP networking and administration Stefan Monnier <monnier@iro.umontreal.ca> - 2016-05-11 09:23 -0400
      Re: Lightweight nodes for learning hands-on TCP/IP networking and administration HS <simonsharry@gmail.com> - 2016-05-12 04:34 -0700
      Re: Lightweight nodes for learning hands-on TCP/IP networking and administration HS <simonsharry@gmail.com> - 2016-05-12 21:41 -0700
        Re: Lightweight nodes for learning hands-on TCP/IP networking and administration Stefan Monnier <monnier@iro.umontreal.ca> - 2016-05-13 08:06 -0400
    Re: Lightweight nodes for learning hands-on TCP/IP networking and administration HS <simonsharry@gmail.com> - 2016-05-12 04:39 -0700
      Re: Lightweight nodes for learning hands-on TCP/IP networking and administration Stefan Monnier <monnier@iro.umontreal.ca> - 2016-05-12 08:17 -0400

csiph-web