<div>Good question.</div><div><br></div><div>I think wiki doc is wrong.</div><div>In swift-ring-builder phase, It said:</div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<p style="font:normal normal normal 10pt/normal Verdana,Geneva,sans-serif;font-family:Verdana,Geneva,sans-serif;font-size:13px"><a id="installing-and-configuring-the-proxy-node">For example, if you were setting up a storage node with a partition of /dev/sdb1 in Zone 1 on IP 10.0.0.1, the DEVICE would be sdb1 and the commands would look like:</a></p>
<pre class="literallayout" style="background-color:silver;border-bottom-color:rgb(222,222,222)!important;border-bottom-style:solid!important;border-bottom-width:1px!important;border-top-color:rgb(222,222,222)!important;border-top-style:solid!important;border-top-width:1px!important;color:rgb(35,48,45);font-family:Monaco,'Courier New','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:12px!important;overflow-x:scroll;padding-bottom:0.5em!important;padding-left:0.5em!important;padding-right:0.5em!important;padding-top:0.5em!important;width:885px">
<a id="installing-and-configuring-the-proxy-node">swift-ring-builder account.builder add z1-10.0.0.1:6002/sdb1 100
swift-ring-builder container.builder add z1-10.0.0.1:6001/sdb1 100
swift-ring-builder object.builder add z1-10.0.0.1:6000/sdb1 100</a></pre></blockquote><div>The sdb1 in "<a id="installing-and-configuring-the-proxy-node" style="color:rgb(35,48,45);font-family:Monaco,'Courier New','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:12px;white-space:pre;background-color:rgb(192,192,192)">z1-10.0.0.1:6002/sdb1</a>"  has nothing to do with the "/dev/sdb1", the raw device name is arbitrary.</div>
<div>In SAIO deployment wiki:</div><div><a href="http://swift.openstack.org/development_saio.html">http://swift.openstack.org/development_saio.html</a></div><div>the device path is /dev/loop0, but you use sdb1, sdb2, sdb3, sdb4.</div>
<div><br></div><div>But who has relationship with sdb1 ?</div><div>The following lines are cut from /etc/rsyncd.conf in each storage node:</div><div><pre class="literallayout" style="background-color:silver;border-bottom-color:rgb(222,222,222)!important;border-bottom-style:solid!important;border-bottom-width:1px!important;border-top-color:rgb(222,222,222)!important;border-top-style:solid!important;border-top-width:1px!important;color:rgb(35,48,45);font-family:Monaco,'Courier New','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:12px!important;overflow-x:scroll;padding-bottom:0.5em!important;padding-left:0.5em!important;padding-right:0.5em!important;padding-top:0.5em!important;width:885px">
<a id="installing-and-configuring-storage-nodes">[object]
max connections = 2
<b>path = /srv/node/
</b>read only = false
lock file = /var/lock/object.lock</a></pre></div><div>this line:</div><div>path = /srv/node is critical, </div><div>the sdb1 must reside in /srv/node</div><div><br></div><div>So, you do not need to worry about device changing, just make sure that  mount point and path in rsyncd.conf is consistent.</div>
<div><br><div class="gmail_quote">2012/1/16 dr-dr xp <span dir="ltr"><<a href="mailto:drdr.xp@gmail.com">drdr.xp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Seems like the wiki docs misled me. "sdb1" is actually mount point but not "/dev/sdb1".<div><br></div><div> Thus there won't be any problem in source code.</div><div><br></div><div>But risk is still there: disk should be mounted by uuid or label but not "/dev/sdb1", during the storage installation phase:</div>

<div><br></div><div><a href="http://docs.openstack.org/diablo/openstack-object-storage/admin/content/installing-and-configuring-storage-nodes.html" target="_blank">http://docs.openstack.org/diablo/openstack-object-storage/admin/content/installing-and-configuring-storage-nodes.html</a></div>

<div><br></div><div><div><div class="h5"><br><br><div class="gmail_quote">2012/1/16 dr-dr xp <span dir="ltr"><<a href="mailto:drdr.xp@gmail.com" target="_blank">drdr.xp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

According to the docs of Swift, devices in a ring are identified by disk name like "/dev/sdb1" :<div><br><div><table border="1" style="border-bottom-width:0px;text-align:left;border-style:initial;margin-bottom:0px;border-color:initial;border-top-width:0px;line-height:21px;border-collapse:collapse;font-size:11px;border-right-width:0px;font-family:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif;margin-top:0px;border-left-width:0px">


<tbody valign="top"><tr><td style="padding-top:1px;padding-right:8px;padding-bottom:1px;padding-left:0px;border-top-width:0px;border-top-style:initial;border-top-color:initial;border-left-width:0px;border-left-style:initial;border-left-color:initial;border-right-width:0px;border-right-style:initial;border-right-color:initial;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170,170,170)">


device</td><td style="padding-top:1px;padding-right:8px;padding-bottom:1px;padding-left:0px;border-top-width:0px;border-top-style:initial;border-top-color:initial;border-left-width:0px;border-left-style:initial;border-left-color:initial;border-right-width:0px;border-right-style:initial;border-right-color:initial;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170,170,170)">


string</td><td style="padding-top:1px;padding-right:8px;padding-bottom:1px;padding-left:0px;border-top-width:0px;border-top-style:initial;border-top-color:initial;border-left-width:0px;border-left-style:initial;border-left-color:initial;border-right-width:0px;border-right-style:initial;border-right-color:initial;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170,170,170)">


The on disk name of the device on the server. For example: sdb1</td></tr></tbody></table></div><div><br></div><div><a href="http://swift.openstack.org/overview_ring.html" target="_blank">http://swift.openstack.org/overview_ring.html</a></div>


<div><div><br></div><div><br></div><div>But such disk name would change: When one of the disks fails, all names of disk after failed disk changes.</div><div>If sdb fails, sdc becomes sdb, and sdd becomes sdc....</div><div>


<br></div><div>The same when new device is added.</div><div><br></div><div><br></div><div>Isn't this a problem? Or is there some internal mechanism to prevent this to happen or something like a workaround?</div><span><font color="#888888"><div>

<br>
</div><div><br></div>-- <br>要了几天饱饭就不记得西北风啥味了<br>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>要了几天饱饭就不记得西北风啥味了<br>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#999999">Mr.Cheng Hui - 程辉                     <a href="mailto:conglei@staff.sina.com.cn" target="_blank">chenghui@staff.sina.com.cn</a><br>
R&D center. - SAE<br>
Phone:(8610)62676056<br>
Address: 17F, BEIJING IDEAL PLAZA 20F, No. 58 Northwest 4th Ring Road,<br>
Haidian, Beijing 100080, China<br></font><div><font color="#999999">___________________________________________<br>
<a href="http://www.sina.com.cn/" target="_blank">http://www.sina.com.cn</a>
                           You're the One<br>
新浪.北京                      一切由你开始</font></div><br>
</div>