[linux-lvm] lvm2 tools can't locate pvs on entire disks

Klaus Strebel klaus.strebel at gmx.net
Tue May 10 06:08:39 UTC 2005


Miles Crawford schrieb:
> 
> I'm running into trouble here, getting the lvm scanning tools to notice 
> PVs I have created on entire disks, like this:
> 
> pvcreate /dev/hdd
> 
> Some output:
> 
> root at end root # lvm version
>   LVM version:     2.01.04 (2005-02-09)
>   Library version: 1.01.00-ioctl (2005-01-17)
>   Driver version:  4.1.0
> root at end root # uname -a
> Linux end.snip.net 2.6.8 #6 Sat Oct 9 20:59:02 PDT 2004 i686 GNU/Linux
> root at end root # lvmdiskscan
>   /dev/hda1  [      111.79 GB]
>   /dev/hdb1  [       18.63 GB]
>   /dev/hdd1  [      186.31 GB]
>   /dev/hdb2  [      127.59 GB]
>   /dev/hdb3  [        2.83 GB]
>   0 disks
>   5 partitions
>   0 LVM physical volume whole disks
>   0 LVM physical volumes
> root at end root # pvscan
>   No matching physical volumes found
> 
> Well that's odd, I know they're there.  Lets try this:
> 
> root at end root # losetup /dev/loop0 /dev/hda
> root at end root # losetup /dev/loop1 /dev/hdd
> root at end root # pvscan
>   PV /dev/loop0   VG media_vg   lvm2 [111.79 GB / 0    free]
>   PV /dev/loop1   VG media_vg   lvm2 [186.31 GB / 0    free]
>   Total: 2 [298.10 GB] / in use: 2 [298.10 GB] / in no VG: 0 [0   ]
Hi Miles,

the disks hda and hdb obviously are partitioned (they are shown as 
/dev/hda1 and /dev/hdb1), so don't trying to detroy these partitions, he 
doesn't know what the contents of, is good behaviour of lvm, isn't it ;-).

Ciao
Klaus

-- 
Mit freundlichen Grüssen / best regards

Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel at gmx.net

/"\
\ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
/ \





More information about the linux-lvm mailing list