<p>Use UUID and/or WWN when refering to block devices. They are consistent.</p>
<p>Regards,<br>
Grzegorz</p>
<div class="gmail_quote">On Oct 19, 2012 7:35 a.m., "neo3 matrix" <<a href="mailto:neo3matrix@gmail.com">neo3matrix@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi all,</div><div><br></div><div>I have installed RHEL6 as guest OS on Citrix Xen Server. After installation of OS, I can see disk names as /dev/xvda, /dev/xvdb instead of traditional convention like /dev/sda, /dev/sdb on guest OS.</div>

<div><br></div><div>Generally, on physical machines, in /proc/scsi/scsi file, we get a unique entry for every disk connected to the system. For e.g. string "scsi02:00:00:01" indicates that this disk is connected to the machine via Host=2, Channel=00, Id=00 Lun=01. This helps me in my project to uniquely identify each and every disk in scenarios where many times after reboot OR in SAN boot cases OR in some Disaster Recovery procedures, disk names might change from say /dev/sda to /dev/sdb after reboot. But, this Host:Channel:ID:Lun combination remains same for every disk and I can uniquely identify the disks though their /dev/sd* names have changed.</div>

<div><br></div><div>For my project, on Citrix Xenserver, I need to know the unique disk location for such Xen guest OS devices by which I can easily identify disks across the reboots for the above mentioned cases. </div>
<div>
<br></div><div>So, I have couple of questions on this front. Please help me out or guide me for the same.</div><div><br></div><div>1. As /proc/scsi/scsi don't have such entry for /dev/xvdX type disks, do we have similar mechanism in Citrix XenServer to identify our guest OS disks uniquely?</div>

<div><br></div><div>2. This question is rather a continuation of previous one. While searching answer for above question, I found that for every /dev/xvdX disk, a unique device entry is present in /sys/block/xvdX/ directory in the format "vbd-XXX", for example, vbd-768, vbd-832, etc. Here, vbd stands for Virtual Block Device. </div>

<div><br></div><div>But what is the significant of the numbers 768, 832 ,etc.? How these are generated? Are they indicating something like Host:Channel:Id:Lun? Can I trust these numbers to distinctly identify my disks? Are these numbers differ from one guest OS to other OR depend on Xenserver configuration?</div>

<div><br></div><div>Please suggest me some answer/guideline on this front. </div><div><br></div><div><br></div><div>Regards,</div><div>Neo</div>
<br>_______________________________________________<br>
rhelv6-list mailing list<br>
<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhelv6-list" target="_blank">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br></blockquote></div>