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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
Linux storage system overview9m 13s
-
(Locked)
Prepare for handling storage1m 36s
-
(Locked)
Create partitions using fdisk5m 4s
-
(Locked)
Create partitions using parted3m 59s
-
(Locked)
Manage LVM volumes and volume groups7m 25s
-
(Locked)
Expand existing logical volumes2m 47s
-
(Locked)
Reduce existing logical volumes3m 37s
-
(Locked)
Create EXT filesystems4m 20s
-
(Locked)
Repair EXT filesystems5m 15s
-
(Locked)
Create and repair XFS filesystems1m 52s
-
(Locked)
MDRAID or DMRAID?1m 43s
-
(Locked)
Create a RAID 5 using LVM7m 1s
-
(Locked)
Create RAIDs using mdadm9m 31s
-
(Locked)
Mount filesystems on boot5m 54s
-
(Locked)
Encrypt drives with LUKS2m 42s
-
(Locked)
Troubleshoot storage systems4m 18s
-
-
-
-
-
-
-
-
-
-
-
-
-