From the course: Linux: Storage Systems

Unlock the full course today

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

Volume groups

Volume groups - Linux Tutorial

From the course: Linux: Storage Systems

Start my 1-month free trial

Volume groups

- [Instructor] Physical volumes can be gathered together to make a volume group. You can think of a volume group as an abstraction of a disk inside, or multiple disks or maybe multiple partitions. You create a volume group with the vgcreate command. In our example here, we're going to create a volume group we're going to name vg1. It's not on a system that's participating in clustering for this volume group so we say -c n for no clustering. Then we include the physical volumes that we want to be in the group. In this case, sdb1 and sdc1. If we want to grow our volume group, we use the vgextend command and we list what we want to add to it. In this case, the partition sdd1, which we previously made a physical volume. If we want to remove a physical volume we use vgreduce. If we're no longer going to use a volume group we use the vgremove command and the name of the volume group we want to get rid of. So let's look at creating a volume group and extending it and reducing it and removing…

Contents