Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th April 2005, 09:06 PM
Kommissar Offline
Registered User
 
Join Date: Mar 2005
Posts: 31
Exclamation LogVol Unexpected Inconsistency ERROR

So today I ran Synaptic to get the current batch of updates. One of the updates was a new Kernel for Fedora systems, yay. I reboot so I can use the new kernel (and possibly uninstall the old one) but an error occurs.

As the machine is starting up it does it's usual detecting hardware and setting hostname. After that, it goes to check the root filesystem and bombs with this error:

Code:
Checking root filesystem
/dev/VolGroup00/LogVol00: UNEXPECTED INCONSISTENCY; RUN 
fsck MANUALLY.

*** An error occured during the filesystem check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
*** {Some stuff about disabling SELinux here}
So I log into the shell as root and run fsck with the option to check for bad blocks and answer yes to all questions about relocating sectors. It goes through and claims to fix some orphaned sectors and nodes, relocates some sectors that seem to have to references (or something along those lines) and some other things which I did not catch completely. It seems to loop and start itsself again, so after the second time it did this I interrupted it and rebooted. Alas, I have the same error and do not know how to fix this. Please help me.

Thank you in advance.
Reply With Quote
  #2  
Old 12th April 2005, 09:18 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,016
The disk drive may be bad.
It can not be fixed if it is bad.
Download or use the disk MFG diagnostic software to boot up and run the tests on the disk.
If it says it is good then you can use it again for a re-install.
Otherwise, go to the disk MFG site and determine if the SERIAL Number of your disk can be RMA'ed for a new disk.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 12th April 2005, 11:35 PM
Kommissar Offline
Registered User
 
Join Date: Mar 2005
Posts: 31
Quote:
Originally Posted by SlowJet
The disk drive may be bad.
It can not be fixed if it is bad.
Download or use the disk MFG diagnostic software to boot up and run the tests on the disk.
If it says it is good then you can use it again for a re-install.
Otherwise, go to the disk MFG site and determine if the SERIAL Number of your disk can be RMA'ed for a new disk.

SJ
I think what happened was that it had only read access to the disk. I rebooted using the Fedora CDROM and booted to the rescue kernel and ran e2fsck -fy /dev/VolGroup00/LogVol00 to try and fix it again. As of now it's still going. I'll post the results. I did note that it deleted some nodes that referenced some bad blocks.

If this doesn't work is there anything else that I can do? I really do NOT want to reinstall. Can I backup? How do you backup a linux file system and retain all the SELinux attributes. On a side note, is SELinux even worth running?
Reply With Quote
  #4  
Old 12th April 2005, 11:56 PM
Fmac Offline
Registered User
 
Join Date: Apr 2005
Posts: 15
If you get any progress on this, I'd rather like to know - I'm in the same place. Left my box fscking at home - it's probably been going for nearly 10 hours, and last I checked, it seemed to be giving the same messages (mostly relocating data from nodes that seem to have been double-booked) in an endless loop.
Reply With Quote
  #5  
Old 13th April 2005, 12:06 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,016
I would say the RO was the problem.
You did the correct thing to check for bad sectors.

The only backup I know of is the most current cp using the -P and other options, but I haven't the facts as to weather the SELinux attributes are part of that program as a backup.

The other is dump. Again not enough info to relate to SELinux and LVM. (Nobody talks much about the truth, yea know. )

1. Check the disk with the MFG diagnositc test. (It won't hurt and then you will know the status of the disk. Because a bad disk isn't worth fooling around with.)

2. Try to CP or Dump ecah File System with all the settings you can figure out.

3. Most logical, out of all the install of FC3, only a small part of it is your data and the configuration settings.
Backup your data, write down your settings in a fiile and store off line.
If FC3 requires reinstalling it is not so bad, just time. 100 millions Windows people do it every 6 months. It's a piece of cake.

SJ

The proper backup for LVM is a snapshot copy. This is not implimented in LVM2 yet.
__________________
Do the Math
Reply With Quote
  #6  
Old 13th April 2005, 12:08 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,016
And, YES, SELinux is a must for more reasons than you can shake a stick at.

SJ
__________________
Do the Math
Reply With Quote
  #7  
Old 13th April 2005, 04:15 AM
Kommissar Offline
Registered User
 
Join Date: Mar 2005
Posts: 31
Quote:
Originally Posted by Fmac
If you get any progress on this, I'd rather like to know - I'm in the same place. Left my box fscking at home - it's probably been going for nearly 10 hours, and last I checked, it seemed to be giving the same messages (mostly relocating data from nodes that seem to have been double-booked) in an endless loop.
Well, I solved the endless loop (I think) by using the linux install cd and booting to rescue mode to run e2fsck. But now it seems like this is taking forever. After it removed a node with too many bad references it has just been scanning (I'm assuming, i have no output, but the HDD light is flashing) for the past 5 hours or so.

How long should e2fsck take to scan around 130 gigs in a LVM?
Reply With Quote
  #8  
Old 13th April 2005, 04:51 AM
Fmac Offline
Registered User
 
Join Date: Apr 2005
Posts: 15
Over here, I've been doing much the same . . . Running e2fsck from the boot cd fixed a few squawks, but not all. Note that I only have about 40 gigs to scan, also LVM, and it doesn't take more than five minutes for it to go through. Working time may be cut down by the fact that it's not actually performing repairs, but just returning error messages.

So, what I get from e2fsck is a few hundred permutations on the following:

Quote:
Group xxx's inode table at xxxxxxx conflicts with some other fs block. Relocate? (yes)
For each one of these prompts to to which I respond yes, it eventually returns the following:

Quote:
Error allocating x contiguous block(s) in block group xxx for inode table: Could not allocate block in ext2 filesystem.
After all of these, it fly through the rest of the passes with no problem, then give me my prompt back with a stern warning that the filesystem still contains errors.
Reply With Quote
  #9  
Old 13th April 2005, 04:54 AM
Kommissar Offline
Registered User
 
Join Date: Mar 2005
Posts: 31
FMac... I'd say we're screwed. But I'll leave it to the experts to confirm that.
Reply With Quote
  #10  
Old 11th May 2005, 02:00 PM
Iram Hernandez's Avatar
Iram Hernandez Offline
Registered User
 
Join Date: Apr 2005
Posts: 42
I'm having the same issues. I tried adding a second hard disk to my volume group. I ran the following commands

fdisk /dev/hdb
n (new)
p (primary)
1 (first partition)
t (type)
8e (lvm)
w (write to disk)

pvcreate /dev/hdb1

vgextend VolGroup00 /dev/hdb1

lvextend /dev/VolGroup00/LogVol00 /dev/hdb1

#rebooted with rescue cdrom

lvm vgchange -a y Volume00

lvm lvchange -a y /dev/VolGroup00/LogVol00

e2fsck -f /dev/VolGroup00/LogVol00 (competed without errors)

resize2fs -f /dev/VolGroup00/LogVol00 (added the -f because it was complaing that I should run e2fsck -f and I had already done that)

e2fsck -f /dev/VolGroup00/LogVol00

This is where I started getting the errors described above. I can access my files from the rescue disk, but I can not boot because of LVM inconsistancy errors.
Reply With Quote
  #11  
Old 12th May 2005, 03:48 AM
Iram Hernandez's Avatar
Iram Hernandez Offline
Registered User
 
Join Date: Apr 2005
Posts: 42
OK, I fought my way out of this one. After doing some research I found out that the resize2fs that comes on the stock fedora core 3 rescue disk is hosed. I think it is version 1.35. Version 1.36 addresses some of the problems caused by the broken version. What I wound up doing was burning a fedora core 4 test 3 rescue disk which comes with the correct version of the e2fs tools. I would have prefered to create a fedora core 3 rescue disk with the updated tools but I couldn't figure out how to do that in a timely fashion.

Once I was booted from the fedora core 4 test 2 rescue disk I ran the following commands:

#debugfs -w /dev/VolGroup00/LogVol00 -R "features ^resize_inode"
#e2fsck

e2fsck was able to find the errors and fix them. I was once again able to boot my system.

The project page e2fsprogs at http://sourceforge.net/project/shown...ase_id=296242a suggested that I run ext2prepare after my file system was fixed in order to reenable online file system resizing (which is what I should have probably done to begin with). I'm a bit hesitant to try this at this point after all the nightmares. Does anybody have experience with this procedure?
Reply With Quote
  #12  
Old 2nd June 2005, 09:57 PM
zimmertiger Offline
Registered User
 
Join Date: Jun 2005
Location: $home
Posts: 1
Hello,

Quote:
Originally Posted by Iram Hernandez
Does anybody have experience with this procedure?
First , a big Thank you to Iram for this solution - it helped me to repair my filesystem.
What has happened:
I had set up a FC3 box with software RAID, 3 ATA-disks , a RAID1 for "/" and "/boot" , a RAID5 with LVM for the data ...
After a few problems to set up LVM with the anaconda-GUI and a few boot's later i configured the LVM by command line and every thing works fine. To try it out , i resized one of my logical volumes as descibed in the "LVM HOWTO"
Later i copied some data on the volume , spent a few hours with "yum" and run a update via yum after my local repositority works fine.
Reboot , BANG ! Incosistent Filesystem on the resized logical volume : "Group 125's inode table ...'

Running Iram's commands using a FC4 rescue disk works fine !
Reply With Quote
Reply

Tags
error, inconsistency, logvol, unexpected

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F9 /w LUKS encryption tampered /w gnome-settings-lvm reboot: unexpected inconsistency pinol Using Fedora 0 10th June 2009 08:53 PM
UNEXPECTED INCONSISTENCY problem balasubramanian Using Fedora 8 29th May 2009 03:42 PM
Parse error: syntax error, unexpected T_STRING in /home/wwwroot/phpMyAdmin-2.6.2/libr marco75 Servers & Networking 0 18th December 2006 02:35 AM
Another unexpected consistency error on FC3... STAGED EOL (End Of Life) Versions 0 3rd October 2006 06:13 AM
unexpected inconsistency problem!!! pitat450 Using Fedora 4 12th March 2006 03:45 AM


Current GMT-time: 21:17 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat