From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Unlock the full course today

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

Extend existing logical volumes

Extend existing logical volumes

From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Start my 1-month free trial

Extend existing logical volumes

- [Male] One of the beautiful things about logical volume management is the ability to resize a logical volume with non-contiguous drag space. In our terminal, let's get a listing of our drives. Type in lsblk and hit enter. We should have a slash dev slash sdc one drive from a previous video. Let's make this partition a physical volume. Type in sudo pvcreate /dev/sdc1 and hit enter Type in your password when prompted. It will notice that you have a file system on it, press Y to continue. We're going to verify by typing in sudo pvs and there we have it. In previous videos, we created a new volume group at this step, but for this exercise, let's extend an existing volume group. Let's get a list of all volume groups. Type in clear and then type in sudo vgs and hit enter. Now, let's extend our VG data volume group by adding our new PV to it. Type in sudo vg extend vgdata, as our volume group, /dev/sdc1, which is our new PV, and hit enter. And verify by typing in sudo vgs and hit enter…

Contents