A while back I finally upgraded my Debian machine's kernel from 2.4.x to 2.6.15. I don't know much about LVM, but I had set up LVM with something like this (where /dev/md0 is a RAID1 device on two entire disk partitions).
pvcreate /dev/md0 vgcreate localvg /dev/md0 lvcreate -L20G -nlv_local1 localvg mke2fs -j /dev/localvg/lv_local1 mount /dev/localvg/lv_local1 /opt That seemed to work. Update /etc/fstab to mount the logical volume at /opt, and it ran like a charm. Post reboot, I could access /opt, and (from what I can remember), /opt appeared to be a logical volume on top of the RAID1 device. After the kernel upgrade... # grep opt /etc/fstab /dev/localvg/lv_local1 /opt ext3 defaults 0 0 # mount /opt mount: special device /dev/localvg/lv_local1 does not exist I figured that something was wrong with my init scripts, but everything seems to be in place. I've just lost /dev/localvg. # mdadm --detail --scan ARRAY /dev/md0 level=raid1 num-devices=2 UUID=11252c08:1e94dede:5eaea508:309ed1a1 # mdadm -As /dev/md0 mdadm: device /dev/md0 already active - cannot assemble it # pvscan Found duplicate PV 7LOs90S2Ff8W7Tq8ZGRsT41lphbExsLh: using /dev/hdg1 not /dev/hde1 PV /dev/hde1 VG localvg lvm2 [111.79 GB / 91.79 GB free] Total: 1 [111.79 GB] / in use: 1 [111.79 GB] / in no VG: 0 [0 ] # vgchange -a y localvg Found duplicate PV 7LOs90S2Ff8W7Tq8ZGRsT41lphbExsLh: using /dev/hdg1 not /dev/hde1 1 logical volume(s) in volume group "localvg" now active # vgscan Reading all physical volumes. This may take a while... Found duplicate PV 7LOs90S2Ff8W7Tq8ZGRsT41lphbExsLh: using /dev/hdg1 not /dev/hde1 Found volume group "localvg" using metadata type lvm2 So, do I just create /dev/localvg? Should it be getting created at boot time? I'm not sure what's going on here, but I'd love to get my storage back. :-) Thanks, ---Tom -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
