man pvcreate says
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 fdisk(8), 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:
dd if=/dev/zero of=PhysicalVolume bs=512 count=1
If I use
pvcreate to mark a disk as a PV, does it mean that
pvcreate will destroy all the data on a disk?
If I use
pvcreate to mark a partition which contains a filesystem as a PV as a PV, will it destroy all the data in the filesystem?
If yes, does it mean that I can't move a filesystem from a partition to a LV, by
pvcreate the partition as a PV (and then
lvcreate a LV)?