A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?
The lvs command in Linux is used to display information about logical volumes. Here’s what the other options do:
A. vgs: This command provides information about volume groups. C. fdisk -1: This is not a valid command. Perhaps you meant fdisk -l, which lists all partitions on all hard drives. D. pvs: This command provides information about physical volumes.
So, for your specific task, lvs is the appropriate command.
The command vgs is used to display information about volume groups, not the volumes that are part of a volume group. It provides a summary of available and used space in a volume group but does not list out the individual logical volumes within that group.
On the other hand, the lvs command lists all logical volumes in all volume groups if no arguments are given, or all logical volumes in the specified volume group. This makes lvs the correct command to use when you want to see a list of all volumes that are part of a specific volume group.
So, while vgs is a useful command for getting an overview of volume groups, it doesn’t provide the level of detail (i.e., the individual volumes) that the question is asking for. That’s why the answer is not A.
The Linux administrator should use the lvs command to obtain a list of all volumes that are part of a volume group. The lvs command is used to display information about logical volumes in the LVM. Running the command without any options will provide a summary of all the logical volumes, including the name of the volume group and the size of each volume. By providing the name of the volume group as an argument to the lvs command, the administrator can obtain a list of all volumes that are part of the volume group.
The wording on this one has confused me. "obtain a list of all volumes that are part of a volume group. Well, as we know physical volumes make up volume groups which then are carved into logical volumes. so the questions is, when it asks "obtain a list of all volumes part of a volume group" does it mean a list of all physical volumes? Does it mean a list of all physical volumes? or all logical volumes? VGS is going to show you a list of volume groups, but won't show you which logical of physical volumes are involved. so I argue that It's not A... but instead either LVS to list the logical volumes that are part of the volume groups.. or PVS to list the physical volumes that are part of the volume group. the wording is terrible
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
johnsie
1Â week, 2Â days agobongobo
8Â months, 3Â weeks agoDRVision
12Â months agoDRVision
12Â months agotutita
1Â year, 6Â months agolinux_admin
1Â year, 9Â months agoPinnubhai
1Â year, 11Â months agoNvoid
2Â years agoTheRealManish
2Â years agoNvoid
2Â years agoNvoid
2Â years agoNvoid
2Â years ago