ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 131 - XK0-005 discussion

Report
Export

A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

A.
partprobevgcreatelvextend
Answers
A.
partprobevgcreatelvextend
B.
lvcreatefdiskpartprobe
Answers
B.
lvcreatefdiskpartprobe
C.
fdiskpartprobemkfs
Answers
C.
fdiskpartprobemkfs
D.
fdiskpvcreatevgextend
Answers
D.
fdiskpvcreatevgextend
Suggested answer: D

Explanation:

The correct sequence of commands to expand a volume group using a new disk is fdisk, pvcreate, vgextend. The fdisk command can be used to create a partition on the new disk with the type 8e (Linux LVM). The pvcreate command can be used to initialize the partition as a physical volume for LVM. The vgextend command can be used to add the physical volume to an existing volume group.

The partprobe command can be used to inform the kernel about partition table changes, but it is not necessary in this case. The vgcreate command can be used to create a new volume group, not expand an existing one. The lvextend command can be used to extend a logical volume, not a volume group. The lvcreate command can be used to create a new logical volume, not expand a volume group. The mkfs command can be used to create a filesystem on a partition or a logical volume, not expand a volume group. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 14:

Managing Disk Storage, pages 462-463.

asked 02/10/2024
Bassem Louati
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first