Initialize the empty partition /dev/sdb1 as an LVM physical volume.
The target device has already been verified.
Which command is appropriate?
pvcreate DEVICE writes LVM metadata to initialize a physical volume. It can overwrite existing signatures or data, so target confirmation is essential.
Detailed explanation
pvcreate /dev/sdb1Correct. pvcreate /dev/sdb1 initializes the partition as a PV.
Correct. pvcreate /dev/sdb1 initializes the partition as a PV.
vgcreate /dev/sdb1Incorrect. vgcreate needs a VG name and initialized PVs.
Incorrect. vgcreate needs a VG name and initialized PVs.
lvcreate /dev/sdb1Incorrect. lvcreate allocates an LV from a VG.
Incorrect. lvcreate allocates an LV from a VG.
pvs /dev/sdb1Incorrect. pvs only queries existing PVs.
Incorrect. pvs only queries existing PVs.
Try it yourself
An example you can run in a temporary verification environment.
pvcreate --help 2>&1 | sed -n '1,14p'Expected result
Physical Volumeを初期化するpvcreateの使用法Key points
- pvcreate initializes a PV
- It changes device metadata
- Confirm the exact target
Notes
- Environment: LVM2 / ヘルプ表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.