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 new LVM volume


Logical Volume Manager (LVM) abstracts data storage away from the physical hardware, which lets us configure the partitions on one or more physical drives to act as one logical device. We also have the freedom to later add or remove physical partitions and grow or shrink the logical device. This recipe show's you how to create a new LVM group and a logical device from the group's storage.

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 these steps to set up a new LVM group and create a volume:

  1. Use lsblk to identify the new storage devices.

    Note

    You can set up LVM with RAID storage as well. Skip to step 5 and replace the partitions with RAID devices (for example, /dev/md/md0) in the given commands.

  2. Launch cfdisk to partition the first drive and create a single partition that...