Bug 1712315

Summary: pcs config restore fails with Invalid cross-device link
Product: Red Hat Enterprise Linux 7 Reporter: Takayuki Nagata <tnagata>
Component: pcsAssignee: Tomas Jelinek <tojeline>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 7.8CC: cfeist, cluster-maint, idevat, mnovacek, nhostako, omular, tojeline
Target Milestone: rcKeywords: Patch, Reproducer
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pcs-0.9.168-1.el7 Doc Type: Bug Fix
Doc Text:
Cause: /tmp is not located on the same disk partition as /etc Consequence: The 'pcs config restore' command fails with "unable to restore the cluster: [Errno 18] Invalid cross-device link" error. Fix: Move the files from backup to their desired locations using a function which can handle the files being on different partitions. Result: The 'pcs config restore' command works.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 19:09:41 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:    
Bug Blocks: 1729984    
Attachments:
Description Flags
proposed fix none

Comment 2 Tomas Jelinek 2019-07-01 13:22:01 UTC
Created attachment 1586300 [details]
proposed fix

Test:

1) make sure /tmp is on a different disk partition than /etc (for example mount /tmp as tmpfs)
2) run `pcs config restore <backup file>`

Comment 4 Ivan Devat 2019-08-05 11:17:32 UTC
After Fix:

[kid76 ~] $ rpm -q pcs
pcs-0.9.168-1.el7.x86_64

[kid76 ~] $ mount -t tmpfs -o size=25M tmpfs /tmp
[kid76 ~] $ pcs config backup test.backup
[kid76 ~] $ mv test.backup.tar.bz2 /tmp
[kid76 ~] $ pcs cluster stop --all
lion76: Stopping Cluster (pacemaker)...
kid76: Stopping Cluster (pacemaker)...
lion76: Stopping Cluster (corosync)...
kid76: Stopping Cluster (corosync)...
[kid76 ~] $ pcs config restore /tmp/test.backup.tar.bz2
kid76: Succeeded
lion76: Succeeded

Comment 8 errata-xmlrpc 2020-03-31 19:09:41 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://access.redhat.com/errata/RHBA-2020:0996