<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">Okay, I think it's all figured out. I made the <font
size="-1">change you su<font size="-1">ggested to my test
container and it mounted my LV to /mnt successfully in the
container. I then took another look at my other container and
it looks like I had a bad <font size="-1">lxc.mount.entry
entry (k<font size="-1">new it had to be something simple</font>)</font></font></font>.
I had:<br>
<br>
<font size="-1">root@reaver:<font size="-1">~# cat /var/li<font
size="-1">b/lxc/ldap_baneling/config | grep lxc.mount.entry<br>
<font size="-1">lxc.mount.entry = proc
/var/lib/lxc/dns_defiler/rootfs/proc proc
nodev,noexec,nosuid 0 0<br>
lxc.mount.entry = devpts
/var/lib/lxc/dns_defiler/rootfs/dev/pts devpts<font
size="-1"> </font>defaults<font size="-1">
</font>0<font size="-1"> </font>0<br>
lxc.mount.entry = sysfs
/var/lib/lxc/dns_defiler/rootfs/sys<font size="-1">
</font>sysfs<font size="-1"> </font>defaults<font
size="-1"> </font>0 <font
size="-1"> </font>0</font><br>
</font></font></font><font size="-1">lxc.mount.entry
= /mnt/lxc<font size="-1">/ldap/<font size="-1">tmp</font></font></font>
/<font size="-1">var/lib/lxc/ldap_baneling/rootfs/tmp<font
size="-1"> </font>none<font size="-1"> </font>defaults
0<font size="-1"> </font>0<br>
<br>
<font size="-1"><font size="-1"><font size="-1">I'm not sure
where I pulled "none"</font></font></font> from f<font
size="-1">or the fstype, but when you mentioned that you
didn't specify that in your config line either it made me
check mine (mine is xfs not ext4 but the point <font
size="-1">is the same</font>). I also <font size="-1">changed
the<font size="-1"> file system line to "/dev/<font
size="-1">vg_lxc1/lv_ldap_tmp1</font>" and <font
size="-1">changed the mount p<font size="-1">o<font
size="-1">in<font size="-1">t to just <font
size="-1">"tmp"</font></font></font></font></font></font></font>.
Now I have:<br>
<br>
<font size="-1">lxc.mount.entry =
proc proc proc
nodev,noexec,nosuid 0 0<br>
lxc.mount.entry =
devpts dev/pts devpts
defaults 0 0<br>
lxc.mount.entry =
sysfs sys sysfs
defaults 0 0<br>
lxc.mount.entry =
/dev/vg_lxc1/lv_ldap_var1 var xfs defaults
0 0<br>
lxc.mount.entry =
/dev/vg_lxc1/lv_ldap_tmp1 tmp xfs
defaults 0 0<br>
</font><br>
</font></font>Everything seems to be working correctly now.
Thanks for all your help<font size="-1"><font size="-1">,</font><br>
<font size="-1">Josh</font></font><font size="-1"><br>
</font><br>
</font>
<div class="moz-cite-prefix">On 02/17/2014 10:30 PM, Serge Hallyn
wrote:<br>
</div>
<blockquote cite="mid:20140218053057.GD13617@sergelap" type="cite">
<pre wrap="">Quoting Serge Hallyn (<a class="moz-txt-link-abbreviated" href="mailto:serge.hallyn@ubuntu.com">serge.hallyn@ubuntu.com</a>):
</pre>
<blockquote type="cite">
<pre wrap="">Quoting Joshua Schaeffer (<a class="moz-txt-link-abbreviated" href="mailto:jschaeffer0922@gmail.com">jschaeffer0922@gmail.com</a>):
</pre>
<blockquote type="cite">
<pre wrap="">Yes it failed to start:
1. lxc-create -n testme1 -t debian
2. root@reaver:~# cat /var/lib/lxc/testme1/config | grep lxc.mount.entry
lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry = sysfs sys sysfs defaults 0 0
lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap
defaults,create=dir 0 0
</pre>
</blockquote>
<pre wrap="">Wait a sec. I mistyped. There's no fstype in there :)
That should be
lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap ext4 defaults,create=dir 0 0
or whatever fstype it is in place of ext4. Sorry.
</pre>
</blockquote>
<pre wrap="">Actually I see that will fail too, because 'create=dir' has a
slight problem. We need to remove create=dir from the mount
options which we pass along to the mount syscall.
so for the sake of testing just do
lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 mnt ext4 defaults 0 0
-serge
</pre>
</blockquote>
<br>
</body>
</html>