<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">If you really want some function like this, you may need this[0]</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div>> Create named local volumes that persist in the location(s) you want!<div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:16px;line-height:24px"><br></span></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[0] <a href="https://github.com/CWSpear/local-persist">https://github.com/CWSpear/local-persist</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 3, 2016 at 1:04 AM, Jeffrey Zhang <span dir="ltr"><<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@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 class="gmail_extra"><span class=""><br><div class="gmail_quote">On Fri, Sep 2, 2016 at 11:48 PM, Paul Bourke <span dir="ltr"><<a href="mailto:paul.bourke@oracle.com" target="_blank">paul.bourke@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>In our Kilo based solution we were solving this using host bind mounts, e.g. -v /var/lib/nova:/var/lib/nova, where the directory on the left hand side can be mounted wherever you like. Two major issues with this approach are:<br>
<br>
1) Kolla tasks have to be refactored in many places to replace "nova_data:/var/lib/kolla" with "/var/lib/nova:/var/lib/nova" (easily solvable)<br>
<br>
2) This appears to be incompatible with the 'drop root' work done, as even though /var/lib/nova is created and chowned during the build process, it's permissions are replaced with those of root when bind mounted from the host.</div></blockquote></div><br></span><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">​Why this solve the issue?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">IMHO, the root cause is that: Kolla/docker consume much capacity in /var/lib/docker. But If we move the named volume to other place ( like /var/lib/nova ), it will consume that disk/folder capacity.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">I think the right solution should warn the end-user: you need configure a large partition for /var/lib/docker.</div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Regards,</font></span></div><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Jeffrey Zhang</font></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Blog: </span><a href="http://xcodest.me/" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">http://xcodest.me</a><font face="monospace, monospace"><br></font></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Regards,</font></span></div><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Jeffrey Zhang</font></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Blog: </span><a href="http://xcodest.me/" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">http://xcodest.me</a><font face="monospace, monospace"><br></font></div></div></div></div></div></div></div></div></div>
</div>