[one-users] Access to DS for image in TM

Gary S. Cuozzo gary at isgsoftware.net
Wed Dec 26 05:59:34 PST 2012


Hello, 
Sorry this is sort of long, hope it makes sense... 

I have created customized DS & TM drivers for our NFS based storage servers. Each storage server is snap-shotted and replicated at least every hour to another server. I have a use case that I would like to be able to remap all images for a particular server quickly in the event of a failure, such as a hardware issue. 

In my DS driver, I have a parameter for SAN_HOST which is used to determine which storage server will be used to deploy the image. For my failure case, I would like to simply be able to edit the SAN_HOST parameter for the particular DS which failed and redeploy the vm's, having the images automatically go to the backup server and not have to remap them all. This would take the recovery process from several hours of manually remapping things to probably < 1 hour. 

The TM drivers don't get any information passed to them about the DS of the particular image they are working with. What I would like to do is be able to access the DS parameters for an image and use them to remap certain aspects of the image so the remapping will work. 

The obvious way I've thought of is to just use the image SOURCE and iterate through the image list in order to get a match, then go look up the associated DS. 

Is there any better way that I may be missing? My way seems a bit kludgy but I didn't think of any other way. 

Thanks in advance, 
gary 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121226/a9fb1c64/attachment.htm>


More information about the Users mailing list