<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <font size="-1">I <font size="-1">still can't get this <font
          size="-1">to work<font size="-1">, <font size="-1">I'm sure
              I'm missing something simple or obvious.  <font size="-1">To
                re<font size="-1">cap, I'm trying to use an LVM <font
                    size="-1">logical volum<font size="-1">e for my cont<font
                        size="-1">ainer's </font>/<font size="-1">var
                        and /tmp partition<font size="-1">s.  <font
                            size="-1">Since I've been unable to get this
                            to work, I've just been<font size="-1">
                              focus<font size="-1">ing on getting /tmp <font
                                  size="-1">to work.<font size="-1">  I
                                    changed my mount points and my
                                    container's config:</font></font></font></font></font></font><br>
                        <br>
                        Here are my lo<font size="-1">gical volum<font
                            size="-1">e on<font size="-1"> the host:<br>
                              <br>
                              <font size="-1">root@reaver:~# lvdisplay
                                /dev/vg_lxc1/lv_ldap_tmp1<br>
                                  --- Logical volume ---<br>
                                  LV Path               
                                /dev/vg_lxc1/lv_ldap_tmp1<br>
                                  LV Name                lv_ldap_tmp1<br>
                                  VG Name                vg_lxc1<br>
                                  LV UUID               
                                GDru3y-oLJB-Iv06-tjv3-wHuq-p8Fi-xBUscf<br>
                                  LV Write Access        read/write<br>
                                  LV Creation host, time reaver,
                                2013-11-30 13:46:16 -0700<br>
                                  LV Status              available<br>
                                  # open                 1<br>
                                  LV Size                4.00 GiB<br>
                                  Current LE             1024<br>
                                  Segments               1<br>
                                  Allocation             inherit<br>
                                  Read ahead sectors     auto<br>
                                  - currently set to     256<br>
                                  Block device           254:4<br>
                                <br>
                                <font size="-1">I've mounted this <font
                                    size="-1">LV </font>to:
                                  /mnt/lxc/ldap/tmp on the host.  I then
                                  changed my container's config file:<br>
                                  <br>
                                  <font size="-1">root@reaver:~# cat
                                    /var/lib/lxc/ldap_baneling/config
                                    |grep lxc.mount.entry<br>
                                    lxc.mount.entry                =
                                    proc           
                                    /var/lib/lxc/ldap_baneling/rootfs/proc   
                                        proc    nodev,noexec,nosuid   
                                    0    0<br>
                                    lxc.mount.entry                =
                                    devpts       
                                    /var/lib/lxc/ldap_baneling/rootfs/dev/pts   
                                    devpts    defaults        0    0<br>
                                    lxc.mount.entry                =
                                    sysfs           
                                    /var/lib/lxc/ldap_baneling/rootfs/sys   
                                        sysfs    defaults        0    0<br>
                                    #lxc.mount.entry            =
                                    /mnt/lxc/ldap/var   
                                    /var/lib/lxc/ldap_baneling/rootfs/var   
                                        none    defaults        0    0<br>
                                    <b>lxc.mount.entry         =
                                      /mnt/lxc/ldap/tmp   
                                      /var/lib/lxc/ldap_baneling/rootfs/tmp   
                                        none    defaults        0    0</b></font><br>
                                </font></font></font></font></font><br>
                        When I sta<font size="-1">rt my container I
                          don't see the new mount<font size="-1">:</font></font><br>
                        <br>
                        <font size="-1">root@baneling:~# df -h<br>
                          Filesystem      Size  Used Avail Use% Mounted
                          on<br>
                          tmpfs           3.1G     0  3.1G   0% /run/shm<br>
                          rootfs           10G  537M  9.5G   6% /<br>
                          tmpfs           801M   16K  801M   1% /run<br>
                          tmpfs           5.0M     0  5.0M   0%
                          /run/lock<br>
                          <br>
                          <font size="-1">Do, I need to put something in
                            the container's fstab?<br>
                            <br>
                            <font size="-1">Thank<font size="-1">s,<br>
                                <font size="-1">Josh</font><br>
                              </font></font></font></font><br>
                      </font></font></font></font></font></font></font></font></font></font>
    <div class="moz-cite-prefix">On 02/12/2014 05:02 PM, Alvaro Miranda
      Aguilera wrote:<br>
    </div>
    <blockquote
cite="mid:CAHqq0ewVLRVTFS-Gu8_j22F7Bc0DSkoCWRGts0Z5f7P_5L25OQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>sorry, i should have been more clear.<br>
                      <br>
                    </div>
                    seems you are trying to mount /a into /a that won't
                    work.<br>
                    <br>
                  </div>
                  at those level, where are the logical volumes mounted?<br>
                  <br>
                  Say you want to share<br>
                  <br>
                </div>
                /media/lv1<br>
                <br>
                into container as /media/lv1<br>
                <br>
              </div>
              then, the line should be:<br>
              <br>
              <small>lxc.mount.entry    = /media/lv1  
                /var/lib/lxc/ldap_baneling/rootfs/media/lv1    none   
                bind    0    0</small><br>
              <br>
            </div>
            do you see the difference with your line?<br>
            <br>
          </div>
          if you have already mounted your lv inside the container,
          unmount it, mount it somewhere else, and try as I tell you,
          for me it works.<br>
          <br>
        </div>
        if you have time, I wrote this:<br>
        <br>
        <a moz-do-not-send="true" href="http://kikitux.net/lxc/lxc.html">http://kikitux.net/lxc/lxc.html</a><br>
        <br>
        <div>
          <div>
            <div><br>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Feb 12, 2014 at 9:34 AM, Joshua
          Schaeffer <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jschaeffer0922@gmail.com" target="_blank">jschaeffer0922@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Based on the documentation I read, this can
              be the same, however all I really care about is that the
              LV gets mounted to that location on the host.</div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">
                On Tue, Feb 11, 2014 at 1:13 PM, Alvaro Miranda Aguilera
                <span dir="ltr"><<a moz-do-not-send="true"
                    href="mailto:kikitux@gmail.com" target="_blank">kikitux@gmail.com</a>></span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div dir="ltr">
                    <div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Wed, Feb 12, 2014 at
                          4:11 AM, Joshua Schaeffer <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:jschaeffer0922@gmail.com"
                              target="_blank">jschaeffer0922@gmail.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex"><small>lxc.mount.entry   
                              = /var/lib/lxc/ldap_baneling/rootfs/var   
                              /var/lib/lxc/ldap_baneling/rootfs/var   
                              none    bind    0    0<br>
                              lxc.mount.entry    =
                              /var/lib/lxc/ldap_baneling/rootfs/tmp   
                              /var/lib/lxc/ldap_baneling/rootfs/tmp   
                              none    bind    0    0</small></blockquote>
                        </div>
                        <br>
                        <br>
                      </div>
                    </div>
                    <div class="gmail_extra">you are mounting the same
                      path in the same path?</div>
                    <div class="gmail_extra">
                      <br>
                    </div>
                    <div class="gmail_extra"><br>
                    </div>
                  </div>
                  <br>
                  _______________________________________________<br>
                  lxc-users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:lxc-users@lists.linuxcontainers.org"
                    target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.linuxcontainers.org/listinfo/lxc-users"
                    target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
                </blockquote>
              </div>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            lxc-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.linuxcontainers.org/listinfo/lxc-users"
              target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>