From the course: Ubuntu Linux: Essential Commands and System Administration
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Extend a volume group and logical volume
From the course: Ubuntu Linux: Essential Commands and System Administration
Extend a volume group and logical volume
Now let's take a look at extending a logical volume and its filesystem. We'll add a new disk and 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 filesystem to be able to take advantage of the space. We have a filesystem right now of about 10 gigabytes, and we're going to effectively double that space. If I take a look at my volume groups with vgdisplay, here for my group, I see that I currently have one physical volume and one is active. And the volume group size is about 10 gigabytes. Let's add another disk. To do that, I need a physical volume, so I'll create a physical volume on one of my other disks. I'll write pvcreate /dev/sdd. Then I'll add this to my volume group by extending the volume group to include this physical volume. To do that, I'll write vgextend and the name of my group, which is mygroup, and the new PV, /dev/sdd. If I…
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Understanding RAID4m 25s
-
(Locked)
Building and managing a RAID array7m 29s
-
(Locked)
Understanding LVM2m 31s
-
(Locked)
Create a physical volume, volume group, and logical volume5m 19s
-
(Locked)
Extend a volume group and logical volume2m 52s
-
(Locked)
Migrate and replace a physical volume2m 5s
-
(Locked)
-
-
-
-