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 - Linux Tutorial
From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Hard drive partitioning strategies5m 43s
-
List, create, delete partitions on MBR and GPT disks5m 55s
-
Create parititons using parted3m 20s
-
Resize partitions without losing data4m 44s
-
Basic features of logical volume management (LVM)2m 10s
-
Manage LVM volumes and volume groups6m 5s
-
Extend existing logical volumes2m 48s
-
Reduce existing logical volumes3m 44s
-
Replace a physical volume3m 58s
-
Create EXT filesystems3m 25s
-
Repair EXT filesystems4m 55s
-
Mount filesystems automatically4m 13s
-
Back up and restore an EXT filesystem2m 57s
-
Basic features of Btrfs3m 25s
-
Archiving files with tar4m 41s
-
-