<br><font size=2 face="sans-serif">Thanks for the quick response Daniel.
</font>
<br>
<br><tt><font size=2>>What value is in <br>
><br>
>   /sys/bus/scsi/devices/XXXXX/type<br>
><br>
>for the LUN in question ?  And is that value different for all
the<br>
>other LUNs in that HBA ?<br>
</font></tt>
<br><tt><font size=2>I'll check.</font></tt>
<br>
<br><tt><font size=2>In the mean time, what sort of 'processing' does libvirt
do that might result in an error ("If we have an error processing
any volume, that will be skipped.")? eg if we see a vol that is not
getting added, is there a command-line we can do to confirm there's something
'wrong' with this vol?</font></tt>
<br>
<br><tt><font size=2>thnx again,</font></tt>
<br>
<br><tt><font size=2>- G</font></tt>
<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>
<br>
<br>
<br>
<table width=100%>
<tr>
<td><img src=cid:_1_1A15AC041A15A8300062BE10882578EF>
<td width=100%>
<table width=100%>
<tr valign=top>
<td width=100%><font size=2 face="sans-serif"><b>Re: [libvirt-users] which
vols added to storage pool during refresh?</b></font></table>
<br>
<table width=100%>
<tr>
<td><font size=2 color=#e26200 face="sans-serif"><b>Daniel P. Berrange
</b></font>
<td><font size=2 color=#8f8f8f face="sans-serif">to:</font>
<td><font size=2 face="sans-serif">Gareth S Bestor</font>
<td>
<div align=right><font size=1 face="sans-serif">08/17/11 10:44 AM</font></div></table>
<br>
<table width=100%>
<tr>
<td>
<table width=100%>
<tr>
<td><font size=1 color=#8f8f8f face="sans-serif">Cc:</font>
<td width=100%><font size=1 face="sans-serif">libvirt-users</font></table>
<br><font size=1 face="sans-serif"><b>Please respond to "Daniel P.
Berrange"</b></font>
<td>
<div align=right></div></table>
<br></table>
<br>
<br>
<hr>
<br>
<br>
<br><tt><font size=2>On Wed, Aug 17, 2011 at 10:36:26AM -0700, Gareth S
Bestor wrote:<br>
> As you can see, this pool maps to /dev/disk/by-id. There may be a
large <br>
> number of actual volume entries in /dev/disk/by-id, however it appears
<br>
> only a distinct subset of them are actually added into the libvirt
pool <br>
> when you do a pool-refresh. What does libvirt check when determining
<br>
> which, and whether or not, to add one of these volume into the vol-list?
<br>
> <br>
> In particular, we have a case when one specific volume in /dev/disk/by-id
<br>
> is *not* added into the pool, and no amount of pool-refresh makes
a <br>
> difference. We did notice that if you remove all the sym links in
<br>
> /dev/disk/by-id and do a pool-refresh, that libvirt re-scans the bus,
<br>
> recreates the links in /dev/disk/by-id, and adds (some of) the volumes
<br>
> back into the vol-list. But not this one problematic vol, so clearly
there <br>
> is something about this vol that libvirt doesnt like and why it is
<br>
> (deliberately?) not added to the pool. <br>
> <br>
> What checks, etc does libvirt make against vols when determining whether
<br>
> to add them to a pool? <br>
<br>
If we have an error processing any volume, that will be skipped. There<br>
is one non-error related check though, that may cause a volume to be<br>
skipped:<br>
<br>
    /* We don't create volumes for devices other than disk and
cdrom<br>
     * devices, but finding a device that isn't one of those
types<br>
     * isn't an error, either. */<br>
    if (!(device_type == VIR_STORAGE_DEVICE_TYPE_DISK ||<br>
          device_type == VIR_STORAGE_DEVICE_TYPE_ROM))<br>
    {<br>
        retval = 0;<br>
        goto out;<br>
    }<br>
<br>
What value is in <br>
<br>
   /sys/bus/scsi/devices/XXXXX/type<br>
<br>
for the LUN in question ?  And is that value different for all the<br>
other LUNs in that HBA ?<br>
<br>
<br>
Daniel<br>
-- <br>
|: </font></tt><a href=http://berrange.com/><tt><font size=2>http://berrange.com
     -o-    </font></tt><a href=http://www.flickr.com/photos/dberrange/><tt><font size=2>http://www.flickr.com/photos/dberrange/
:|<br>
|: </font></tt><a href=http://libvirt.org/><tt><font size=2>http://libvirt.org
             -o-      
      </font></tt><a href="http://virt-manager.org/"><tt><font size=2>http://virt-manager.org
:|<br>
|: </font></tt><a href=http://autobuild.org/><tt><font size=2>http://autobuild.org
      -o-         </font></tt><a href=http://search.cpan.org/~danberr/><tt><font size=2>http://search.cpan.org/~danberr/
:|<br>
|: </font></tt><a href="http://entangle-photo.org/"><tt><font size=2>http://entangle-photo.org
      -o-       </font></tt><a href="http://live.gnome.org/gtk-vnc"><tt><font size=2>http://live.gnome.org/gtk-vnc
:|<br>
</font></tt></a></a></a></a></a></a></a></a>
<br>