[lxc-users] lxc-users Digest, Vol 233, Issue 11

Michel Jansens michel.jansens at ulb.ac.be
Sat Jun 9 22:08:39 UTC 2018


Hi Oliver,

I think I don’t completely understand what you mean, but I can say, if you use a ZFS storage, lxc init , or lxc copy your are creating ZFS clones (meaning sharing the data blocks, planned reduplication).
If you want new blocks to be deduplicated, you must activate reduplication, but this will come at a cost: the system has to make a table of hashes, and for each write, check in that table if a block already has the same hash. It you don’t have enough memory, this happens on disk, meaning one write can generate many reads…
You could also use extra data volumes and clone them through "zfs clone” instruction (for dev-test-prod environments).
 
From all I’ve read, if you want to activate deduplication, you better have lots of RAM.

Cheers,

Michel 


> On 9 Jun 2018, at 14:56, Thouraya TH <thouraya87 at gmail.com> wrote:
> 
> Thank you for answer.
> Example
> lxc-create -n c1 -o ubuntu
> i don't mean ubuntu image
> 
> I mean these files:
> 
> Example:
> 
> root at graphene-14:/var/lib/lxc/graphene-14-worker1# ls
> 
> config  fstab  rootfs
> 
> 
> These folders content 
> config  fstab  rootfs are the same for the three containers on the same host ?
> it's up to me to use a deduplication solution  ? That's it ?
> Bests.
> 
> 
> 2018-06-09 13:00 GMT+01:00 <lxc-users-request at lists.linuxcontainers.org <mailto:lxc-users-request at lists.linuxcontainers.org>>:
> Send lxc-users mailing list submissions to
>         lxc-users at lists.linuxcontainers.org <mailto:lxc-users at lists.linuxcontainers.org>
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.linuxcontainers.org/listinfo/lxc-users <http://lists.linuxcontainers.org/listinfo/lxc-users>
> or, via email, send a message with subject or body 'help' to
>         lxc-users-request at lists.linuxcontainers.org <mailto:lxc-users-request at lists.linuxcontainers.org>
> 
> You can reach the person managing the list at
>         lxc-users-owner at lists.linuxcontainers.org <mailto:lxc-users-owner at lists.linuxcontainers.org>
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lxc-users digest..."
> 
> Today's Topics:
> 
>    1. Re: Question : duplication (Stéphane Graber)
>    2. Howto see actually used IPv6 (*not* link local) with lxc list
>       (v3.0.0)? (Oliver Rath)
> 
> 
> ---------- Message transféré ----------
> From: "Stéphane Graber" <stgraber at ubuntu.com <mailto:stgraber at ubuntu.com>>
> To: LXC users mailing-list <lxc-users at lists.linuxcontainers.org <mailto:lxc-users at lists.linuxcontainers.org>>
> Cc: 
> Bcc: 
> Date: Fri, 8 Jun 2018 11:30:07 -0400
> Subject: Re: [lxc-users] Question : duplication
> On Fri, Jun 08, 2018 at 12:13:34PM +0100, Thouraya TH wrote:
> > Hi,
> > 
> > In my cluster, i have 3 containers per host  and i have 10 hosts.
> > all containers are ubuntu containers.
> > My question: the rootfs of these containers are the same ?
> > i have duplicated files in different containers repository ?
> > 
> > 
> > 
> > Thank you so much for answers.
> > Best regards.
> 
> Depends on your storage backend, all backends except the directory one
> will use copy-on-write for deltas from the image used for the container
> and their current state.
> 
> If using ZFS and have quite a bit of spare RAM you can also turn on
> deduplication on your ZPOOL which will then deduplicate writes as they
> happen, possibly saving you a lot of disk space.
> 
> 
> -- 
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com <http://www.ubuntu.com/>
> 
> 
> ---------- Message transféré ----------
> From: Oliver Rath <rath at mglug.de <mailto:rath at mglug.de>>
> To: LXC users mailing-list <lxc-users at lists.linuxcontainers.org <mailto:lxc-users at lists.linuxcontainers.org>>
> Cc: 
> Bcc: 
> Date: Sat, 9 Jun 2018 13:47:16 +0200
> Subject: [lxc-users] Howto see actually used IPv6 (*not* link local) with lxc list (v3.0.0)?
> Hi list,
> 
> Im using IPv6 in several lxc environments. Is there a possibility to see
> the actual set IPv6-Adresses (coming from radvd) in the list command?
> Ive tried
> 
> lxc list  --columns="n",user.net.0.ipv6.address
> 
> with no luck (field leaves empty), but
> 
> # lxc list  --columns="n",net.0.ipv6.address
> Error: Invalid config key 'net.0.ipv6.address' in 'net.0.ipv6.address'
> 
> gives an error. Unfortunatly I didnt found any hint whats the key name
> for getting this information.
> 
> What can I do?
> 
> Tfh!
> 
> Oliver
> 
> 
> 
> 
> _______________________________________________
> 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/20180610/7112b4ce/attachment.html>


More information about the lxc-users mailing list