exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 211 discussion

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

A systems administrator needs to extend the logical volume /dev/mapper/linux-root to use all available space in its volume group. The filesystem should be extended as well. Which of the following commands will allow the administrator to achieve this goal?

  • A. lvm pvresize -r -l100% /dev/mapper/linux-root
  • B. lvchange -L100% /dev/mapper/linux-root
  • C. lvextend -l+100% /dev/mapper/linux-root
  • D. lvresize -l100%FREE -r /dev/mapper/linux-root
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
dsmitd33
3 weeks, 6 days ago
Selected Answer: D
D is absolutely correct since every other choice only has "%100" instead of the proper format, "%100FREE". lvextend and lvresize can both be used, even with -l from there.
upvoted 1 times
...
makuziker
4 months, 3 weeks ago
Selected Answer: D
lvextend or lvresize could both get the job done here. The key here is "-r", resize the associated filesystem.
upvoted 1 times
...
68c732d
5 months, 3 weeks ago
Selected Answer: D
lvresize -l100%FREE -r /dev/mapper/linux-root Explanation: -l // [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] eg. "-l +100%FREE" -r // Resize underlying filesystem together with the logical volume using fsadm
upvoted 1 times
...
nabalauski
6 months, 3 weeks ago
Selected Answer: C
answer is C. https://www.redhat.com/sysadmin/resize-lvm-simple
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago