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

Unlock the full course today

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

Replace a physical volume

Replace a physical volume

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

Start my 1-month free trial

Replace a physical volume

- [Narrator] Replacing a physical drive is a necessary task in the real world. Drives often need to be replaced due to mechanical failure. You may also want to migrate to larger drives as they become available. Let's start by reviewing our drives. Type in sudo lsblk and hit enter. Type in your password if prompted. We can see that our sdb and sdc drives are one gigabyte each. Our sdb1 partition is one gigabyte. And our sdc1 partition is about 500 megabytes. Looking at our pv's with with pvs verifies this. Type in sudo pvs and hit enter. Both sdb1 and sdc1 pv's are in the vgdata volume group. Which is about 1.5 gigabytes in size. Let's now ensure that out lvdata logical volume fills that space completely. Type in clear then type in sudo lvresize /r -l 100%VG /dev/vgdata/lvdata and hit enter You will verify this with lvs. Type in sudo lvs and hit enter. Now our logical volume is about 1.5 gigabytes, or the entire space of the vg. It's comprised of a one gigabyte pv and a 500 megabyte…

Contents