<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 12/26/2013 02:24 PM, William Kwan
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1388096662.87637.YahooMailNeo@web140401.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:12pt">Hi all,<br>
        <br>
        Running 3.4.1 on Centos6.<br>
        <br>
        I have this issue, I created two xfs filesystem on each of two
        hosts<br>
        onode1:/data/glusterfs/kvm1/brick1<br>
        <div>onode2:/data/glusterfs/kvm1/brick2</div>
        <div><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;">onode1:/data/glusterfs/kvm2/brick1</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;">onode1:/data/glusterfs/kvm2/brick2</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;"><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;">The first volume was created successfully</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;"># gluster volume create kvm1 replica 2 transport tcp
          onode1:/data/glusterfs/kvm1/brick1
          onode2:/data/glusterfs/kvm1/brick2</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;"><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;">When I attempt to create the second volume, I got&nbsp;</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;"># gluster volume create kvm2 replica 2 transport tcp
          onode1:/data/glusterfs/kvm2/brick1
          onode2:/data/glusterfs/kvm2/brick2<br>
          volume create: kvm2: failed: /data/glusterfs/kvm2/brick1 or a
          prefix of it is already part of a volume</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;"><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
          Grande,sans-serif; background-color: transparent; font-style:
          normal;">I'm not sure I follow what the error means.&nbsp; The 2nd
          set of filesystems have to mount under a totally different
          directory structure?</div>
        <br>
      </div>
    </blockquote>
    It means the path to the brick, or some preceding directory up the
    tree, is marked as being part of a volume, or was part of a volume
    in the past.<br>
    <br>
    From your two commands, you're trying to use the same path twice. In
    volume kvm1 you use the same two bricks as kvm2. Two volumes cannot
    use the same bricks. Is there a reason you want two volumes? A more
    typical use case would be:<br>
    <br>
    gluster volume create kvms replica 2
    onode1:/data/glusterfs/kvm1/brick1
    onode2:/data/glusterfs/kvm1/brick1
    onode1:/data/glusterfs/kvm1/brick2
    onode2:/data/glusterfs/kvm1/brick2<br>
    <br>
    <br>
  </body>
</html>