Join Scott Simpson for an in-depth discussion in this video Creating a physical volume, volume group, and logical volume, part of Linux Foundation Cert Prep: Storage Management (Ubuntu).
- [Instructor] To start out with,…let's take a look at a diagram…of what we'll actually be doing…when we create one volume on one disk with LVM.…We have the actual disk, and then we'll create a partition…and a physical volume on top of that.…We'll add that physical volume to a volume group…and then on the volume group, we'll create a logical volume…and add a filesystem on top.…Here at the command line, the first thing we need to do…is make sure we have a nice, clean disk.…LVM can create a volume on a whole disk device…but it's recommended that you create…a partition for the whole disk…and then use that for your physical volume.…
So I'll jump into fdisk here…for /dev/sdb…and make sure that this volume only has one partition.…And I'll set the partition type to GPT as well.…There's my GPT disklabel,…and then n for new partition, number one,…and accepting the defaults to make the full size.…I'll write this change.…Now we need to create a physical volume.…To do that, I'll use the pvcreate command…followed by the path to my partition, /dev/sdb1.…
Join instructor Scott Simpson, as he shows how to manage and optimize file storage on Ubuntu Linux. First, learn how to create, modify, and mount partitions and filesystems, and manage swap space. Scott then combines these basics into more sophisticated solutions using volume management, and shows how to secure Linux storage and configure disk quotas and backup policies.
- Creating and modifying partitions
- Creating, modifying, and mounting filesystems
- Mounting encrypted partitions
- Creating redundant storage with RAID
- Working with physical volumes, volume groups, and logical volumes
- Securing filesystems with ACLs
- Backing up data