<br><font size=2 face="sans-serif">(opps, actually meant to post this to
libvirt-users instead of libvirt-cim...)</font>
<br>
<br><font size=2 face="sans-serif"><br>
We're looking at a problem when we have a libvirt pool defined, below</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
[root@xnl2192 ~]# virsh pool-dumpxml ScsiPool-host2</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<pool type='scsi'></font><font size=3> </font><font size=2 face="sans-serif"><br>
  <name>ScsiPool-host2</name></font><font size=3> </font><font size=2 face="sans-serif"><br>
  <uuid>f2ea1882-881f-9f49-838d-39e070f68002</uuid></font><font size=3>
</font><font size=2 face="sans-serif"><br>
  <capacity>136583315456</capacity></font><font size=3>
</font><font size=2 face="sans-serif"><br>
  <allocation>136583315456</allocation></font><font size=3>
</font><font size=2 face="sans-serif"><br>
  <available>0</available></font><font size=3> </font><font size=2 face="sans-serif"><br>
  <source></font><font size=3> </font><font size=2 face="sans-serif"><br>
    <adapter name='host2'/></font><font size=3> </font><font size=2 face="sans-serif"><br>
  </source></font><font size=3> </font><font size=2 face="sans-serif"><br>
  <target></font><font size=3> </font><font size=2 face="sans-serif"><br>
    <path>/dev/disk/by-id</path></font><font size=3>
</font><font size=2 face="sans-serif"><br>
    <permissions></font><font size=3> </font><font size=2 face="sans-serif"><br>
      <mode>0700</mode></font><font size=3>
</font><font size=2 face="sans-serif"><br>
      <owner>-1</owner></font><font size=3>
</font><font size=2 face="sans-serif"><br>
      <group>-1</group></font><font size=3>
</font><font size=2 face="sans-serif"><br>
    </permissions></font><font size=3> </font><font size=2 face="sans-serif"><br>
  </target></font><font size=3> </font><font size=2 face="sans-serif"><br>
</pool></font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
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><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
What checks, etc does libvirt make against vols when determining whether
to add them to a pool?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
- G</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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><tt><font size=2>_______________________________________________<br>
Libvirt-cim mailing list<br>
Libvirt-cim@redhat.com<br>
</font></tt><a href="https://www.redhat.com/mailman/listinfo/libvirt-cim"><tt><font size=2>https://www.redhat.com/mailman/listinfo/libvirt-cim</font></tt></a>