| Summary: | pcs should handle full cluster config backup/restore | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Fabio Massimo Di Nitto <fdinitto> | ||||
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.0 | CC: | cluster-maint, djansa, jpokorny, rsteiger, slevine, tojeline | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | pcs-0.9.126-1.el7 | Doc Type: | Enhancement | ||||
| Doc Text: |
Feature:
Provide an easy way to backup and restore cluster configuration across the cluster.
Reason:
Backup and restore of the cluster configuration files on all nodes is a non-trivial task.
Result:
User is able to backup and restore the cluster configuration files easily.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 1129859 1138242 (view as bug list) | Environment: | |||||
| Last Closed: | 2015-03-05 09:18:26 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: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1111381, 1113520, 1129859, 1138242, 1281408 | ||||||
| Attachments: |
|
||||||
|
Description
Fabio Massimo Di Nitto
2013-10-29 19:03:33 UTC
Created attachment 934080 [details] proposed fix test: 1. check cluster status pcs status 2. backup the config files pcs config backup mybackup.tar.bz2 3. destroy the cluster pcs cluster destroy --all 4. restore the config files pcs config restore mybackup.tar.bz2 5. start the cluster pcs cluster start --all 6. check cluster status and verify it is the same as it was before cluster destruction pcs status Before Fix:
[root@rh70-node1 ~]# rpm -q pcs
pcs-0.9.115-32.el7.x86_64
[root@rh70-node1 ~]# pcs config backup
{prints cluster configuration}
[root@rh70-node1 ~]# pcs config restore
{prints cluster configuration}
After Fix:
[root@rh70-node1 ~]# rpm -q pcs
pcs-0.9.126-1.el7.x86_64
[root@rh70-node1 ~]# pcs status nodes both
Corosync Nodes:
Online: rh70-node1 rh70-node2
Offline:
Pacemaker Nodes:
Online: rh70-node1 rh70-node2
Standby:
Offline:
[root@rh70-node1 ~]# pcs status resources
dummy (ocf::heartbeat:Dummy): Started
[root@rh70-node1 ~]# pcs config backup test.tar.bz2
[root@rh70-node1 ~]# pcs cluster destroy --all
rh70-node1: Successfully destroyed cluster
rh70-node2: Successfully destroyed cluster
[root@rh70-node1 ~]# pcs cluster start --all
Error: Unable to read /etc/corosync/corosync.conf: No such file or directory
[root@rh70-node1 ~]# pcs config restore test.tar.bz2
rh70-node1: Succeeded
rh70-node2: Succeeded
[root@rh70-node1 ~]# pcs cluster start --all
rh70-node1: Starting Cluster...
rh70-node2: Starting Cluster...
[root@rh70-node1 ~]# pcs status nodes both
Corosync Nodes:
Online: rh70-node1 rh70-node2
Offline:
Pacemaker Nodes:
Online: rh70-node1 rh70-node2
Standby:
Offline:
[root@rh70-node1 ~]# pcs status resources
dummy (ocf::heartbeat:Dummy): Started
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-2015-0415.html |