Thank you for responding. The corruption was on the physical volume somewhere. Everytime I rebooted, it came back.
I ended up booting our emergency Linux and echoing access to all our DASD. I then ran the following LVM command to identify which physical volumes contained /dev/linuxd01/tmp and /dev/linuxd01/opt. vgcfgrestore ?f /mnt/etc/lvmconf/linuxd01.conf -ll /mnt/etc/lvmconf/linuxd01.conf is my root filesystem mounted on my emergency Linux. /mnt/etc/lvmconf/linuxd01.conf contains a backup of the volume group metadata. Once I knew which physical volumes contained the logical volumes, I was able to restore only the volume group metadata which was a bit tricky. I had to issue the following commands: vgcfgrestore ?f /mnt/etc/lvmconf/linuxd01.conf ?o /dev/dasdc1 /dev/dasdg1 vgcfgrestore ?f /mnt/etc/lvmconf/linuxd01.conf ?o /dev/dasdd1 /dev/dasdh1 /dev/dasdc1 and/dev/dasdd1 were the normal devices under /proc/dasd/devices when Linux was up and running fine. /dev/dasdg1 and /dev/dasdh1 were the same devices as under /proc/dasd/devices under my emergency Linux. Once I had all the information, the vgcfgrestore work rather quickly and corrected my problem. I have not found where, but somewhere, SuSE issues a vgcfgbackup when a change is made to the volume group. Thanks for small breaks. It was a learning experience. Peter "Post, Mark K" <[EMAIL PROTECTED]> Sent by: Linux on 390 Port <[email protected]> 01/16/2005 06:06 PM Please respond to Linux on 390 Port <[email protected]> To [email protected] cc Subject Re: LVM corrupted in /dev/lv-name Hmm, this could be nasty. I'm not totally familiar with LVM from a fixing perspective. I can tell you what my stuff looks like, though. I don't have any 58:0 device in my LVM devices. The logical volumes start with 58:1 # v /dev/vg01/ total 0 brw-rw---- 1 root disk 58, 0 2004-12-20 17:19 current brw-rw---- 1 root disk 58, 5 2004-12-20 17:19 gccbuild crw-r----- 1 root disk 109, 0 2004-12-20 17:19 group brw-rw---- 1 root disk 58, 3 2004-12-20 17:19 lvol1 brw-rw---- 1 root disk 58, 1 2004-12-20 17:19 swap brw-rw---- 1 root disk 58, 4 2004-12-20 17:19 tmp brw-rw---- 1 root disk 58, 2 2004-12-20 17:19 usr Take a look in /proc/lvm/VGs/linuxd01/LVs/. You should find one "file" in there for each logical volume. # grep ^device * current:device: 58:00 gccbuild:device: 58:05 lvol1:device: 58:03 swap:device: 58:01 tmp:device: 58:04 usr:device: 58:02 Those should match what is in /dev/linuxd01. Now, I'm not at all sure what creates that mapping in the first place. Perhaps someone else can help there. Mark Post -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Peter E. Abresch Jr. - at Pepco Sent: Sunday, January 16, 2005 2:13 PM To: [email protected] Subject: LVM corrupted in /dev/lv-name We are running SuSE Linux version 8 SP03 in a native LPAR. We are utilizing Logical Volume Manager (lvm). We lost our dasd and the filesystems became corrupted. I was able to run reiserfsck to recover however, /dev/linuxd01/tmp and /dev/linuxd01/opt appear to be the same. A listing of /dev/linuxd01 reveals the following: linuxt01:/ # ls -al /dev/linuxd01 total 40 dr-xr-xr-x 2 root root 4096 2005-01-16 13:45 . drwxr-xr-x 12 root root 36864 2005-01-16 13:45 .. crw-r----- 1 root disk 109, 0 2005-01-16 13:45 group brw-rw---- 1 root disk 58, 1 2005-01-16 13:45 home brw-rw---- 1 root disk 58, 2 2005-01-16 13:45 local brw-rw---- 1 root disk 58, 0 2005-01-16 13:45 opt brw-rw---- 1 root disk 58, 0 2005-01-16 13:45 tmp brw-rw---- 1 root disk 58, 3 2005-01-16 13:45 var Both opt and tmp have 0. Does anyone know how I can correct this? Thanks. Peter ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
