Bug 1712315
Summary: | pcs config restore fails with Invalid cross-device link | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Takayuki Nagata <tnagata> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.8 | CC: | cfeist, cluster-maint, idevat, mnovacek, nhostako, omular, tojeline | ||||
Target Milestone: | rc | Keywords: | 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: |
|
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 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 |
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>`