Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying CentOS 7 Server Deployment Cookbook
  • Table Of Contents Toc
CentOS 7 Server Deployment Cookbook

CentOS 7 Server Deployment Cookbook

By : Boronczyk, NADAREISHVILI
5 (1)
close
close
CentOS 7 Server Deployment Cookbook

CentOS 7 Server Deployment Cookbook

5 (1)
By: Boronczyk, 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 (13 chapters)
close
close

Removing an existing LVM volume


The flexibility of LVM allows us to allocate the pooled storage of physical volumes however we see fit. This recipe shows us how to delete a logical volume and free its storage back to the volume group for use by other logical volumes.

Getting ready

This recipe requires a CentOS system with administrative privileges provided by logging in with the root account or using sudo. It assumes that a logical volume has been created as described in the preceding recipe.

How to do it...

Perform the following steps to remove an LVM volume:

  1. Unmount the filesystem with umount:

           umount /mnt 
    
    
  2. Open /etc/fstab and verify that there isn't an entry to automatically mount the filesystem. If there is, remove the entry, save your changes, and close the file.

  3. Use lvremove to delete the logical volume:

    lvremove vg0/myvol
    
  4. Review the output of vgs to verify the removal.

How it works...

Deleting a volume frees its storage back to the volume group, which can then be used to create...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
CentOS 7 Server Deployment Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon