[libvirt] [PATCH 10/11] Improve SCSI volume key and name generation

Daniel P. Berrange berrange at redhat.com
Fri Nov 12 19:06:29 UTC 2010


On Fri, Nov 12, 2010 at 12:37:41PM -0500, Dave Allan wrote:
> On Fri, Nov 12, 2010 at 04:22:43PM +0000, Daniel P. Berrange wrote:
> 
> > The SCSI volumes also get a 'key' field based on the fully
> > qualified volume path. All SCSI volumes have a unique serial
> > available in hardware which can be obtained by sending a
> > suitable SCSI command. Call out to udev's 'scsi_id' command
> > to fetch this value
> 
> This is a great addition.

Oh I forgot to mention the other huge benefit of this.....

With the key now based on the SCSI unit serial string, you can
actually directly correlate the volumes libvirt shows you, with
the volumes that your SAN/NAS shows you without having to guess
or make assumptions on ordering.

Regards,
Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list