CompTIA Linux+ (XK0-005) — Question 143
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?
Answer options
- A. partprobe vgcreate lvextend
- B. lvcreate fdisk partprobe
- C. fdisk partprobe mkfs
- D. fdisk pvcreate vgextend
Correct answer: D
Explanation
The correct sequence is D: first, 'fdisk' is used to partition the new disk, then 'pvcreate' initializes it as a physical volume, and finally 'vgextend' adds it to the volume group. The other options do not provide the necessary commands in the right order for expanding a volume group.