LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-08-2011, 05:56 PM   #1
juan_f_vidal
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Rep: Reputation: 0
/dev/VolGroup01/u04: UNEXPECTED INCONSISTENCY Run fsck Manually


RHEL 5.4

Hi, I'm facing the following error after rebooting the server:

/dev/VolGroup01/u04: UNEXPECTED INCONSISTENCY Run fsck Manually"
*** An error accurred during the file system chek.
*** Dropping you to a shell: the system wil reboot
*** when you leave the shell.
give the root password for maintenence:


-Previously I performed a lvreduce command on a LV, after the lvreduce, I reboot the server.

-After login as root I run:

e2fsck -f /dev/VolGroup01/u04

but, it shows:

the filesystem size (according to the superblock) is 5218304 blocks
the physical size of the device is 1310720 blocks
...
either the superblock or the partition table is likely to be corrupt
abort<y>? no
pass 1: cheking inodes, blocks, and sizes
error reading block 1310722 (invalid argument) while doing inode scan
inore error <y>? y


-Additionaly, trying to lvdisplay, it shows:

locking type -1 initialisation failed


I have no important data on that LV, but I would appreciate any clue or help, because I can not boot the server properly.

Kind regards,

Juan.
 
Old 06-08-2011, 07:01 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,116

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Before reducing the lv (or a partition in a non-LVM environment) you *must* reduce the filesystem first.
Seems you didn't.

If you must get the system booted, remove that lv from fstab - use a rescue system for that.

After that, if you're lucky, you may be able to resize the lv back to where it was and do the fsck. Depends if the disk space has been (re-)used by something else.
 
1 members found this post helpful.
Old 06-08-2011, 08:34 PM   #3
juan_f_vidal
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi syg00, many thanks for your response.

Yes, you are right, I didn't reduced the filesystem first.

1. You mean I must remove the lv line in the fstab file after booting from the CD and typing "linux rescue", right?

2. Once booted, how should I resize the lv back? (Its original size was 15G)

Thanks and regards,

Juan.
 
Old 06-08-2011, 10:51 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,116

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
1) Yes - or just comment it out for now.
2) lvresize, lvextend ...

"man lvm" lists all the sub-commands. There is also a LVM howto on tldp.or - Redahat used to have one on their dococ site as well.
 
1 members found this post helpful.
Old 06-09-2011, 11:31 AM   #5
juan_f_vidal
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi syg00,
I performed the following actions:

1. Boot from RHEL CD, linux rescue mode.
2. Edited /mnt/sysimage/etc/fstab deleting the line belonging to the failed lv "/dev/VolGroup01/u04"
3. Exctracted the CD and rebooted the server.
4. The system booted properly, but without mounting the affected LV.
5. As the LV was no longer needed and without usefull data, it was removed with

# lvremove /dev/VolGroup01/u04

6. System rebooted and started up normally without any errors.

Many thanks for your support.

Regards,

Juan.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck failed run manually elchiky Linux - Newbie 3 09-24-2010 06:33 AM
Boot error fsck.reiserfs failed Run Manually anerusmc Linux - Newbie 5 11-03-2009 07:34 PM
Unexpected inconsistency, run fsck manually twangchuk Linux - Newbie 2 06-12-2009 09:51 AM
computer asks me to run a FSCK Manually, but won't : says can't run on mounted lightwave Linux - Newbie 12 04-02-2008 12:25 AM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 09:03 PM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration