Basic Physical Volume Management Flashcards

(16 cards)

1
Q

What are Physical Volumes (PVs) in LVM?

A

Foundational components in Logical Volume Management

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What must be done before including PVs in Volume Groups (VGs)?

A

PVs must be initialized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name key commands for PV management.

A

pvcreate, pvdisplay, pvs, pvscan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does pvcreate do?

A

Initializes a raw storage device or partition as a Physical Volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Syntax for pvcreate?

A

pvcreate /dev/<device></device>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Example of pvcreate?

A

pvcreate /dev/sdb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does pvdisplay show?

A

Detailed information about a specific Physical Volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Syntax for pvdisplay?

A

pvdisplay /dev/<device></device>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Example details from pvdisplay?

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does pvs command do?

A

Displays a summarized table of all Physical Volumes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Syntax for pvs?

A

pvs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Example output of pvs?

A

PV, VG, Fmt, Attr, PSize, Pfree

/dev/sda1 vg01 lvm2 a– 200.00G 50.00G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does pvscan do?

A

Scans all available disks for Physical Volumes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Syntax for pvscan?

A

pvscan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Example output of pvscan?

A

Lists PVs, VG assignment, size, free space, and totals

PV /dev/sda1 VG vg01 lvm2 [200.00 GiB / 50.00 GiB free]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why is pvscan useful?

A

Confirms system recognition of all PVs, especially after adding new storage