linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] debian 2.4.2 / LVM .91beta6 / pvcreate device doesn't exist ???
@ 2001-04-07 20:43 Vissers, Ron
  2001-04-09  8:41 ` Patrick Caulfield
  0 siblings, 1 reply; 2+ messages in thread
From: Vissers, Ron @ 2001-04-07 20:43 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

(debian:root) /root #
(debian:root) /root #
(debian:root) /root # pvscan -v
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ERROR "pv_read_all_pv(): lvm_dir_cache" reading physical volumes
 
(debian:root) /root # lvscan -v
lvscan -- no volume groups found
 
(debian:root) /root # vgscan -v
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- no volume groups found
 
(debian:root) /root # lvm -v
su: lvm: command not found
(debian:root) /root # /etc/init.d/lvm stop
vgchange -- no volume groups found
 Hi,

I'm having a lot of trouble trying to get LVM to pvcreate my 2nd ide disk.
LVM is not on my first IDE disk yet either, but I'll worry about that later.
pvcreate /dev/hdc1 doesn't seem to work.  I've dug through the archives here
and tried a couple of other things as well.  The fdisk and other entries are
below. 

Can someone offer a little direction?
Thanks,
Ron
 

---

Disk /dev/hdc1: 255 heads, 63 sectors, 1826 cylinders
Units = cylinders of 16065 * 512 bytes
 
     Device Boot    Start       End    Blocks   Id  System
/dev/hdc1p1             1      1826  14667313+  8e  Unknown

-----

(debian:root) /root # /etc/init.d/lvm start
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
 
vgchange -- no volume groups found
 
(debian:root) /root # pvcreate /dev/hdc1
pvcreate -- device "/dev/hdc1" doesn't exist
 
(debian:root) /root # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ERROR "pv_read_all_pv(): lvm_dir_cache" reading physical volumes
 
(debian:root) /root # pvcreate /dev/ide/host0/bus1/target0/lun0/part1
pvcreate -- invalid physical volume name
"/dev/ide/host0/bus1/target0/lun0/part1"
(debian:root) /root # lvmdiskscan
lvmdiskscan -- reading all disks / partitions (this may take a while...)
lvmdiskscan -- no disks / partitions found
 
(debian:root) /root # ls /proc/partitions
/proc/partitions
(debian:root) /root # cat /proc/partitions
major minor  #blocks  name
 
   3     0   20066251 ide/host0/bus0/target0/lun0/disc
   3     1      48163 ide/host0/bus0/target0/lun0/part1
   3     2   19920600 ide/host0/bus0/target0/lun0/part2
   3     3      96390 ide/host0/bus0/target0/lun0/part3
  22     0   14668416 ide/host0/bus1/target0/lun0/disc
  22     1   14667313 ide/host0/bus1/target0/lun0/part1
(debian:root) /root # pvcreate /dev/ide/host0/bus1/target0/lun0/part1
pvcreate -- invalid physical volume name
"/dev/ide/host0/bus1/target0/lun0/part1"
(debian:root) /root #


------------------------------------------------------------------------

This message has been scanned for viruses with Trend Micro's Interscan VirusWall.

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

* Re: [linux-lvm] debian 2.4.2 / LVM .91beta6 / pvcreate device doesn't exist ???
  2001-04-07 20:43 [linux-lvm] debian 2.4.2 / LVM .91beta6 / pvcreate device doesn't exist ??? Vissers, Ron
@ 2001-04-09  8:41 ` Patrick Caulfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Caulfield @ 2001-04-09  8:41 UTC (permalink / raw)
  To: linux-lvm

On Sat, Apr 07, 2001 at 03:43:42PM -0500, Vissers, Ron wrote:
> ---
> 
> Disk /dev/hdc1: 255 heads, 63 sectors, 1826 cylinders
> Units = cylinders of 16065 * 512 bytes
>  
>      Device Boot    Start       End    Blocks   Id  System
> /dev/hdc1p1             1      1826  14667313+  8e  Unknown
> 
> -----
> 

You have partitioned a partition ! 

You should run fdisk on /dev/hdc rather than /dev/hdc1 and set the partition
type of hdc1 to 8e. Then LVM should recognise it. I am assuming here that hdc1
is the partition you want to use for LVM.

Be careful with fdisk - you can do a lot of damage if you don't know what you
are doing.

patrick

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

end of thread, other threads:[~2001-04-09  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-07 20:43 [linux-lvm] debian 2.4.2 / LVM .91beta6 / pvcreate device doesn't exist ??? Vissers, Ron
2001-04-09  8:41 ` Patrick Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).