Bug 1286650
Summary: | An option to do unsafe live migration of VirtualDomain | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Oyvind Albrigtsen <oalbrigt> | ||||
Component: | resource-agents | Assignee: | Oyvind Albrigtsen <oalbrigt> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.8 | CC: | agk, cluster-maint, cluster-qe, djansa, fdinitto, urusha.v1.0 | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | resource-agents-3.9.5-28.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1242181 | Environment: | |||||
Last Closed: | 2016-05-10 19:15:38 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1242181 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Updated patch for RHEL6 and tested and confirmed that it's working. Before: Unable to do live migration when cache mode isnt set to none. After: Able to do live migration when cache mode isnt set to none by setting migrate_options="--unsafe" # pcs resource create VM VirtualDomain config=/etc/libvirt/qemu/vm.xml migration_transport=ssh meta allow-migrate=true Before: # rpm -q resource-agents resource-agents-3.9.5-24.el6_7.1.x86_64 # pcs resource move VM host2 # tail -f /var/log/cluster/corosync.log Live migration fails with: Unsafe migration: Migration may lead to data corruption if disks use cache != none After: # rpm -q resource-agents resource-agents-3.9.5-28.el6.x86_64 # pcs resource update VM migrate_options="--unsafe" # pcs resource move VM host2 # tail -f /var/log/cluster/corosync.log INFO: vmhost: Starting live migration to host2 (using virsh --connect=qemu:///system --quiet migrate --live --unsafe vmhost qemu+ssh://host2/system ). INFO: vmhost: live migration to host2 succeeded. without migrate_options: VirtualDomain(vm)[14290]: 2016/04/12_22:52:09 INFO: rhel6.5: Starting live migration to duck-01 (using virsh --connect=qemu:///system --quiet migrate --live rhel6.5 qemu+ssh://duck-01/system ). with migrate_options="--unsafe" VirtualDomain(vm)[15261]: 2016/04/12_22:54:39 INFO: rhel6.5: Starting live migration to duck-01 (using virsh --connect=qemu:///system --quiet migrate --live --unsafe rhel6.5 qemu+ssh://duck-01/system ). The domain migrated successfully. Thing to add here: * if GFS2 is used that migration is already considered safe and --unsafe is not needed (same applies to OCFS, SMB and NFS shares and perhaps others). Verified with resource-agents-3.9.5-34.el6.x86_64. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0735.html |
Created attachment 1100831 [details] Working patch