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

Matsu Matsu <matsu@r9.dion.ne.jp>, 298890@bugs.debian.org
Fri, 11 Mar 2005 23:22:32 +0900 (JST)


> 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=/dev/zero of=/dev/hdb bs=512 count=1
I upgraded lvm2 to lvm2_2.01.04-2_i386.deb again,
then I did "dd if=/dev/zero of=/dev/hdb bs=512 count=1".
And I ded pvscan and vgchange.
pvscan 
  PV /dev/hdb   VG vg1   lvm2 [115.04 GB / 75.04 GB free]
  Total: 1 [115.04 GB] / in use: 1 [115.04 GB] / in no VG: 0 [0   ]

vgchange -ay
  1 logical volume(s) in volume group "vg1" now active

Thank you for your advice.
Now, I can mount on LV.

Perhaps, I created the LV by doing...
# pvcreate /dev/hdb1;
# vgcreate vg1 /dev/hdb;
Is it the cause of the probrem?
Or when I create LV with lvm2 at the other machine,
must I do "dd if=/dev/zero of=/dev/hdb bs=512 count=1"?

=========================================================
Matsu
  e-mail   : matsu@r9.dion.ne.jp
=========================================================