000-221 · Question #113
Which command will show all the logical volumes, filesystem mount points, and the volume group in which they reside?
The correct answer is D. Isvg | Isvg -il. On IBM AIX, the lsvg command lists all volume groups, and piping its output to lsvg -il displays the logical volumes and mount points within each group.
Question
Which command will show all the logical volumes, filesystem mount points, and the volume group in which they reside?
Options
- AIslv-al
- Bmount-v
- Cdf-vAg
- DIsvg | Isvg -il
How the community answered
(30 responses)- A3% (1)
- B10% (3)
- C7% (2)
- D80% (24)
Why each option
On IBM AIX, the lsvg command lists all volume groups, and piping its output to lsvg -il displays the logical volumes and mount points within each group.
lslv -al displays attributes of a single specified logical volume but does not enumerate all logical volumes across all volume groups with their mount points.
mount -v shows currently mounted filesystems but provides no information about the volume group each logical volume belongs to.
df -vAg reports filesystem disk usage statistics but does not display the logical volume to volume group relationship.
The command lsvg lists all volume groups on the system, and piping that output to lsvg -il causes each volume group name to be passed via stdin (-i flag) to lsvg, which then lists (-l flag) all logical volumes within each group including their mount points and parent volume group, satisfying all three requirements in the question.
Concept tested: AIX lsvg pipeline to list logical volumes and mount points
Source: https://www.ibm.com/docs/en/aix/7.3?topic=l-lsvg-command
Topics
Community Discussion
No community discussion yet for this question.