How do i move a resource to another cluster node using pcs?
-
The output shows WebFS is running on u2priv, we want to move it to u1priv.
root@u2:~# pcs status Cluster name: pacemaker1 Stack: corosync Current DC: u1priv (version 1.1.15-e174ec8) - partition with quorum Last updated: Tue Apr 18 17:42:35 2017 Last change: Tue Apr 18 17:02:43 2017 by root via cibadmin on u1priv 2 nodes and 6 resources configured Online: [ u1priv u2priv ] Full list of resources: Cluster_Server (ocf::heartbeat:IPaddr2): Started u1priv WebSite (ocf::heartbeat:apache): Stopped Master/Slave Set: WebDataClone [WebData] Masters: [ u2priv ] Slaves: [ u1priv ] WebFS (ocf::heartbeat:Filesystem): Started u2priv my_fence (stonith:fence_vbox): Started u1priv Daemon Status: corosync: active/disabled pacemaker: active/disabled pcsd: active/enabled
Run the move resource command. (no output)
# pcs resource move WebFS u1priv
Check the status of the resources again. WebFS is not on node u1priv
# pcs resource Cluster_Server (ocf::heartbeat:IPaddr2): Started u1priv WebSite (ocf::heartbeat:apache): Started u1priv Master/Slave Set: WebDataClone [WebData] Masters: [ u1priv ] Slaves: [ u2priv ] WebFS (ocf::heartbeat:Filesystem): Started u1priv
© Lightnetics 2024