2025-03-14 21:59:59 -06:00
|
|
|
# pvcreate
|
|
|
|
|
|
|
|
|
|
> Initialize a disk or partition for use as a physical volume.
|
|
|
|
|
> See also: `lvm`.
|
|
|
|
|
> More information: <https://manned.org/pvcreate>.
|
|
|
|
|
|
|
|
|
|
- Initialize the `/dev/sda1` volume for use by LVM:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo pvcreate {{/dev/sdXY}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Force the creation without any confirmation prompts:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo pvcreate {{[-f|--force]}} {{/dev/sdXY}}`
|