<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:微软雅黑;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@微软雅黑";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Consolas;
        color:#0000CC;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas;color:#0000CC'>It would be great if any suggestions from IRC can be shared on this list. Eric’s question is a common requirement.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas;color:#0000CC'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas;color:#0000CC'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas;color:#0000CC'>Kent<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas;color:#0000CC'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gluster-users-bounces@gluster.org [mailto:gluster-users-bounces@gluster.org] <b>On Behalf Of </b>John Mark Walker<br><b>Sent:</b> Thursday, September 06, 2012 3:02 PM<br><b>To:</b> Eric<br><b>Cc:</b> gluster-users@gluster.org<br><b>Subject:</b> Re: [Gluster-users] Re-provisioning a node and it's bricks<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'>Eric - was good to see you in San Diego. Glad to see you on the list.&nbsp;<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'>I would recommend trying the IRC channel tomorrow morning. Should be someone there who can help you.&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'>-JM<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'><hr size=2 width="100%" align=center id=zwchr></span></div><blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>I've created a distributed replicated volume:<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&gt; gluster&gt; volume info<br>&gt;&nbsp; <br>&gt; Volume Name: Repositories<br>&gt; Type: Distributed-Replicate<br>&gt; Volume ID: 926262ae-2aa6-4bf7-b19e-cf674431b06c<br>&gt; Status: Started<br>&gt; Number of Bricks: 2 x 2 = 4<br>&gt; Transport-type: tcp<br>&gt; Bricks:<br>&gt; Brick1: 192.168.1.1:/srv/sda7<br>&gt; Brick2: 192.168.1.2:/srv/sda7<br>&gt; Brick3: 192.168.1.1:/srv/sdb7<br>&gt; Brick4: 192.168.1.2:/srv/sdb7<o:p></o:p></span></p></div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'><br>...by allocating physical partitions on each HDD of each node for the volumes' bricks: e.g.,<o:p></o:p></span></p><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'><br>&gt; [eric@sn1 srv]$ mount | grep xfs<br>&gt; /dev/sda7 on /srv/sda7 type xfs (rw)<br>&gt; /dev/sdb7 on /srv/sdb7 type xfs (rw)<br>&gt; /dev/sda8 on /srv/sda8 type xfs (rw)<br>&gt; /dev/sdb8 on /srv/sdb8 type xfs (rw)<br>&gt; /dev/sda9 on /srv/sda9 type xfs (rw)<br>&gt; /dev/sdb9 on /srv/sdb9 type xfs (rw)<br>&gt; /dev/sda10 on /srv/sda10 type xfs (rw)<br>&gt; /dev/sdb10 on /srv/sdb10 type xfs (rw)<br><br>I plan to re-provision both nodes (e.g., convert them&nbsp; from CentOS -&gt; SLES) and need to preserve the data on the current bricks.<br><br>It seems to me that the procedure for this endeavor would be to: detach the node that will be re-provisioned; re-provision the node; add the node back to the trusted storage pool, and then; add the bricks back to the volume - *but* this plan fails at Step #1. i.e.,<br><br>&nbsp;* When attempting to detach the second node from the volume, the Console Manager <br>&nbsp;&nbsp; complains &quot;Brick(s) with the peer 192.168.1.2 exist in cluster&quot;.<br>&nbsp;* When attempting to remove the second node's bricks from the volume, the Console <br>&nbsp;&nbsp; Manager complains &quot;Bricks not from same subvol for replica&quot;.<br><br>Is this even feasible? I've already verified that bricks can be *added* to the volume (by adding two additional local partitions to the volume) but I'm not sure where to begin preparing the nodes for re-provisioning.<br><br>Eric Pretorious<br>Truckee, CA<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica","sans-serif";color:black'><br>_______________________________________________<br>Gluster-users mailing list<br><a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br><a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><o:p></o:p></span></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p></div></div></div></div></body></html>