From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4A68gO11435 for ; Tue, 10 May 2005 02:08:42 -0400 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4A68eCn006637 for ; Tue, 10 May 2005 02:08:40 -0400 Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DVNv5-0008Iz-00 for linux-lvm@redhat.com; Tue, 10 May 2005 08:08:39 +0200 Received: from [194.173.12.131] (helo=[192.10.98.53]) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1DVNv5-0005Xg-00 for linux-lvm@redhat.com; Tue, 10 May 2005 08:08:39 +0200 Message-ID: <42804FE7.6000906@gmx.net> Date: Tue, 10 May 2005 08:08:39 +0200 From: Klaus Strebel MIME-Version: 1.0 Subject: Re: [linux-lvm] lvm2 tools can't locate pvs on entire disks References: In-Reply-To: Content-Transfer-Encoding: quoted-printable Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: LVM general discussion and development Miles Crawford schrieb: >=20 > I'm running into trouble here, getting the lvm scanning tools to notice=20 > PVs I have created on entire disks, like this: >=20 > pvcreate /dev/hdd >=20 > Some output: >=20 > root@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@end root # uname -a > Linux end.snip.net 2.6.8 #6 Sat Oct 9 20:59:02 PDT 2004 i686 GNU/Linux > root@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@end root # pvscan > No matching physical volumes found >=20 > Well that's odd, I know they're there. Lets try this: >=20 > root@end root # losetup /dev/loop0 /dev/hda > root@end root # losetup /dev/loop1 /dev/hdd > root@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=20 /dev/hda1 and /dev/hdb1), so don't trying to detroy these partitions, he=20 doesn't know what the contents of, is good behaviour of lvm, isn't it ;-). Ciao Klaus --=20 Mit freundlichen Gr=EF=BF=BDssen / best regards Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \