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

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

 



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.
|



_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux