Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
CentOS High Performance

You're reading from   CentOS High Performance Create high availability clusters to enhance system performance using CentOS 7

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785288685
Length 146 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Cánepa Cánepa
Author Profile Icon Cánepa
Cánepa
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

CentOS High Performance
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Cluster Basics and Installation on CentOS 7 FREE CHAPTER 2. Installing Cluster Services and Configuring Network Components 3. A Closer Look at High Availability 4. Real-world Implementations of Clustering 5. Monitoring the Cluster Health 6. Measuring and Increasing Performance Index

Setting up a high-availability database with replicated storage


The last part of this chapter focuses on setting up a HA MariaDB database with replicated storage. To begin, we will have to set up another DRBD resource as we did earlier. We will review the necessary steps here for clarity:

  1. Add another virtual disk to each virtual machine (a 2 GB disk will do).

  2. Create a partition on the newly added disk and then go through the process of creating a Physical Volume (PV) on /dev/ sdc1, a Volume Group (VG, named drbd_db_vg), and finally a Logical Volume (LV, drbd_db_vol):

    parted /dev/sdc mklabel msdos
    parted /dev/sdc mkpart p 0% 100%
    pvcreate /dev/sdc1
    vgcreate drbd_db_vg /dev/sdc1
    lvcreate -n drbd_db_vol -l 100%FREE drbd_db_
    vg
    
  3. Create a configuration file (/etc/drbd.d/drbd1.res) for the new DRBD resource (drbd1), and based on the configuration file for the first replicated storage resource, edit the settings accordingly and use a different port:

    resource drbd1 {
            disk /dev/drbd_db_vg/drbd_db_vol...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images