System Management

An administrator wants to add a new, unpartitioned disk /dev/sdb to LVM. What is required before running pvcreate /dev/sdb?

Show the answer

Correct answerA. Nothing more, because pvcreate can label the whole disk as a physical volume

AWhy this is right: LVM accepts any block device, and pvcreate writes its label and metadata straight to the disk.

BWhy not this: A partition, and the 8e type, are optional; LVM does not need either.

CWhy not this: LVM keeps its own label and metadata; a filesystem goes on the logical volumes later.

DWhy not this: The PV UUID is stored in the LVM label on the device, so no partition table is needed.

LVM accepts any block device, including a whole disk, and pvcreate writes its label and metadata area directly to it. A partition is optional; the belief that a partition of a special LVM type is required is a leftover from older practice.