[libvirt-users] how to match the ID of a LUN in a storage pool with the GUID on the target server
Tom Georgoulias
tomg at mcclatchyinteractive.com
Wed Jun 30 20:18:20 UTC 2010
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
More information about the libvirt-users
mailing list