<p dir="ltr">Thanks for the hint about force&quot;, I didn&#39;t try that.<br>
On the other side I am thankful for the error/warning which prevented me to create the volume because I just thought of a scenario which could result in problems.</p>
<p dir="ltr">Imagine you have a LV you want to use for the gluster volume. Now you mount this LV to /mnt/gluster1. You do this on the other host(s), too and you create the gluster volume with /mnt/gluster1 as brick. <br>
By mistake you forget to add the mount entry to fstab so the next time you reboot server1, /mnt/gluster1 will be there (because it&#39;s the mountpoint) but the data is gone (because the LV is not mounted).<br>
I don&#39;t know how gluster would handle that but it&#39;s actually easy to try it out :) </p>
<p dir="ltr">So using a subfolder within the mountpoint makes sense, because that subfolder will not exist when the mount of the LV didn&#39;t happen.</p>
<div class="gmail_quote">On Sep 12, 2014 4:16 PM, &quot;Juan José Pavlik Salles&quot; &lt;<a href="mailto:jjpavlik@gmail.com">jjpavlik@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Maybe it&#39;s not a warning, but you can use &quot;force&quot; to avoid that behaviour so it&#39;s not that you can&#39;t create the volume. Anyway, it&#39;s a good practice to create a subdirectory as far as I&#39;ve read. </div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-12 11:02 GMT-03:00 Claudio Kuenzler <span dir="ltr">&lt;<a href="mailto:ck@claudiokuenzler.com" target="_blank">ck@claudiokuenzler.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<br><div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Sep 12, 2014 at 3:00 PM, Juan José Pavlik Salles <span dir="ltr">&lt;<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Paul, that&#39;s is more a warning than an error. This advice helps you avoid situations like this:</div></blockquote><div><br></div></span><div>Not so sure if it&#39;s &quot;only a warning&quot;. The volume cannot be created as long as the fs mountpoint is directly used as brick in &quot;gluster volume create&quot;. <br><br></div><div>I wrote a post about that last month: <a href="http://www.claudiokuenzler.com/blog/499/glusterfs-bricks-should-be-subfolder-of-mountpoint" target="_blank">http://www.claudiokuenzler.com/blog/499/glusterfs-bricks-should-be-subfolder-of-mountpoint</a><br><br></div><div>But as long as it is documented I don&#39;t think it&#39;s a real issue to follow that rule.<br></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José<div>Blog - <a href="http://viviendolared.blogspot.com" target="_blank">http://viviendolared.blogspot.com</a></div></div>
</div>
</blockquote></div>