[Parted-maintainers] Bug#247174: marked as done (Doesn't find LVM2 devices])

Debian Bug Tracking System owner@bugs.debian.org
Thu, 25 Nov 2004 05:33:16 -0800


Your message dated Thu, 25 Nov 2004 14:32:53 +0100
with message-id <20041125133253.GA18450@pegasos>
and subject line all fixed in NMUs, aknowledging them ...
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 May 2004 17:48:40 +0000
>From tbm@cyrius.com Mon May 03 10:48:40 2004
Return-path: <tbm@cyrius.com>
Received: from sorrow.cyrius.com [65.19.161.204] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BKhYW-0004WP-00; Mon, 03 May 2004 10:48:40 -0700
Received: by sorrow.cyrius.com (Postfix, from userid 10)
	id AA99064D50; Mon,  3 May 2004 17:48:39 +0000 (UTC)
Received: by deprecation.cyrius.com (Postfix, from userid 1000)
	id 05ACE104AB; Mon,  3 May 2004 18:48:27 +0100 (BST)
Date: Mon, 3 May 2004 18:48:27 +0100
From: Martin Michlmayr <tbm@cyrius.com>
To: submit@bugs.debian.org
Subject: Doesn't find LVM2 devices]
Message-ID: <20040503174827.GA9858@deprecation.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
User-Agent: Mutt/1.5.5.1+cvs20040105i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: parted
Version: 1.6.9-2

I wanted to add LVM2 support for d-i, but my problem is that
parted_devices cannot see the LVM2 devices... it can see LVM1 devices
just fine.  Sven, do you think you can look into this problem soon?
Maybe it's because lvm2 puts stuff in /dev/mapper/<vg>-<lv> rather
than as /dev/<vg>/<lv> (but the latter is a symlink to the former).
Or maybe you just need to add another magic number?

You can reproduce this on a normal system with LVM2.


/lib/partman #=20
/lib/partman #=20
/lib/partman #=20
~ #=20
~ # parted_devices
/dev/ide/host0/bus0/target0/lun0/disc	82348277760	IC35L080AVVA07-0
~ # modprobe lvm-mod
Using /lib/modules/2.4.25-sb1-swarm-bn/kernel/drivers/md/lvm-mod.o
~ # modprobe dm-mod
Using /lib/modules/2.4.25-sb1-swarm-bn/kernel/drivers/md/dm-mod.o
~ # mkfs.ext2 /dev/ide/host0/bus0/target0/lun0/part2
mke2fs 1.35 (28-Feb-2004)
Filesystem label=3D
OS type: Linux
Block size=3D4096 (log=3D2)
Fragment size=3D4096 (log=3D2)
244320 inodes, 488376 blocks
24418 blocks (5.00%) reserved for the super user
First data block=3D0
15 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:=20
	32768, 98304, 163840, 229376, 294912
[...]
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
~ # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ERROR "pv_read(): PV identifier invalid" reading physical volumes

~ # vgscan
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 gr=
oup

~ #=20
~ # pvcreate /dev/ide/host0/bus0/target0/lun0/part2
pvcreate -- physical volume "/dev/ide/host0/bus0/target0/lun0/part2" succes=
sfully created

~ # vgcreate foo /dev/ide/host0/bus0/target0/lun0/part2
vgcreate -- INFO: using default physical extent size 32 MB
vgcreate -- INFO: maximum logical volume size is 2 Terabyte
vgcreate -- doing automatic backup of volume group "foo"
vgcreate -- volume group "foo" successfully created and activated

~ # lvcreate -l10 -n test foo
lvcreate -- doing automatic backup of "foo"
lvcreate -- logical volume "/dev/foo/test" successfully created

~ # parted_devices
/dev/foo/test	335544320=09
/dev/ide/host0/bus0/target0/lun0/disc	82348277760	IC35L080AVVA07-0
~ # ls -la /dev/ | grep foo
drwxr-xr-x    1 root     root            0 Jan  1  1970 foo
~ #=20
~ # ls -la /dev/foo
drwxr-xr-x    1 root     root            0 Jan  1  1970 .
drwxr-xr-x    1 root     root            0 Jan  1  1970 ..
crw-r-----    1 root     root     109,   0 Jan  1  1970 group
brw-r-----    1 root     root      58,   0 Jan  1  1970 test
~ #=20
~ # ls -la /dev/foo/test
brw-r-----    1 root     root      58,   0 Jan  1  1970 /dev/foo/test

---------------------------------------------------------------------------=
-------

~ # mkfs.ext2 /dev/ide/host0/bus0/target0/lun0/part2
mke2fs 1.35 (28-Feb-2004)
Filesystem label=3D
OS type: Linux
Block size=3D4096 (log=3D2)
Fragment size=3D4096 (log=3D2)
244320 inodes, 488376 blocks
24418 blocks (5.00%) reserved for the super user
First data block=3D0
15 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:=20
	32768, 98304, 163840, 229376, 294912
=2E..
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
~ # wget ftp://ftp-uxsup.csx.cam.ac.uk/pub/linux/debian/pool/main/l/lvm2/lv=
m2-ud =08eb_2.00.08-4_mips.udeb
Connecting to ftp-uxsup.csx.cam.ac.uk[131.111.8.10]:21

lvm2-udeb_2.00.08-4_   0% |                             |     0       --:--=
 ETA
lvm2-udeb_2.00.08-4_ 100% |*****************************|   170 KB    00:00=
 ETA
~ # wget ftp://ftp-uxsup.csx.cam.ac.uk/pub/linux/debian/pool/main/d/devmapp=
er/li =08bdevmapper1.00-udeb_1.00.15-1_mips.udeb
Connecting to ftp-uxsup.csx.cam.ac.uk[131.111.8.10]:21

libdevmapper1.00-ude   0% |                             |     0       --:--=
 ETA
libdevmapper1.00-ude 100% |*****************************| 10720       00:00=
 ETA
~ # udpkg -i libdevmapper1.00-udeb_1.00.15-1_mips.udeb
~ # udpkg -i lvm2-udeb_2.00.08-4_mips.udeb
~ #=20
~ # pvscan
  No matching physical volumes found
~ # vgscan
  Reading all physical volumes.  This may take a while...
  No volume groups found
~ # parted_devices
/dev/ide/host0/bus0/target0/lun0/disc	82348277760	IC35L080AVVA07-0
~ #=20
~ # pvcreate /dev/ide/host0/bus0/target0/lun0/part2
  No physical volume label read from /dev/ide/host0/bus0/target0/lun0/part2
  Physical volume "/dev/ide/host0/bus0/target0/lun0/part2" successfully cre=
ated
~ # vgcreate bar /dev/ide/host0/bus0/target0/lun0/part2
  Volume group "bar" successfully created
~ # lvcreate -l10 -n zoo bar
  Logical volume "zoo" created
~ # ls -l /dev/ | grep bar
dr-x------    1 root     root            0 May  3 17:11 bar
~ #=20
~ # ls -l /dev/bar
lr-xr-xr-x    1 root     root           19 May  3 17:11 zoo -> /dev/mapper/=
bar-zoo
~ #=20
~ # ls -l /dev/bar
lr-xr-xr-x    1 root     root           19 May  3 17:11 zoo -> /dev/mapper/=
bar-zoo
~ # ls -l /dev/mapper/
brw-r-----    1 root     root     254,   0 Jan  1  1970 bar-zoo
lr-xr-xr-x    1 root     root           21 Jan  1  1970 control -> ../misc/=
device-mapper
~ #=20
~ # ls -l /dev/mapper/bar-zoo
~ # ls -l /dev/mapper/bar-zoo
brw-r-----    1 root     root     254,   0 Jan  1  1970 /dev/mapper/bar-zoo
~ # parted_devices
/dev/ide/host0/bus0/target0/lun0/disc	82348277760	IC35L080AVVA07-0

--=20
Martin Michlmayr
tbm@cyrius.com

---------------------------------------
Received: (at 247174-done) by bugs.debian.org; 25 Nov 2004 13:29:28 +0000
>From sven.luther@wanadoo.fr Thu Nov 25 05:29:27 2004
Return-path: <sven.luther@wanadoo.fr>
Received: from smtp8.wanadoo.fr (mwinf0809.wanadoo.fr) [193.252.22.23] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CXJgd-0004Sq-00; Thu, 25 Nov 2004 05:29:27 -0800
Received: from me-wanadoo.net (localhost [127.0.0.1])
	by mwinf0809.wanadoo.fr (SMTP Server) with SMTP
	id E94F118000F7; Thu, 25 Nov 2004 14:28:55 +0100 (CET)
Received: from pegasos (AStrasbourg-251-1-24-132.w82-126.abo.wanadoo.fr [82.126.214.132])
	by mwinf0809.wanadoo.fr (SMTP Server) with ESMTP
	id C8BA1180005E; Thu, 25 Nov 2004 14:28:55 +0100 (CET)
Received: from luther by pegasos with local (Exim 4.34)
	id 1CXJjy-0004nk-32; Thu, 25 Nov 2004 14:32:54 +0100
Date: Thu, 25 Nov 2004 14:32:53 +0100
To: 239371-done@bugs.debian.org, 239372-done@bugs.debian.org,
	259248-done@bugs.debian.org, 247174-done@bugs.debian.org,
	259534-done@bugs.debian.org, 258188-done@bugs.debian.org
Subject: all fixed in NMUs, aknowledging them ...
Message-ID: <20041125133253.GA18450@pegasos>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
From: Sven Luther <sven.luther@wanadoo.fr>
Delivered-To: 247174-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 3

As subject said. 

Friendly,

Sven Luther