Minor LVM bollixment

Rick Stevens rstevens at vitalstream.com
Thu Jul 27 20:01:43 UTC 2006


On Thu, 2006-07-27 at 12:40 -0500, Bob McClure Jr wrote:
> Last night, my wife rebooted our web server with the reset button
> (don't ask).  It booted ok and appears to be running fine, but now I
> get this result from "fdisk -l"
> 
> Disk /dev/hda: 80.0 GB, 80060424192 bytes
> 255 heads, 63 sectors/track, 9733 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1          13      104391   83  Linux
> /dev/hda2              14          26      104422+  83  Linux
> /dev/hda3              27          39      104422+  83  Linux
> /dev/hda4              40        9733    77867055   8e  Linux LVM
> 
> Disk /dev/dm-0: 8388 MB, 8388608000 bytes
> 255 heads, 63 sectors/track, 1019 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Disk /dev/dm-0 doesn't contain a valid partition table
> 
> Disk /dev/dm-1: 8388 MB, 8388608000 bytes
> 255 heads, 63 sectors/track, 1019 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Disk /dev/dm-1 doesn't contain a valid partition table
> 
>   .
>   .
>   .
>   .
> 
> Disk /dev/dm-10: 8589 MB, 8589934592 bytes
> 255 heads, 63 sectors/track, 1044 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Disk /dev/dm-10 doesn't contain a valid partition table
> 
> Disk /dev/dm-11: 10.7 GB, 10737418240 bytes
> 255 heads, 63 sectors/track, 1305 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Disk /dev/dm-11 doesn't contain a valid partition table
> 
> The /dev/dm-nn correspond to the 12 logical volumes in that VG.

Did you "vgchange -ay" to see if they got turned off?  Did you
verify that /etc/lvm.conf was OK?

> 
> I checked dmesg and found this:
> 
> EXT3-fs: dm-0: orphan cleanup on readonly fs
> ext3_orphan_cleanup: deleting unreferenced inode 1094899
> ext3_orphan_cleanup: deleting unreferenced inode 227777
> ext3_orphan_cleanup: deleting unreferenced inode 1078122
> ext3_orphan_cleanup: deleting unreferenced inode 1466022
> ext3_orphan_cleanup: deleting unreferenced inode 617737
> ext3_orphan_cleanup: deleting unreferenced inode 617736
> ext3_orphan_cleanup: deleting unreferenced inode 617735
> ext3_orphan_cleanup: deleting unreferenced inode 617733
> ext3_orphan_cleanup: deleting unreferenced inode 1239631
> EXT3-fs: dm-0: 9 orphan inodes deleted
> EXT3-fs: recovery complete.
> EXT3-fs: mounted filesystem with ordered data mode.
> 
> There's nothing in /lost+found.  Several LVM tools I tried, including
> vgck report nothing amiss.

Did you try "lvm -P dumpconfig", "pvscan", "lvscan", "lvchange -ay"
and the like?  I'd do the dumpconfig, then the pvscan and lvscan.
They may find something odd.  Assuming that comes up OK, then the
"lvchange -ay" should make them available.

> 
> The system is FC4, updated nightly with yum.  A Google search didn't
> turn up anything useful.
> 
> As I noted, it's running fine apparently.  How do I fix this short of
> setting up a new drive and copying everything over?

Try the above.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  Perseverance:  When you're too damned stubborn to say "I quit!"   -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list