[linux-lvm] problem when creating a volumegroup on an external drive

Markus Laire malaire at gmail.com
Sat May 13 10:20:03 UTC 2006

On 5/13/06, Joep Blom <jlblom at neuroweave.nl> wrote:
> One last question: Why can't  I use "pvcreate /dev/sda" but have to use
> "pvcreate /dev/sda1" (as the LV HOW-TO stated the former).
> Hope you can help me out with this as well.

pvcreate man-page says that:
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

Markus Laire

More information about the linux-lvm mailing list