<div>This is a good example. I do not know whether there are other cases, but for this case, I'd like another design: Add a parameter to guide glusterfs to double-check whether the bricks are mount points when creating or starting a volume.</div><div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;Original&nbsp;------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b>&nbsp;"Claudio Kuenzler";&lt;ck@claudiokuenzler.com&gt;;</div><div><b>Date: </b>&nbsp;Sep 12, 2014</div><div><b>To: </b>&nbsp;"Juan José Pavlik Salles"&lt;jjpavlik@gmail.com&gt;; <wbr></div><div><b>Cc: </b>&nbsp;"gluster-users"&lt;gluster-users@gluster.org&gt;; "Paul Guo"&lt;bigpaulguo@foxmail.com&gt;; <wbr></div><div><b>Subject: </b>&nbsp;Re: [Gluster-users] error when using mount point as a brick directory.</div></div><div><br></div>Thanks for the hint about force", I didn'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.<br> 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's the mountpoint) but the data is gone (because the LV is not mounted).<br> I don't know how gluster would handle that but it's actually easy to try it out :) <br> So using a subfolder within the mountpoint makes sense, because that subfolder will not exist when the mount of the LV didn't happen.<br> On Sep 12, 2014 4:16 PM, "Juan José Pavlik Salles" &lt;jjpavlik@gmail.com&gt; wrote:<br><br>Maybe it's not a warning, but you can use "force" to avoid that behaviour so it's not that you can't create the volume. Anyway, it's a good practice to create a subdirectory as far as I've read.&nbsp;<br>2014-09-12 11:02 GMT-03:00 Claudio Kuenzler &lt;ck@claudiokuenzler.com&gt;:<br><br>Hi<br><br><br><br><br>On Fri, Sep 12, 2014 at 3:00 PM, Juan José Pavlik Salles &lt;jjpavlik@gmail.com&gt; wrote:<br><br>Hi Paul, that's is more a warning than an error. This advice helps you avoid situations like this:<br><br>Not so sure if it's "only a warning". The volume cannot be created as long as the fs mountpoint is directly used as brick in "gluster volume create". <br><br><br>I wrote a post about that last month: http://www.claudiokuenzler.com/blog/499/glusterfs-bricks-should-be-subfolder-of-mountpoint<br><br><br>But as long as it is documented I don't think it's a real issue to follow that rule.<br><br><br><br> -- <br><br>Pavlik Salles Juan José<br>Blog - http://viviendolared.blogspot.com<br><br> <br></div>