Book Image

CentOS 7 Server Deployment Cookbook

By : Timothy Boronczyk, IRAKLI NADAREISHVILI
Book Image

CentOS 7 Server Deployment Cookbook

By: Timothy Boronczyk, IRAKLI NADAREISHVILI

Overview of this book

CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You’ll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS.
Table of Contents (18 chapters)
CentOS 7 Server Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Creating a RAID


In this recipe, you'll learn how to configure a redundant array of disks (RAID). Configuring an array of disks to provide redundant storage is an excellent way to protect your data from drive failures. For example, if your data resides on a single disk and that drive fails, then the data is lost. You'll have to replace the drive and restore the data from your latest backup. But if two disks are in a RAID-1 configuration, your data is mirrored and can still be accessed from the working drive when the other fails. The failure doesn't impact access to the data and you can replace the faulty drive at a more convenient time.

Getting ready

This recipe requires a working CentOS system and elevated privileges. It assumes that at least two new disks have been installed (identified as /dev/sdb and /dev/sdc) and we will partition and configure them.

How to do it...

Perform the following steps to create a RAID:

  1. Use lsblk to identify the new storage devices.

  2. Launch cfdisk to partition the first...