exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 134 discussion

Actual exam question from CompTIA's XK0-005
Question #: 134
Topic #: 1
[All XK0-005 Questions]

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?

  • A. vgs
  • B. lvs
  • C. fdisk -1
  • D. pvs
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
johnsie
1 week, 2 days ago
Selected Answer: B
Drvision below nailed it
upvoted 1 times
...
bongobo
8 months, 3 weeks ago
L ist V olume S
upvoted 4 times
...
DRVision
12 months ago
Selected Answer: B
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.
upvoted 1 times
DRVision
12 months ago
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.
upvoted 2 times
...
...
tutita
1 year, 6 months ago
Selected Answer: B
answer b lvs, the question states "logical volumes that are part of a group volume"
upvoted 2 times
...
linux_admin
1 year, 9 months ago
Selected Answer: B
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.
upvoted 1 times
...
Pinnubhai
1 year, 11 months ago
Selected Answer: B
B is right because it shows a list of all logical volumes and a column VG of which vg they are part of.
upvoted 1 times
...
Nvoid
2 years ago
Selected Answer: A
Answer is A, VGS is for volume group. LVS is or logical Volumes.
upvoted 2 times
TheRealManish
2 years ago
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
upvoted 1 times
Nvoid
2 years ago
damn, thats interesting, i may have to change my answer last minute. i figured VGS would show all the logical volumes, but ya it probably won't.
upvoted 1 times
Nvoid
2 years ago
ya, i'm not sure what to select now, but its got to be one or the other .. 50/50. lol
upvoted 1 times
...
...
...
Nvoid
2 years ago
Mod Fix, it's A.
upvoted 1 times
...
...
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.

SaveCancel
Loading ...