<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">Yes it failed to start:<br>
<br>
<font size="-1"><font size="-1">1. </font>lxc-create -n testme1
-t debian<br>
<font size="-1">2. </font>root@reaver:~# cat
/var/lib/lxc/testme1/config | grep lxc.mount.entry<br>
lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0<br>
lxc.mount.entry = sysfs sys sysfs defaults 0 0<br>
lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap
defaults,create=dir 0 0<br>
<font size="-1"><font size="-1">3. </font>root@reaver:~#
lxc-start -n testme1 -l trace -o testme1.out<br>
lxc-start: No such file or directory - failed to mount
'/dev/vg_lxc1/lv_ldap_tmp1' on
'/usr/lib/x86_64-linux-gnu/lxc/lv_ldap'<br>
lxc-start: failed to setup the mount entries for 'testme1'<br>
lxc-start: failed to setup the container<br>
lxc-start: invalid sequence number 1. expected 2<br>
lxc-start: failed to spawn 'testme1'</font><br>
<br>
Thanks<font size="-1">,<br>
<font size="-1">Josh</font><br>
</font><br>
</font></font>
<div class="moz-cite-prefix">On 02/17/2014 09:55 AM, Serge Hallyn
wrote:<br>
</div>
<blockquote cite="mid:20140217165517.GG10465@sergelap" 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="">I still can't get this to work, I'm sure I'm missing something
simple or obvious. To recap, I'm trying to use an LVM logical volume
for my container's /var and /tmp partitions. Since I've been unable
to get this to work, I've just beenfocusing on getting /tmp to work.
I changed my mount points and my container's config:
Here are my logical volume onthe host:
root@reaver:~# lvdisplay /dev/vg_lxc1/lv_ldap_tmp1
</pre>
</blockquote>
<pre wrap="">Could you please create a new container, 'testme1', and just add to its
/var/lib/lxc/testme1/config the entry
lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap defaults,create=dir 0 0
Then do
lxc-start -n testme1 -l trace -o testme1.out
and send testme1.out here (assuming that fails to start)?
thanks,
-serge
_______________________________________________
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>