Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Unable to create a physical volume on a whole disk
@ 2003-04-05 10:52 Jan H. van Gils
  2003-04-05 15:14 ` Luca Berra
  0 siblings, 1 reply; 4+ messages in thread
From: Jan H. van Gils @ 2003-04-05 10:52 UTC (permalink / raw)
  To: linux-lvm

	Hi,

Thanks for reading this message.

The following is the case, 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.

I removed the partition table with "dd if=/dev/zero of=/dev/hdb bs=512
count=1"
The fdisk command shows me that there is no partion table but pvcreate
tells me
different.

Here is some info :

Disk Info
gw:/dev# dmesg | grep hdb
    ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:DMA, hdb:DMA
hdb: ST310212A, ATA DISK drive
hdb: 20005650 sectors (10243 MB) w/512KiB Cache, CHS=19846/16/63,
UDMA(33)

Fdisk Info :

gw:/dev# fdisk -l /dev/hdb

Disk /dev/hdb: 10.2 GB, 10242892800 bytes
16 heads, 63 sectors/track, 19846 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk /dev/hdb doesn't contain a valid partition table

Pvcreate Info :

gw:/dev# pvcreate --version
pvcreate: Logical Volume Manager 1.0.4
Heinz Mauelshagen, Sistina Software  02/05/2002 (IOP 10)

gw:/dev# pvcreate /dev/hdb

pvcreate -- device "/dev/hdb" has a partition table

Has anybody an idea on howto solve this problem.
I already rebooted the system to be sure the partition table is active.

Greetz Jan

----
With regards Jan H. van Gils
Internet web-page http://www.vgnet.nl/
Internet e-mail address JanVG@Knoware.NL
RIPE Whois JHG5-RIPE, 6BONE Whois JHG1-6BONE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Unable to create a physical volume on a whole disk
  2003-04-05 10:52 [linux-lvm] Unable to create a physical volume on a whole disk Jan H. van Gils
@ 2003-04-05 15:14 ` Luca Berra
  2003-04-05 15:30   ` Jan H. van Gils
  0 siblings, 1 reply; 4+ messages in thread
From: Luca Berra @ 2003-04-05 15:14 UTC (permalink / raw)
  To: linux-lvm

Jan H. van Gils wrote:
> 	Hi,
> 
> Thanks for reading this message.
> 
> The following is the case, 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.
> 
> I removed the partition table with "dd if=/dev/zero of=/dev/hdb bs=512
> count=1"
> The fdisk command shows me that there is no partion table but pvcreate
> tells me
> different.

check if kernel has seen a partition during boot (cat /proc/partition)
in this case you either have to issue

blockdev --rereadpt /dev/hdb
or reboot

L.
-- 
Luca Berra -- bluca@comedia.it
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [linux-lvm] Unable to create a physical volume on a whole disk
  2003-04-05 15:14 ` Luca Berra
@ 2003-04-05 15:30   ` Jan H. van Gils
  0 siblings, 0 replies; 4+ messages in thread
From: Jan H. van Gils @ 2003-04-05 15:30 UTC (permalink / raw)
  To: linux-lvm

>Jan H. van Gils wrote:
>> 	Hi,
>> 
>> Thanks for reading this message.
>> 
>> The following is the case, 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.
>> 
>> I removed the partition table with "dd if=/dev/zero 
>of=/dev/hdb bs=512 
>> count=1" The fdisk command shows me that there is no partion 
>table but 
>> pvcreate tells me
>> different.
>

Luca Berra wrote :

>check if kernel has seen a partition during boot (cat 
>/proc/partition) in this case you either have to issue
>
>blockdev --rereadpt /dev/hdb
>or reboot

Luca, I alleady tried a reboot and that didn't solve the problem.

Any other suggestions ?


Jan

----
With regards Jan H. van Gils
Internet web-page http://www.Knoware.NL/users/janvg/
Internet e-mail address JanVG@Knoware.NL
RIPE Whois JHG5-RIPE, 6BONE Whois JHG1-6BONE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Unable to create a physical volume on a whole disk
@ 2003-04-07  1:55 George Karaolides
  0 siblings, 0 replies; 4+ messages in thread
From: George Karaolides @ 2003-04-07  1:55 UTC (permalink / raw)
  To: linux-lvm; +Cc: janvg

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-04-07  1:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-05 10:52 [linux-lvm] Unable to create a physical volume on a whole disk Jan H. van Gils
2003-04-05 15:14 ` Luca Berra
2003-04-05 15:30   ` Jan H. van Gils
  -- strict thread matches above, loose matches on Subject: below --
2003-04-07  1:55 George Karaolides

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox