Signal9Signal9 — home
online
back to labs

Storage Analysis: PV Count in a VG

MediumStorage & LVM10-15 min
The brief

A volume group is nearly full and you're planning to extend it. First, how many physical volumes does it already contain? /root/storage/task.txt names the VG (it differs per session); a capture of pvs is at /root/storage/pvs.txt. Count the PVs whose VG column is exactly that name — the capture also lists a look-alike VG and an unassigned PV — and record the number to /root/answers/pv_count.txt.

What you'll do
  • Record the number of PVs in the VG named in task.txt to /root/answers/pv_count.txt

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.