From the course: CompTIA Linux+ (XK0-005) Cert Prep

Unlock the full course today

Join today to access over 24,300 courses taught by industry experts.

Reduce existing logical volumes

Reduce existing logical volumes - Linux Tutorial

From the course: CompTIA Linux+ (XK0-005) Cert Prep

Reduce existing logical volumes

- [Instructor] A lot of functionality has been added to the lvresize command, including the ability to unmount and remount volumes, as well as resize file systems. We're going to walk through the manual process first, as old versions may not support these features. At the end of this video, I'll show you the simpler and more automated way of using the new features of lvresize. We should still have our previous logical volume mounted at /dev/vgdata/lvdata. Let's verify this with df. Type in df space -h and hit Enter. Although it's a good idea to always unmount a file system when resizing it, we can leave it mounted when increasing the size. However, when we decrease the size, we have no choice but to unmount the volume first. Also, take note that some file systems like XFS cannot be resized down, only up. Let's unmount our logical volume now. Type in sudo space umount space /dev/vgdata/lvdata and hit Enter. Verify…

Contents