<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div>comments inline<br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Gino Lisignoli" &lt;glisignoli@gmail.com&gt;<br><b>To: </b>gluster-users@gluster.org<br><b>Sent: </b>Wednesday, November 22, 2017 3:49:02 AM<br><b>Subject: </b>[Gluster-users] Brick and Subvolume Info<br><div><br></div><div dir="ltr">Hello<div><br></div><div>I have a Distributed-Replicate volume and I would like to know if it is possible to see what sub-volume a brick belongs to, eg:</div><div><br></div><div>A Distributed-Replicate volume containing:</div><div><br></div><div>Number of Bricks: 2 x 2 = 4</div><div>Brick1: node1.localdomain:/mnt/data1/brick1</div><div>Brick2: node2.localdomain:/mnt/data1/brick1</div><div>Brick3: node1.localdomain:/mnt/data2/brick2</div><div>Brick4: node2.localdomain:/mnt/data2/brick2</div><div><br></div><div>Is it possible to list the bricks in sub-volumes, showing which bricks are mirrors of each other? My assumption is that the order the bricks are listed determines what sub-volumes they are in.</div><div>&gt;&gt;&gt;No, we don't have this utility yet. However, your assumption is correct.&nbsp; In your case, Brick1 and Brick2 belong to subvolume one and Brick3 and Brick4 to second sub volume.<br></div><div><br></div><div><br></div><div>Is it also possible to get the status of bricks in their sub-volume to determine their health? Eg, are the bricks in a state where I can offline one of the nodes, replace faulty drives and then online it again?</div></div></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">&gt;&gt;&gt; You can use "gluster v status &lt;volname&gt;" and can get the status&nbsp; of each brick, if they are UP or not.</div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">When you talk about "health", you should also consider "gluster v heal &lt;volname &gt;" info . to see if there is anything pending to heal or not.<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">To your next question, I would rather talk about bricks. You can kill/offline a brick and replace it without any issue. If you are not doing any IO then it should be easy job.</div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"> If you are offline a NODE and 2 bricks of any one sub volume are placed on that node then that subvolume will&nbsp; not be active/used. At this point if you are creating/writing a file and that hashes to that sub volume,<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">you might see IO error on mount point. If you NOT doing any IO that should be fine.<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">If you want to remove 2 bricks of a same subvolume, I would suggest to go via remove bricks path.<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">- First remove both the bricks of a subvolume using "gluster volume remove-bricks" command.<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">- Add 2 new bricks and run rebalance.<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">----<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">Ashish<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"> <br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://lists.gluster.org/mailman/listinfo/gluster-users</div><div><br></div></div></body></html>