<div dir="ltr"><p style="font-size:12.8px">I have a scenes like this:</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">I have 3 peers.  eg. P1, P2 and P3, and each of them has 2 bricks, </p><p style="font-size:12.8px">e.g. P1 have 2 bricks, b1 and b2. </p><p style="font-size:12.8px">       P2 has 2 bricks, b3 and b4. </p><p style="font-size:12.8px">       P3 has 2 bricks, b5 and b6.</p><p style="font-size:12.8px">Based that above, I create  a volume (afr volume) like this: </p><p style="font-size:12.8px">b1 and b3 make up a replicate subvolume   rep-sub1</p><p style="font-size:12.8px">b4 and b5  make up a replicate subvolume  rep-sub2</p><p style="font-size:12.8px">b2 and b6  make up a replicate sub volume rep-sub3</p><p style="font-size:12.8px">And rep-sub1,2,3 make up a distribute volume, AND start the volume.</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">now, p1 has a crash or it just disconnected. I want to detach P1 and the volume has started absolutely can’t be stop or deleted. so I did this:  gluster peer detach host-P1.</p><p style="font-size:12.8px">but it does not work, the reason is that  P1 has bricks on it according to the glusterfs error message printed on shell. </p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">so, I comment out  the code leaded the error above, and try again. I it really works. Its amazing. And the VM runs on the volume is all right. </p><p style="font-size:12.8px">BUT, this leads a big problem that  the glusterd restart failed. Both on P2 and P3, but when I remove the stuff below /var/lib/glusterfs/vols/, it restarts success. so, I wander that there is something about volume.</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">my question is, </p><p style="font-size:12.8px">if there is a method to detach  P1 in the scenes above.</p><p style="font-size:12.8px">or what issue i will meet if I make it works through modify the code source. </p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">thanks so much.</p></div>