设为首页 收藏本站
查看: 1978|回复: 0

[经验分享] Clusters from Scratch

[复制链接]

尚未签到

发表于 2015-9-10 11:45:24 | 显示全部楼层 |阅读模式
  [转载] http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/index.html
  [中文转载] http://wenku.baidu.com/view/b7073bdb50e2524de5187e1e.html
  Pacemaker 1.1



Clusters from Scratch

Creating Active/Passive and Active/Active Clusters on Fedora
Edition 5



Andrew Beekhof
Primary author
Red Hatandrew@beekhof.net
Raoul Scarazzini
Italian translation rasca@miamammausalinux.org
Dan Frîncu
Romanian translation df.cluster@gmail.com

Legal Notice

Copyright © 2009-2012 Andrew Beekhof.
The text of and illustrations in this document are licensed under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA")[1].
In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
In addition to the requirements of this license, the following activities are looked upon favorably:


  • If you are distributing Open Publication works on hardcopy or CD-ROM, you provide email notification to the authors of your intent to redistribute at least thirty days before your manuscript or media freeze, to give the authors time to provide updated documents. This notification should describe modifications, if any, made to the document.

  • All substantive modifications (including deletions) be either clearly marked up in the document or else described in an attachment to the document.

  • Finally, while it is not mandatory under this license, it is considered good form to offer a free copy of any hardcopy or CD-ROM expression of the author(s) work.


Abstract

The purpose of this document is to provide a start-to-finish guide to building an example active/passive cluster with Pacemaker and show how it can be converted to an active/active one.
The example cluster will use:


  • Fedora 13 as the host operating system

  • Corosync to provide messaging and membership services,

  • Pacemaker to perform resource management,

  • DRBD as a cost-effective alternative to shared storage,

  • GFS2 as the cluster filesystem (in active/active mode)

  • The crm shell for displaying the configuration and making changes

Given the graphical nature of the Fedora install process, a number of screenshots are included. However the guide is primarily composed of commands, the reasons for executing them and their expected outputs.
  Table of Contents
Preface1. Document Conventions1.1. Typographic Conventions1.2. Pull-quote Conventions1.3. Notes and Warnings2. We Need Feedback!1. Read-Me-First1.1. The Scope of this Document1.2. What Is Pacemaker?1.3. Pacemaker Architecture1.3.1. Internal Components1.4. Types of Pacemaker Clusters2. Installation2.1. OS Installation2.2. Cluster Software Installation2.2.1. Security Shortcuts2.2.2. Install the Cluster Software2.3. Before You Continue2.4. Setup2.4.1. Finalize Networking2.4.2. Configure SSH2.4.3. Short Node Names2.4.4. Configuring Corosync2.4.5. Propagate the Configuration3. Verify Cluster Installation3.1. Verify Corosync Installation3.2. Verify Pacemaker Installation4. Pacemaker Tools4.1. Using Pacemaker Tools5. Creating an Active/Passive Cluster5.1. Exploring the Existing Configuration5.2. Adding a Resource5.3. Perform a Failover5.3.1. Quorum and Two-Node Clusters5.3.2. Prevent Resources from Moving after Recovery6. Apache - Adding More Services6.1. Forward6.2. Installation6.3. Preparation6.4. Enable the Apache status URL6.5. Update the Configuration6.6. Ensuring Resources Run on the Same Host6.7. Controlling Resource Start/Stop Ordering6.8. Specifying a Preferred Location6.9. Manually Moving Resources Around the Cluster6.9.1. Giving Control Back to the Cluster7. Replicated Storage with DRBD7.1. Background7.2. Install the DRBD Packages7.3. Configure DRBD7.3.1. Create A Partition for DRBD7.3.2. Write the DRBD Config7.3.3. Initialize and Load DRBD7.3.4. Populate DRBD with Data7.4. Configure the Cluster for DRBD7.4.1. Testing Migration8. Conversion to Active/Active8.1. Requirements8.2. Adding CMAN Support8.2.1. Installing the required Software8.2.2. Configuring CMAN8.2.3. Redundant Rings8.2.4. Configuring CMAN Fencing8.2.5. Bringing the Cluster Online with CMAN8.3. Create a GFS2 Filesystem8.3.1. Preparation8.3.2. Create and Populate an GFS2 Partition8.4. Reconfigure the Cluster for GFS28.5. Reconfigure Pacemaker for Active/Active8.5.1. Testing Recovery9. Configure STONITH9.1. What Is STONITH9.2. What STONITH Device Should You Use9.3. Configuring STONITH9.4. ExampleA. Configuration RecapA.1. Final Cluster ConfigurationA.2. Node ListA.3. Cluster OptionsA.4. ResourcesA.4.1. Default OptionsA.4.2. FencingA.4.3. Service AddressA.4.4. DRBD - Shared StorageA.4.5. Cluster FilesystemA.4.6. ApacheB. Sample Corosync ConfigurationC. Further ReadingD. Revision HistoryIndex
  List of Figures
1.1. Conceptual Stack Overview1.2. The Pacemaker Stack1.3. Internal Components1.4. Active/Passive Redundancy1.5. N to N Redundancy2.1. Installation: Good choice2.2. Fedora Installation - Storage Devices2.3. Fedora Installation - Hostname2.4. Fedora Installation - Installation Type2.5. Fedora Installation - Default Partitioning2.6. Fedora Installation - Customize Partitioning2.7. Fedora Installation - Bootloader2.8. Fedora Installation - Software2.9. Fedora Installation - Installing2.10. Fedora Installation - Installation Complete2.11. Fedora Installation - First Boot2.12. Fedora Installation - Create Non-privileged User2.13. Fedora Installation - Date and Time2.14. Fedora Installation - Customize Networking2.15. Fedora Installation - Specify Network Preferences2.16. Fedora Installation - Activate Networking2.17. Fedora Installation - Bring up the Terminal

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-111908-1-1.html 上篇帖子: 从2013.7.8的项目会议看近期学习方向 下篇帖子: Mirantis Certification summary
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表