2017-02-20 21:48:58 -06:00
|
|
|
# pvcreate
|
|
|
|
|
2021-03-08 14:25:12 -05:00
|
|
|
> Initialize a disk or partition for use as a physical volume.
|
|
|
|
> See also: `lvm`.
|
2024-06-19 17:25:16 +02:00
|
|
|
> More information: <https://manned.org/pvcreate>.
|
2017-02-20 21:48:58 -06:00
|
|
|
|
2017-05-02 13:48:58 +01:00
|
|
|
- Initialize the `/dev/sda1` volume for use by LVM:
|
2017-02-20 21:48:58 -06:00
|
|
|
|
2025-08-25 19:59:42 +03:00
|
|
|
`pvcreate {{/dev/sdXY}}`
|
2017-02-20 21:48:58 -06:00
|
|
|
|
2017-05-02 13:48:58 +01:00
|
|
|
- Force the creation without any confirmation prompts:
|
2017-02-20 21:48:58 -06:00
|
|
|
|
2025-08-25 19:59:42 +03:00
|
|
|
`pvcreate {{[-f|--force]}} {{/dev/sdXY}}`
|