Skip to Content
Learning RHEL Networking
book

Learning RHEL Networking

by Andrew Mallett
June 2015
Intermediate to advanced
216 pages
4h 48m
English
Packt Publishing
Content preview from Learning RHEL Networking

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Mohamed Alibi, BHASKARJYOTI ROY
Troubleshooting CentOS

Troubleshooting CentOS

Jonathan Hobson

Publisher Resources

ISBN: 9781785287831