<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>I nuked the entire partition with mkfs, just to be *sure*, and I still get the error message:</p>
<p>volume create: gv0: failed: /brick1/gv0 is already part of a volume</p>
<p>Clearly, there's some bit of data being kept somewhere else besides in /brick1?</p>
<p>On 2015-02-11 01:03, Kaushal M wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>This happens because of 2 things,</div>
<div>1. GlusterFS writes an extended attribute containing the volume-id to every brick directory when a volume is created. This is done to prevent data being written to the root partition, in case the partition containing the brick wasn't mounted for any reason.</div>
2. Deleting a GlusterFS volume does not remove any data in the brick directories and the brick directories themselves. We leave the decision of cleaning up the data to the user. The extended attribute is also not removed, so that an unused brick is not inadvertently added to another volume as it could lead to losing existing data.
<div>&nbsp;</div>
<div>So if you want to reuse a brick, you need to clean it up and recreate the brick directory.</div>
</div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On Wed, Feb 11, 2015 at 4:38 AM, Ernie Dunbar <span>&lt;<a href="mailto:maillist@lightspeed.ca">maillist@lightspeed.ca</a>&gt;</span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;"><span style="text-decoration: underline;"></span>
<div style="font-family: Verdana,Geneva,sans-serif;">
<p>I'm just going to paste this here to see if it drives you as mad as it does me.<br /><br />I'm trying to re-create a new volume in gluster. The old volume is empty and can be removed. And besides that, this is just an experimental server that isn't in production just yet. Who cares. I just want to start over again because it's not working.<br /><br /></p>
<p>root@nfs1:/home/ernied# gluster<br />gluster&gt; vol create gv0 replica 2 nfs1:/brick1/gv0 nfs2:/brick1/gv0<br />volume create: gv0: failed: /brick1/gv0 is already part of a volume<br />gluster&gt; vol in<br />No volumes present<br />gluster&gt; root@nfs1:/home/ernied# ^C<br />root@nfs1:/home/ernied# rm -r /brick1/gv0<br />root@nfs1:/home/ernied# gluster<br />gluster&gt; vol create gv0 replica 2 nfs1:/brick1/gv0 nfs2:/brick1/gv0<br />volume create: gv0: failed: Host nfs2 is not in 'Peer in Cluster' state<br />gluster&gt; peer probe nfs2<br />peer probe: success. Host nfs2 port 24007 already in peer list<br />gluster&gt; volume list<br />No volumes present in cluster<br />gluster&gt; volume delete gv0<br />Deleting volume will erase all information about the volume. Do you want to continue? (y/n) y<br />volume delete: gv0: failed: Volume gv0 does not exist<br />gluster&gt; vol create gv0 replica 2 nfs1:/brick1/gv0 nfs2:/brick1/gv0<br />volume create: gv0: failed: /brick1/gv0 is already part of a volume<br />gluster&gt; vol create evil replica 2 nfs1:/brick1/gv0 nfs2:/brick1/gv0<br />volume create: evil: failed: /brick1/gv0 is already part of a volume<br />gluster&gt;</p>
<div>&nbsp;</div>
</div>
<br />_______________________________________________<br /> Gluster-users mailing list<br /><a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br /><a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></blockquote>
</div>
</div>
</blockquote>
<p>&nbsp;</p>
<div>&nbsp;</div>
</body></html>