From the course: Ubuntu Linux: Storage Management

Unlock the full course today

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

Extending a volume group and logical volume

Extending a volume group and logical volume

From the course: Ubuntu Linux: Storage Management

Start my 1-month free trial

Extending a volume group and logical volume

- [Instructor] Let's take a look at extending a logical volume and its file system. We'll add a new disk and create a new partition. And, in that partition, I'll create a new physical volume. Then we'll extend the volume group to include the new physical volume. And we'll extend the logical volume to take up the space that's available. Then we'll extend the file system to be able to take advantage of this new space. Here, I've got my file system that's about 114 gigabytes. And I want to effectively double that space. Right now, if I take a look at the volume group with vgdisplay, I can see that I currently have one PV and that one is active. And the volume group size is about 115 gigabytes. Taking a look at my phsyical volumes with pvdisplay, I can see I have one, the one that we just added, called sdb1. In order to add my other disk, I'll need to make sure that there's a partition, so I'll do that with fdisk /dev/sdc. And I'll create a partition. I'll save the changes, and then I'll…

Contents