From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reduce existing logical volumes

Reduce existing logical volumes - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Reduce existing logical volumes

- [Instructor] A lot of functionality has been added to the LV resize command including the ability to unmount and remount the volume as well as resize the file system. 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 newer features of LV resize. We should still have our previous logical volume mounted at /dev/vgdata/lvdata. Let's verify this with DF. Type in DF space dash H and we can see that it's mounted. Although it's a good idea to always unmount a file system when resizing it, we can leave it mounted when we increase the size. However, when we decrease the size, we have no choice but to unmount the volume. Let's unmount our logical volume now. Type in sudo space umount space /dev/vgdata/lvdata and hit enter. Type in your password if prompted. Verify it's unmounted by typing in DF…

Contents