RHCSA RHEL 8 – Extend existing logical volumes

Extend existing logical volumes

Your support on Ko-Fi is much appreciated: https://ko-fi.com/csg_yt

More information on Sophos Home Antivirus: http://bit.ly/SophosHP

More information about Hostinger VPS: http://bit.ly/H-VPS

This video is based on RHEL 8. Video to cover the section ‘Extend existing logical volumes’ for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: http://bit.ly/rhcsa8

Notes from the video:

Check current logical volume size:

# lvs

or

# lvdisplay

Confirm enough room in the virtual volume:

# vgs

or

# vgdisplay

To extend the logical volume:

# lvextend -L+2G /dev/vg1/lv1

Check that the volume has extened:

# lvdisplay

Confirm the filesystem type used on the logical volume:

# df -Th

Once confirmed run either the xfs filesystem resize command or the ext3/4:

EXT3/4:

# resize2fs /dev/vg1/lv1

XFS (use the mount point):
# xfs_growfs /mnt

Confirm the resize is successful:

# df -h

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started