[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LVM creation methods



2012/7/20 Muhammad Yousuf Khan <sirtcp@gmail.com>:
> i was reading a document where a person has configured physical volume
> and didn't use fdisk
>   he just directly created the partition by "pvcreate /dev/sda"
>
> and there are some documents which shows the utilization of fdisk and
> converting sda1 to "8e" type  which is LVM.
>
> so the question is what is the difference b/w creating it directly on
> disk by pvcreate command and by using fdisk.


from the manual page of pvcreate:

"pvcreate initializes PhysicalVolume for later use by the Logical
Volume Manager (LVM). Each PhysicalVolume 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 whole disk devices only the partition table must be
erased, which will effectively destroy all data on that disk."

So if you use a whole disk, it must be erased and have no partitions ...
Nothing is wrong

Meike


Reply to: