
Customer always think that new xCAT management node will be the same with the old one.
In doc, we assume the first xcat management node is active, the second node is passive at first; If the first xCAT management node is broken, we can use backup data to restore original xCAT in the second node with the same host name and ip;
We backup all useful xcat data from xcat management node to backup server, then we use these data to restore xCAT in another node.
The following example is based on redhat7.0
1.1, backup xCAT important files and directories:
/install
~/.xcat
/etc/xcat
1.2, backup ssh related files:
/etc/ssh
~/.ssh
1.3, backup host files:
/etc/resolv.conf
/etc/hosts
1.4, backup yum resource files:
/etc/yum.repos.d
1.5, backup conserver conf files:
/etc/conserver.cf
1.6, backup DNS related files:
/etc/named
/etc/named.conf
/etc/named.iscdlv.key
/etc/named.root.key
/etc/rndc.key
/etc/sysconfig/named
/var/named
1.7, backup dhcp files:
/etc/dhcp
/var/lib/dhcpd
/etc/sysconfig/dhcpd
/etc/sysconfig/dhcpd6
1.8, backup apache:
/etc/httpd
/var/www
1.9, backup tftp files:
/tftpboot
1.10, backup NFS (optional):
/etc/exports
/var/lib/nfs
/etc/sysconfig/nfs
1.11, (optional)
Besides the files mentioned above, there may be some additional customization files and production files that need to be backup, depending on your local unique requirements. Here are some example files that can be considered:
/.profile
/.rhosts
/etc/auto_master
/etc/auto/maps/auto.u
/etc/motd
/etc/security/limits
/etc/netscvc.conf
/etc/ntp.conf
/etc/inetd.conf
/etc/passwd
/etc/security/passwd
/etc/group
/etc/security/group
/etc/services
/etc/inittab(andmore)
1.12, Backup the xCAT database tables for the current configuration, using command:
dumpxCATdb -p <yourbackupdir>
2.1, Power off old xcat management server before configure new xcat management server.
2.2, Configure new xcat management server using the same ip and hostname with old xcat management server;
2.3, Overwrite files/directories methioned in above 1.2,1.3,1.4 from backup server to new xcat management server;
2.4, Download xcat-core and xcat-dep tar ball, then install xCAT in new xcat management server;
2.5, To restore the xCAT database from the /dbbackup/db directory, enter:
restorexCATdb -p /dbbackup/db
Or to restore the xCAT database including auditlog and eventlog from the /dbbackup/db directory, enter:
restorexCATdb -a -p /dbbackup/db
2.6, Overwrite left files/directories methioned in above 1.1,1.5,1.6,1.7,1.8,1.9,1.10,1.11
2.7, check service for xcat, dns, dhcp