* [linux-lvm] pvcreate problems - can't find partition
@ 2001-12-23 22:23 Ben Holness
2001-12-24 1:52 ` Luca Berra
0 siblings, 1 reply; 3+ messages in thread
From: Ben Holness @ 2001-12-23 22:23 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [linux-lvm] pvcreate problems - can't find partition
2001-12-23 22:23 [linux-lvm] pvcreate problems - can't find partition Ben Holness
@ 2001-12-24 1:52 ` Luca Berra
2001-12-24 4:43 ` Ben Holness
0 siblings, 1 reply; 3+ messages in thread
From: Luca Berra @ 2001-12-24 1:52 UTC (permalink / raw)
To: linux-lvm
On Mon, Dec 24, 2001 at 04:26:12AM -0000, Ben Holness wrote:
> /dev/ide/host0/bus0/target0/lun0/part4 372 7753 55807920
> 8e Linux LVM
...
> [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.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [linux-lvm] pvcreate problems - can't find partition
2001-12-24 1:52 ` Luca Berra
@ 2001-12-24 4:43 ` Ben Holness
0 siblings, 0 replies; 3+ messages in thread
From: Ben Holness @ 2001-12-24 4:43 UTC (permalink / raw)
To: linux-lvm
>> [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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-24 4:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-23 22:23 [linux-lvm] pvcreate problems - can't find partition Ben Holness
2001-12-24 1:52 ` Luca Berra
2001-12-24 4:43 ` Ben Holness
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox