Skip to contentSkip to conversation

pvcreate problems - can't find partition

linux-lvm Ben Holness 2 participants 3 messages Dec 23, 2001 – Dec 24, 2001

lore
Share & tools
lore
#0 lore raw

Hi all,

I am in the process of trying to set up LVM on my machine and I am having some difficulty. I have had a look in the mailing list archives and in Google groups, but haven't had any luck (although there is one foreign language post in Google that looks to be the right question and an answer, but I can't read that language!!!)

I have a 60Gb Hard disk, partitioned as follows:

Note: I am a little worried about the fact that fdisk shows 240/63/7753, when on my hard disk label it says 16/63/16383, but the sizes look right. The machine is a Compaq Deskpro.

[root@firewall root]# fdisk -l

Disk /dev/ide/host0/bus0/target0/lun0/disc: 240 heads, 63 sectors, 7753 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks
Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 2
15088+ 83 Linux

				/dev/ide/host0/bus0/target0/lun0/part2             3       371   2789640
5  Extended
				/dev/ide/host0/bus0/target0/lun0/part4           372      7753  55807920
8e  Linux LVM
				/dev/ide/host0/bus0/target0/lun0/part5             3        35
249448+  82  Linux swap
				/dev/ide/host0/bus0/target0/lun0/part6            36       371

2540128+ 83 Linux

hda1 (part1) mounts to /boot and hda6 (part 6) mounts to /
I have created hda4 (part4) to be the partition that is managed as a logical volume, but when I try to pvcreate, I get:

[root@firewall root]# pvcreate -v /dev/hda4 pvcreate -- locking logical volume manager pvcreate -- checking physical volume name "/dev/hda4" pvcreate -- getting physical volume size pvcreate -- device "/dev/hda4" doesn't exist

I have tried this when the partition is unformatted and after a mke2fs and I get the same results.

Running Mandrake 8.1 and lvm-0.9-2mdk (rpm from the Mandrake disc)

Please can anyone tell me what I am missing? I have followed the mini-howto from linuxdocs and then I had a look at the howto on the sistina site, but have had no luck...

Cheers,

Ben

Other things of relevance (?):

[root@firewall root]# vgscan
vgscan -- reading all physical volumes (this may take a while...) vgscan -- no volume groups found

[root@firewall root]# pvscan
pvscan -- reading all physical volumes (this may take a while...) pvscan -- ERROR "pv_read(): PV identifier invalid" reading physical volumes

#1 lore raw
Quoted 2 lines · Ben Holness
				/dev/ide/host0/bus0/target0/lun0/part4           372      7753  55807920

8e Linux LVM

...

Quoted 5 lines

[root@firewall root]# pvcreate -v /dev/hda4 pvcreate -- locking logical volume manager pvcreate -- checking physical volume name "/dev/hda4" pvcreate -- getting physical volume size pvcreate -- device "/dev/hda4" doesn't exist

oh yeah,
there is a problem in lvm when devfs is enabled it only sees devices with long devfs name try using:
pvcreate -v /dev/ide/host0/bus0/target0/lun0/part4

L.

Signature · 6 lines
Luca Berra -- [email protected]
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
#2 lore raw
Quoted 11 lines
Quoted 5 lines

[root@firewall root]# pvcreate -v /dev/hda4 pvcreate -- locking logical volume manager pvcreate -- checking physical volume name "/dev/hda4" pvcreate -- getting physical volume size pvcreate -- device "/dev/hda4" doesn't exist

oh yeah,
there is a problem in lvm when devfs is enabled it only sees devices with long devfs name try using:
pvcreate -v /dev/ide/host0/bus0/target0/lun0/part4

Worked like a charm!

Many thanks,

Ben