Bug#298890: lvm2: Device-mapper lookups no devices

Bastian Blank Bastian Blank <waldi@debian.org>, 298890@bugs.debian.org
Fri, 11 Mar 2005 09:18:58 +0100


--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 10, 2005 at 11:53:59PM -0500, Andres Salomon wrote:
> > With "lvm2_2.00.24-1_i386.dev",
> > Stdout of pvscan is "
> >   PV /dev/hdb    VG vg1   lvm2 [115.04 GB / 75.04 GB free]
> >   PV /dev/hdb1            lvm2 [115.04 GB]
> >   Total: 2 [230.07 GB] / in use: 1 [115.04 GB] / in no VG: 1 [115.04 GB]
> > ".
> Wtf?  hdb and hdb1?

The LVM2 header begins as sector 2 not 0, so both a partition table and
the LVM2 header fits. And something in LVM2 decides to don't longer try
the useless hdb in this case.

So, please backup the data and overwrite the first sector of the disk:
dd if=3D/dev/zero of=3D/dev/hdb bs=3D512 count=3D1

Bastian

--=20
Many Myths are based on truth
		-- Spock, "The Way to Eden",  stardate 5832.3

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iEYEARECAAYFAkIxVHIACgkQnw66O/MvCNE0WwCdHvOQDRTkqoSTQIha3DqNXeSJ
H0gAoKIdqHFPtNO6PG8TQVGSyS9KR+ka
=BYj1
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--