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">http://docs.openstack.org/diablo/openstack-object-storage/admin/content/installing-and-configuring-storage-nodes.html</a></div>
<div><br></div><div><br><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">
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 class="HOEnZb"><font color="#888888"><div>
<br>
</div><div><br></div>-- <br>要了几天饱饭就不记得西北风啥味了<br>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>要了几天饱饭就不记得西北风啥味了<br>
</div>