<div dir="ltr">Hi Paul, that&#39;s is more a warning than an error. This advice helps you avoid situations like this:<div><br></div><div style>-Lets assume you have a directory called /brick/brick1 in your root device </div><div style>-Then you mount your brick on /bricks/brick1</div><div style>-Everything is great, BUT if your drive (brick1 drive) eventually fails and doesn&#39;t mount you would be writing files on /brick/brick1 because the directory will exist anyway(eventhough the brick is not mounted), so you could end up with your root partition full of gluster files. A full root partition is a potencial big problem almost in any case.</div><div style><br></div><div style>Let me know if I wasn&#39;t clear enough.</div><div style><br></div><div style>Regards,</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-12 2:44 GMT-03:00 Paul Guo <span dir="ltr">&lt;<a href="mailto:bigpaulguo@foxmail.com" target="_blank">bigpaulguo@foxmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">#gluster volume create g1 replica 2 lab1:/brick1 lab2:/brick1</span></div><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">volume create: g1: failed: The brick lab1:/brick1 is a mount point. Please create a sub-directory under the mount point and use that as the brick directory. Or use &#39;force&#39; at the end of the command if you want to override this behavior.</span><br><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"># df -h</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">......</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">/dev/sdb                     8.0G   43M  8.0G   1% /brick1</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">I found a thread which talked about this:</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><a href="http://gluster.org/pipermail/gluster-users.old/2013-May/013065.html" style="outline:none;color:rgb(61,94,134);font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px" target="_blank">http://glust<u></u>er.org/piper<u></u>mail/gluster<u></u>-users.old/2<u></u>013-May/0130<u></u>65.html</a></div><div><br><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">&gt; The quick start guide needs to be updated. The brick directory should</span></div><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">&gt; ideally be a sub-directory of a mount point (and not a mount point</span></div><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">&gt; directory itself) for ease of administration. We recently added code to</span></div><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">&gt; warn about this (and looks like the code check exposed a documentation bug</span></div><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">&gt; which you just shared!)</span></div><div><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">I have no idea about how this affects administration in real cases.</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">For me, for example, if I want to cleanup the brick, I just umount &amp; mkfs it</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">simply, but adding one more sub-directory will definitely add more cycles in kernel to</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">do lookup for each file access (Let&#39;s not consider dentry cache at first).</span></div><div><br style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px"><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">Thanks,</span></div><div><span style="font-family:&#39;lucida Grande&#39;,Verdana;line-height:23px">Paul</span></div><br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></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>