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

Re: [linux-lvm] Unable to create a physical volume on a whole disk



Hi Jan,

> I would like to create a pv on a whole disk but pvcreate gives me the
> message that there is a "partition table" on the disk.

> gw:/dev# pvcreate /dev/hdb
> pvcreate -- device "/dev/hdb" has a partition table

I think what teh message from pvcreate means is that this is a device
with a partition table, and pvceate isn't supposed to be used on such
devices with partition tables, but only on partition-like devices.  I
think pvcreate doesn't care whether the partition table is valid or not;
it only cares about the type of device.

I would suggest that, to use the space on a whole disk as a physical
volume, you try:

- Making just one partition of the whole disk space, with fdisk or other
partitioning tool of your choice; that will normally be /dev/hdb1
- Making a physical volume in that: pvcreate /dev/hdb1

-- 
Best regards,

|   George Karaolides                      Planitis Communications Ltd.,
|
|   tel:   +357 22 45 65 00              Office 102, 11 Florinis Street,
|
|   web:   www.planitis.net                             Nicosia CY 1065,
|
|   email: george karaolides planitis net           Republic  of Cyprus.
|





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