[Libvir] Is it possible to add an interface to intercept the migration process?

Richard W.M. Jones rjones at redhat.com
Thu Oct 18 09:39:17 UTC 2007

Jack Meng wrote:
> Hi Richard,
> Thanks for your reply.
> Actually I'm thinking about how to recognize the same storage (probably 
> external), not things on them. Sometimes storages are shared between 
> hosts but have different paths to access, e.g., for fibre channel 
> storages. So an update to the conf file is probably needed here to let 
> the dest attach 'right' storages.
> Mirroring/iSCSI is not the case I'm considering.

I'm still a bit unclear about what you're trying to do.  Is the external 
storage mounted on the guest at the point when you're doing the 
migration?  If it is connected then you'd need to umount it before 
migration and mount it (with a new device name) afterwards.  Possibly an 
update to /etc/fstab would be in order too.  This seems to preclude live 
migration and requires cooperation from the guest during migration, so 
no special support by the HV is required.  You can just signal to the 
guest that it is about to be migrated and needs to do the umount/rename 
and wait until after it has been migrated to signal it again to remount.

If the external storage is actually your root filesystem then you are 
probably s.o.l at this point.


Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071018/9c145dc6/attachment-0001.bin>

More information about the libvir-list mailing list