nvazquez opened a new pull request #2983: KVM live storage migration intra 
cluster from NFS source and destination
URL: https://github.com/apache/cloudstack/pull/2983
 
 
   ## Description
   
   Feature Specification: 
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=95653548
   
   Live storage migration on KVM under these conditions:
   - From source and destination hosts within the same cluster
   - From NFS primary storage to NFS cluster-wide primary storage
   - Source NFS and destination NFS storage mounted on hosts
   
   In order to enable this functionality, database should be updated in order 
to enable live storage capacibilty for KVM, if previous conditions are met. 
This is due to existing conflicts between qemu and libvirt versions. This has 
been tested on CentOS 6 hosts.
   
   Additional notes:
   
   1. To use this feature set the `storage_motion_supported=1` in the 
hypervisor_capability table for KVM. This is done by default as the feature may 
not work in some environments, read below.
   2. This feature of online storage+VM migration for KVM will only work with 
CentOS6 and possible Ubuntu as KVM hosts but not with CentOS7 due to:
   - https://bugs.centos.org/view.php?id=14026
   - https://bugzilla.redhat.com/show_bug.cgi?id=1219541
   On CentOS7 the error we see is: `" error: unable to execute QEMU command 
'migrate': this feature or command is not currently supported"` (reference 
https://ask.openstack.org/en/question/94186/live-migration-unable-to-execute-qemu-command-migrate/).
 Reading through various lists looks like the migrate feature with qemu may be 
available with paid versions of RHEL-EV but not centos7 however this works with 
CentOS6.
   
   Fix for CentOS 7:
   - Create repo file on /etc/yum.repos.d/:
   ````
   [qemu-kvm-rhev]
   name=oVirt rebuilds of qemu-kvm-rhev
   baseurl=http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/
   
mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-3.5-el7Server
   enabled=1
   skip_if_unavailable=1
   gpgcheck=0
   ````
   - `yum install qemu-kvm-common-ev-2.3.0-29.1.el7.x86_64 
qemu-kvm-ev-2.3.0-29.1.el7.x86_64 qemu-img-ev-2.3.0-29.1.el7.x86_64`
   - Reboot host
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## Screenshots (if appropriate):
   
   ## How Has This Been Tested?
   Tested on environment having 2 KVM CentOS 6 hosts.
   
   Note: CentOS 7 hosts report an issue around qemu version:
   `org.libvirt.LibvirtException: internal error: unable to execute QEMU 
command 'migrate': this feature or command is not currently supported`
   
   Fix for CentOS 7:
   - Create repo file on /etc/yum.repos.d/:
   ````
   [qemu-kvm-rhev]
   name=oVirt rebuilds of qemu-kvm-rhev
   baseurl=http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/
   
mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-3.5-el7Server
   enabled=1
   skip_if_unavailable=1
   gpgcheck=0
   ````
   - `yum install qemu-kvm-common-ev-2.3.0-29.1.el7.x86_64 
qemu-kvm-ev-2.3.0-29.1.el7.x86_64 qemu-img-ev-2.3.0-29.1.el7.x86_64`
   - Reboot host
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to