Creating, moving, and removing physical volumes
Having our machine ready with the two new disks, vdb
and vdc
, as the Technical requirements section explains, we can get started on implementing the example diagram, as shown in Figure 13.4, in our machine.
The first step is not directly related to LVM, but it is still important to continue with the example. This first step involves partitioning the vdb
disk. Let's take a look at this with the tool to manage partitions, parted
:
[root@rhel8 ~]# parted /dev/vdb print Error: /dev/vdb: unrecognised disk label Model: Virtio Block Device (virtblk) Disk /dev/vdb: 1074MB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags:
Important note
Your disk device, if you are using a physical machine or a different disk driver, may be different. For example, if we were using SATA disks, it would be /dev/sdb
instead of /dev/vdb
.
The disk is completely unpartitioned, as we can see in the unrecognised disk label...