What are Physical Volumes (PVs) in LVM?
Foundational components in Logical Volume Management
What must be done before including PVs in Volume Groups (VGs)?
PVs must be initialized
Name key commands for PV management.
pvcreate, pvdisplay, pvs, pvscan
What does pvcreate do?
Initializes a raw storage device or partition as a Physical Volume
Syntax for pvcreate?
pvcreate /dev/<device></device>
Example of pvcreate?
pvcreate /dev/sdb
What does pvdisplay show?
Detailed information about a specific Physical Volume
Syntax for pvdisplay?
pvdisplay /dev/<device></device>
Example details from pvdisplay?
PV Name: /dev/sdb ,
VG Name: <not>
PV Size : 100.00 GiB
Allocatable: yes
PE Size : 4.00 MiB
Total PE : 25599
Free PE: 25599
Allocated PE: 0
PV UUID : JZ9h3D-Ty8N-M3qX-27Lg-K6N8-xb2N-LMZ7G5</not>
What does pvs command do?
Displays a summarized table of all Physical Volumes
Syntax for pvs?
pvs
Example output of pvs?
PV, VG, Fmt, Attr, PSize, Pfree
/dev/sda1 vg01 lvm2 a– 200.00G 50.00G
What does pvscan do?
Scans all available disks for Physical Volumes
Syntax for pvscan?
pvscan
Example output of pvscan?
Lists PVs, VG assignment, size, free space, and totals
PV /dev/sda1 VG vg01 lvm2 [200.00 GiB / 50.00 GiB free]
Why is pvscan useful?
Confirms system recognition of all PVs, especially after adding new storage