<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Oliver,<div class=""><br class=""></div><div class="">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).</div><div class="">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…</div><div class="">You could also use extra data volumes and clone them through "zfs clone” instruction (for dev-test-prod environments).</div><div class=""> </div><div class="">From all I’ve read, if you want to activate deduplication, you better have lots of RAM.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Michel </div><div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 9 Jun 2018, at 14:56, Thouraya TH <<a href="mailto:thouraya87@gmail.com" class="">thouraya87@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">
<div class="">Thank you for answer.</div><div class="">Example<br class=""></div><div class="">lxc-create -n c1 -o ubuntu</div><div class="">i don't mean ubuntu image</div><div class=""><br class=""></div><div class="">I mean these files:<br class=""></div><div class=""><br class=""></div><div class="">Example:<br class=""><br class="">root@graphene-14:/var/lib/lxc/<wbr class="">graphene-14-worker1# ls<br class=""><br class="">config  fstab  rootfs<br class=""><br class=""><br class="">These folders content <br class="">config  fstab  rootfs are the same for the three containers on the same host ?</div><div class="">
<span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">it's up to me to use a deduplication solution</span></span> 

? That's it ?<br class=""></div><div class="">Bests.</div>

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