Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning RHEL Networking

You're reading from   Learning RHEL Networking Gain Linux administration skills by learning new networking concepts in Red Hat Enterprise Linux 7

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785287831
Length 216 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Introducing Enterprise Linux 7 FREE CHAPTER 2. Configuring Network Settings 3. Configuring Key Network Services 4. Implementing iSCSI SANs 5. Implementing btrfs 6. File Sharing with NFS 7. Implementing Windows Shares with Samba 4 8. Integrating RHEL 7 into Microsoft Active Directory Domains 9. Deploying the Apache HTTPD Server 10. Securing the System with SELinux 11. Network Security with firewalld Index

Adding devices to the btrfs filesystem


We have already seen a little of volume management using LVM when we looked at iSCSI in Chapter 4, Implementing iSCSI SANs, and it's not exactly simple.

Volume management the old way

The following commands are used in order to manage the disk volumes in the old, traditional way:

# pvcreate /dev/sde1
# vgextend vg1 /dev/sde1
# lvextend -L+1000M /dev/vg1/data_lv
# resize2fs /dev/vg1/data

Volume management with btrfs

To start with, we will return the volume back to its original size before we add the second disk. Using the max option, we will ensure that the btrfs filesystem uses the maximum space available on the single disk we have in place so far:

# btrfs filesystem resize max /data/simple

In LVM and traditional filesystems, there were a total of four commands to be executed. In btrfs, we can perform this with a single command:

# btrfs device add /dev/sde /data/simple

This is all we need to do. The device is added and the filesystem is automatically increased...

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 ₹800/month. Cancel anytime