Cluster FAQ
Some useful tips and tricks for managing your pacemaker cluster.
I. Change your virtual ip address
|
II. Change your text editor
III. Add a new node to your cluster
Step by step:
- Install pacemaker on the new node
- Make sure that the new is on the same subnet as your current cluster nodes
- Copy using
scp
your/etc/corosync/corosync.conf
and your/etc/authkey
on the new node - Start the corosync daemon on the new node
service corosync start
IV. Put a node on standy
# crm |
V. Migrate a resource
# crm |
VI. Stop and delete a cluster resource
# crm resource stop [your-resource] |
VII. On which node is running your resource?
# crm_resource -r failover-ip -W |
VIII. Resource OCF details
You can list the resource agent from each classes (lsb, ocf…) and from each provider (hearbeat…)
# crm ra list ocf heartbeat
AoEtarget AudibleAlarm CTDB ClusterMon Delay Dummy EvmsSCC Evmsd Filesystem ICP
IPaddr IPaddr2 IPsrcaddr IPv6addr LVM LinuxSCSI MailTo ManageRAID ManageVE Pure-FTPd
Raid1 Route SAPDatabase SAPInstance SendArp ServeRAID SphinxSearchDaemon Squid Stateful SysInfo
VIPArip VirtualDomain WAS WAS6 WinPopup Xen Xinetd anything apache db2
drbd eDir88 iSCSILogicalUnit iSCSITarget ids iscsi ldirectord mysql mysql-proxy nfsserver
oracle oralsnr pgsql pingd portblock postfix proftpd rsyncd scsi2reservation sfex
More ra details:
|
IX. How do I backup/restore my cluster configuration?
There are 2 ways to backup and/or restore your cluster configuration.
First you can backup/restore your CIB configuration.
CIB Backup:
CIB restore:
The second one is the xml configuration (which is the same but in xml format).
XML backup:
XML restore
# cibadmin --replace --xml-file _BACKUP_PATH_
X. Troubleshooting
Use the crm command, you can as many V
as you want.
Comments