RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1286650 - An option to do unsafe live migration of VirtualDomain
Summary: An option to do unsafe live migration of VirtualDomain
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1242181
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-30 12:08 UTC by Oyvind Albrigtsen
Modified: 2016-05-10 19:15 UTC (History)
6 users (show)

Fixed In Version: resource-agents-3.9.5-28.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 1242181
Environment:
Last Closed: 2016-05-10 19:15:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Working patch (5.07 KB, patch)
2015-12-01 10:54 UTC, Oyvind Albrigtsen
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0735 0 normal SHIPPED_LIVE resource-agents bug fix and enhancement update 2016-05-10 22:28:24 UTC

Comment 2 Oyvind Albrigtsen 2015-12-01 10:54:35 UTC
Created attachment 1100831 [details]
Working patch

Comment 3 Oyvind Albrigtsen 2015-12-01 10:55:11 UTC
Updated patch for RHEL6 and tested and confirmed that it's working.

Comment 4 Oyvind Albrigtsen 2015-12-21 12:29:16 UTC
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"

Comment 5 Oyvind Albrigtsen 2016-01-08 09:54:01 UTC
# 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.

Comment 7 Jaroslav Kortus 2016-04-12 21:06:42 UTC
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.

Comment 9 errata-xmlrpc 2016-05-10 19:15:38 UTC
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


Note You need to log in before you can comment on or make changes to this bug.