2017-02-21 03:48:58 +00:00
|
|
|
# pvcreate
|
|
|
|
|
2021-03-08 19:25:12 +00:00
|
|
|
> Initialize a disk or partition for use as a physical volume.
|
|
|
|
> See also: `lvm`.
|
|
|
|
> More information: <https://man7.org/linux/man-pages/man8/pvcreate.8.html>.
|
2017-02-21 03:48:58 +00:00
|
|
|
|
2017-05-02 13:48:58 +01:00
|
|
|
- Initialize the `/dev/sda1` volume for use by LVM:
|
2017-02-21 03:48:58 +00:00
|
|
|
|
|
|
|
`pvcreate {{/dev/sda1}}`
|
|
|
|
|
2017-05-02 13:48:58 +01:00
|
|
|
- Force the creation without any confirmation prompts:
|
2017-02-21 03:48:58 +00:00
|
|
|
|
|
|
|
`pvcreate --force {{/dev/sda1}}`
|