From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

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

Replace a physical volume

Replace a physical volume - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Replace a physical volume

- 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 1 Gigabyte each. Our sdb1 partition is 1 Gigabyte, and our sdc1 partition is about 500 Megabytes. Looking at our pvs with 'pvs' verifies this. Type in 'sudo pvs' and hit enter. Both sdb1 and sdc1 pvs are in the vgdata volume group, which is about 1.5 Gigabytes in size. Let's now ensure that our lv data logical volume fills that space completely. Type in 'clear', and then type in 'sudo lvresize -r -l 100%VG /dev/vgdata/lvdata' and hit enter. And we'll verify this with lvs. Type in 'sudo lvs' and hit enter. Now, our logical volume is about 1.5 Gigabytes, or the entire…

Contents