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.
vgcreate /dev/sdb1Incorrect. vgcreate needs a VG name and initialized PVs.
lvcreate /dev/sdb1Incorrect. lvcreate allocates an LV from a VG.
pvs /dev/sdb1Incorrect. 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 / ヘルプ表示のみ
- Use read-only inspection or a disposable disk when learning storage commands.
- Partition and LVM writes can destroy data; verify the target before running them.
Foundation review
Place the operation
PV initialization is a write operation and must not be confused with pvs, which only reports status.
Check the side effect
Verify the device with lsblk or equivalent before initialization.