<br><font size=2 face="sans-serif">We're looking at a problem when we have
a libvirt pool defined, below</font>
<br>
<br><font size=2 face="sans-serif">[root@xnl2192 ~]# virsh pool-dumpxml
ScsiPool-host2</font>
<br><font size=2 face="sans-serif"><pool type='scsi'></font>
<br><font size=2 face="sans-serif">  <name>ScsiPool-host2</name></font>
<br><font size=2 face="sans-serif">  <uuid>f2ea1882-881f-9f49-838d-39e070f68002</uuid></font>
<br><font size=2 face="sans-serif">  <capacity>136583315456</capacity></font>
<br><font size=2 face="sans-serif">  <allocation>136583315456</allocation></font>
<br><font size=2 face="sans-serif">  <available>0</available></font>
<br><font size=2 face="sans-serif">  <source></font>
<br><font size=2 face="sans-serif">    <adapter name='host2'/></font>
<br><font size=2 face="sans-serif">  </source></font>
<br><font size=2 face="sans-serif">  <target></font>
<br><font size=2 face="sans-serif">    <path>/dev/disk/by-id</path></font>
<br><font size=2 face="sans-serif">    <permissions></font>
<br><font size=2 face="sans-serif">      <mode>0700</mode></font>
<br><font size=2 face="sans-serif">      <owner>-1</owner></font>
<br><font size=2 face="sans-serif">      <group>-1</group></font>
<br><font size=2 face="sans-serif">    </permissions></font>
<br><font size=2 face="sans-serif">  </target></font>
<br><font size=2 face="sans-serif"></pool></font>
<br>
<br><font size=2 face="sans-serif">As you can see, this pool maps to /dev/disk/by-id.
There may be a large number of actual volume entries in /dev/disk/by-id,
however it appears only a distinct subset of them are actually added into
the libvirt pool when you do a pool-refresh. What does libvirt check when
determining which, and whether or not, to add one of these volume into
the vol-list?</font>
<br>
<br><font size=2 face="sans-serif">In particular, we have a case when one
specific volume in /dev/disk/by-id is *not* added into the pool, and no
amount of pool-refresh makes a difference. We did notice that if you remove
all the sym links in /dev/disk/by-id and do a pool-refresh, that libvirt
re-scans the bus, recreates the links in /dev/disk/by-id, and adds (some
of) the volumes back into the vol-list. But not this one problematic vol,
so clearly there is something about this vol that libvirt doesnt like and
why it is (deliberately?) not added to the pool.</font>
<br>
<br><font size=2 face="sans-serif">What checks, etc does libvirt make against
vols when determining whether to add them to a pool?</font>
<br>
<br><font size=2 face="sans-serif">- G</font>
<br>
<br><font size=2 face="sans-serif">Dr. Gareth S. Bestor<br>
IBM Senior Software Engineer<br>
Systems & Technology Group - Systems Management Standards<br>
971-285-6375 (mobile)<br>
bestor@us.ibm.com</font>