Advertisement
digimer

Untitled

Jan 2nd, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. [root@an-c03n01 ~]# pcs config show --full
  2. Cluster Name: an-cluster-03
  3. Corosync Nodes:
  4. an-c03n01.alteeve.ca an-c03n02.alteeve.ca
  5. Pacemaker Nodes:
  6. an-c03n01.alteeve.ca an-c03n02.alteeve.ca
  7.  
  8. Resources:
  9. Master: WebDataClone
  10. Meta Attrs: master-node-max=1 clone-max=2 clone-node-max=1 notify=true master-max=2
  11. Resource: WebData (class=ocf provider=linbit type=drbd)
  12. Attributes: drbd_resource=r0
  13. Operations: monitor interval=60s (WebData-monitor-60s)
  14. Clone: dlm-clone
  15. Meta Attrs: clone-max=2 clone-node-max=1
  16. Resource: dlm (class=ocf provider=pacemaker type=controld)
  17. Operations: monitor interval=60s (dlm-monitor-interval-60s)
  18. Clone: ClusterIP-clone
  19. Meta Attrs: globally-unique=true clone-max=2 clone-node-max=2
  20. Resource: ClusterIP (class=ocf provider=heartbeat type=IPaddr2)
  21. Attributes: ip=192.168.122.10 cidr_netmask=32 clusterip_hash=sourceip
  22. Operations: monitor interval=30s (ClusterIP-monitor-interval-30s)
  23. Clone: WebFS-clone
  24. Resource: WebFS (class=ocf provider=heartbeat type=Filesystem)
  25. Attributes: device=/dev/drbd0 directory=/var/www/html fstype=gfs2
  26. Operations: monitor interval=60s (WebFS-monitor-interval-60s)
  27. Clone: WebSite-clone
  28. Resource: WebSite (class=ocf provider=heartbeat type=apache)
  29. Attributes: configfile=/etc/httpd/conf/httpd.conf statusurl=http://127.0.0.1/server-status
  30. Operations: monitor interval=60s (WebSite-monitor-interval-60s)
  31.  
  32. Stonith Devices:
  33. Resource: fence_n01_virsh (class=stonith type=fence_virsh)
  34. Attributes: pcmk_host_list=an-c03n01.alteeve.ca ipaddr=lemass login=root passwd_script=/root/lemass.pw delay=15 port=an-c03n01
  35. Operations: monitor interval=60s (fence_n01_virsh-monitor-interval-60s)
  36. Resource: fence_n02_virsh (class=stonith type=fence_virsh)
  37. Attributes: pcmk_host_list=an-c03n02.alteeve.ca ipaddr=lemass login=root passwd_script=/root/lemass.pw port=an-c03n02
  38. Operations: monitor interval=60s (fence_n02_virsh-monitor-interval-60s)
  39. Fencing Levels:
  40.  
  41. Location Constraints:
  42. Resource: ClusterIP-clone
  43. Enabled on: an-c03n01.alteeve.ca (score:INFINITY) (role: Started) (id:cli-prefer-ClusterIP)
  44. Ordering Constraints:
  45. promote WebDataClone then start WebFS-clone (Mandatory) (id:order-WebDataClone-WebFS-mandatory)
  46. start WebFS-clone then start WebSite-clone (Mandatory) (id:order-WebFS-WebSite-mandatory)
  47. Colocation Constraints:
  48. WebFS-clone with WebDataClone (INFINITY) (with-rsc-role:Master) (id:colocation-WebFS-WebDataClone-INFINITY)
  49. WebSite-clone with ClusterIP-clone (INFINITY) (id:colocation-WebSite-ClusterIP-INFINITY)
  50. WebSite-clone with WebFS-clone (INFINITY) (id:colocation-WebSite-WebFS-INFINITY)
  51.  
  52. Cluster Properties:
  53. cluster-infrastructure: corosync
  54. dc-version: 1.1.10-19.el7-368c726
  55. last-lrm-refresh: 1388723732
  56. no-quorum-policy: ignore
  57. stonith-enabled: true
  58.  
  59.  
  60. [root@an-c03n02 ~]# pcs status
  61. Cluster name: an-cluster-03
  62. Last updated: Thu Jan 2 23:40:14 2014
  63. Last change: Thu Jan 2 23:39:31 2014 via crm_resource on an-c03n01.alteeve.ca
  64. Stack: corosync
  65. Current DC: an-c03n01.alteeve.ca (1) - partition with quorum
  66. Version: 1.1.10-19.el7-368c726
  67. 2 Nodes configured
  68. 12 Resources configured
  69.  
  70.  
  71. Online: [ an-c03n01.alteeve.ca an-c03n02.alteeve.ca ]
  72.  
  73. Full list of resources:
  74.  
  75. fence_n01_virsh (stonith:fence_virsh): Started an-c03n01.alteeve.ca
  76. fence_n02_virsh (stonith:fence_virsh): Started an-c03n02.alteeve.ca
  77. Master/Slave Set: WebDataClone [WebData]
  78. Masters: [ an-c03n01.alteeve.ca an-c03n02.alteeve.ca ]
  79. Clone Set: dlm-clone [dlm]
  80. Started: [ an-c03n01.alteeve.ca an-c03n02.alteeve.ca ]
  81. Clone Set: ClusterIP-clone [ClusterIP] (unique)
  82. ClusterIP:0 (ocf::heartbeat:IPaddr2): Started an-c03n01.alteeve.ca
  83. ClusterIP:1 (ocf::heartbeat:IPaddr2): Started an-c03n01.alteeve.ca
  84. Clone Set: WebFS-clone [WebFS]
  85. Started: [ an-c03n01.alteeve.ca an-c03n02.alteeve.ca ]
  86. Clone Set: WebSite-clone [WebSite]
  87. Started: [ an-c03n01.alteeve.ca ]
  88. Stopped: [ an-c03n02.alteeve.ca ]
  89.  
  90. PCSD Status:
  91. an-c03n01.alteeve.ca:
  92. an-c03n01.alteeve.ca: Online
  93. an-c03n02.alteeve.ca:
  94. an-c03n02.alteeve.ca: Online
  95.  
  96. Daemon Status:
  97. corosync: active/disabled
  98. pacemaker: active/disabled
  99. pcsd: active/enabled
  100.  
  101.  
  102. [root@an-c03n01 ~]# ps aux | grep httpd
  103. root 19256 0.0 0.1 207188 3184 ? Ss 23:39 0:00 /sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf -c PidFile /var/run//httpd.pid
  104. apache 19259 0.0 0.1 207320 3572 ? S 23:39 0:00 /sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf -c PidFile /var/run//httpd.pid
  105. apache 19260 0.0 0.1 207320 3572 ? S 23:39 0:00 /sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf -c PidFile /var/run//httpd.pid
  106. apache 19261 0.0 0.1 207188 2812 ? S 23:39 0:00 /sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf -c PidFile /var/run//httpd.pid
  107. apache 19263 0.0 0.1 207188 2812 ? S 23:39 0:00 /sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf -c PidFile /var/run//httpd.pid
  108. apache 19264 0.0 0.1 207320 3572 ? S 23:39 0:00 /sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf -c PidFile /var/run//httpd.pid
  109. root 19850 0.0 0.0 112632 940 pts/0 R+ 23:40 0:00 grep --color=auto httpd
  110.  
  111.  
  112. [root@an-c03n02 ~]# ps aux | grep httpd
  113. root 13106 0.0 0.0 112632 940 pts/1 S+ 23:40 0:00 grep --color=auto httpd
  114.  
  115.  
  116. [root@an-c03n02 ~]# systemctl start httpd.service
  117. [root@an-c03n02 ~]# systemctl status httpd.service
  118. httpd.service - The Apache HTTP Server
  119. Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
  120. Active: active (running) since Thu 2014-01-02 23:41:11 EST; 3s ago
  121. Main PID: 13125 (httpd)
  122. Status: "Processing requests..."
  123. CGroup: /system.slice/httpd.service
  124. ├─13125 /usr/sbin/httpd -DFOREGROUND
  125. ├─13126 /usr/sbin/httpd -DFOREGROUND
  126. ├─13127 /usr/sbin/httpd -DFOREGROUND
  127. ├─13128 /usr/sbin/httpd -DFOREGROUND
  128. ├─13129 /usr/sbin/httpd -DFOREGROUND
  129. └─13130 /usr/sbin/httpd -DFOREGROUND
  130.  
  131. Jan 02 23:41:11 an-c03n02.alteeve.ca systemd[1]: Started The Apache HTTP Server.
  132. [root@an-c03n02 ~]# ps aux | grep httpd
  133. root 13125 0.1 0.2 207188 4616 ? Ss 23:41 0:00 /usr/sbin/httpd -DFOREGROUND
  134. apache 13126 0.0 0.1 207188 2808 ? S 23:41 0:00 /usr/sbin/httpd -DFOREGROUND
  135. apache 13127 0.0 0.1 207188 2808 ? S 23:41 0:00 /usr/sbin/httpd -DFOREGROUND
  136. apache 13128 0.0 0.1 207188 2808 ? S 23:41 0:00 /usr/sbin/httpd -DFOREGROUND
  137. apache 13129 0.0 0.1 207188 2808 ? S 23:41 0:00 /usr/sbin/httpd -DFOREGROUND
  138. apache 13130 0.0 0.1 207188 2808 ? S 23:41 0:00 /usr/sbin/httpd -DFOREGROUND
  139. root 13174 0.0 0.0 112632 940 pts/1 S+ 23:41 0:00 grep --color=auto httpd
  140. [root@an-c03n02 ~]# systemctl stop httpd.service
  141. [root@an-c03n02 ~]# ps aux | grep httpd
  142. root 13181 0.0 0.0 112632 940 pts/1 S+ 23:41 0:00 grep --color=auto httpd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement