summaryrefslogtreecommitdiff
path: root/man/pvcreate.8.des
blob: 3dfddbcb704e2880ecbb213ff2012f12a0c02125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pvcreate initializes a PV so that it is recognized as belonging to LVM,
and allows the PV to be used in a VG. A PV can be a disk partition, whole
disk, meta device, or loopback file.

For DOS disk partitions, the partition id should be set to 0x8e using
.BR fdisk (8),
.BR cfdisk (8),
or a equivalent. For GUID Partition Table (GPT), the id is
E6D6D379-F507-44C2-A23C-238F2A3DF928. For
whole disk devices only
the partition table must be erased, which will effectively destroy all
data on that disk. This can be done by zeroing the first sector with:

.BI "dd if=/dev/zero of=" PhysicalVolume " bs=512 count=1"

Use \fBvgcreate\fP(8) to create a new VG on the PV, or \fBvgextend\fP(8)
to add the PV to existing VG.