Installation guide

3. Execute service l uci restore-d b /var/li b/l uci /d ata/lucibackupfile where
lucibackupfile is the backup file to restore.
For example, the following command restores the lu ci configuration information that was
stored in the backup file l uci -backup20 110 9 230 6 2526 . d b:
service luci restore-db /var/lib/luci/data/luci-
backup20110923062526.db
4. Execute service l uci start.
If you need to restore a lu ci database but you have lost the ho st. pem file from the machine on
which you created the backup because of a complete reinstallation, for example, you will need to add
your clusters back to lu ci manually in order to re-authenticate the cluster nodes.
Use the following procedure to restore a lu ci database onto a different machine than the one on
which the backup was created. Note that in addition to restoring the database itself, you also need to
copy the SSL certificate file to ensure that lu ci has been authenticated to the ricci nodes. In this
example, the backup is created on the machine l uci 1 and the backup is restored on the machine
l uci 2.
1. Execute the following sequence of commands to create a lu ci backup on l uci 1 and copy
both the SSL certificate file and the lu ci backup onto l uci 2.
[root@ luci1 ~]# servi ce luci sto p
[root@ luci1 ~]# servi ce luci backup-d b
[root@ luci1 ~]# servi ce luci l i st-backups
/var/lib/luci/data/luci-backup20120504134051.db
[root@ luci1 ~]# scp /var/l i b/l uci /certs/ho st. pem
/var/l i b/l uci /d ata/l uci -backup20 120 50 4 134 0 51. d b ro o t@ l uci 2:
2. On the l uci 2 machine, ensure that lu ci has been installed and is not running. Install the
package, if is not already installed.
3. Execute the following sequence of commands to ensure that the authentications are in place
and to restore the lu ci database from l uci 1 onto l uci 2.
[root@ luci2 ~]# cp host. pem /var/l i b/l uci /certs/
[root@ luci2 ~]# cho wn luci : /var/l i b/l uci /certs/ho st. pem
[root@ luci2 ~]# /etc/ini t. d /l uci resto re-d b ~ /l uci -
backup20 120 50 4 134 0 51. d b
[root@ luci2 ~]# shred -u ~ /ho st. pem ~/l uci -
backup20 120 50 4 134 0 51. d b
[root@ luci2 ~]# service l uci start
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
66