Re: how to match the ID of a LUN in a storage pool with the GUID on the target server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/30/2010 02:47 PM, Daniel P. Berrange wrote:

I discovered you can get the info from UDEV, eg if libvirt reports a
volume '/dev/sde' you can query against the block device path

# scsi_id --export --whitelisted /dev/sde
ID_VENDOR=QNAP
ID_VENDOR_ENC=QNAP
ID_MODEL=iSCSI_Storage
ID_MODEL_ENC=iSCSI\x20Storage
ID_REVISION=3.1
ID_TYPE=disk
ID_SERIAL=36001405e61fd1a5d6f1dd4d66d9630d2
ID_SERIAL_SHORT=6001405e61fd1a5d6f1dd4d66d9630d2


The ID_SERIAL field should be what you what IIUC

We'll see about making libvirt report this value directly as the 'key' for
the volume

Thanks, that will be very helpful. Did you get the previous 2 repliles I sent to the list? I did the same thing and shared the results, but didn't hear back.

Tom


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux