LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2008, 09:10 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
FSCK issue?


I have been stuck with running of fsck on my one of LVM partition.Whenever I run the following command:

Code:
[root@BL08DL385 ~]# fsck   /dev/VolGroup00/lvmydata
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
The filesystem size (according to the superblock) is 4194304 blocks
The physical size of the device is 2883584 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

/dev/VolGroup00/lvmydata contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 2883586 (Invalid argument) while doing inode scan.  Ignore error<y>? no

Error while scanning inodes (1441792): Can't read next inode
e2fsck: aborted
[root@tuxbuddy ~]# fsck   /dev/VolGroup00/lvmydata
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
The filesystem size (according to the superblock) is 4194304 blocks
The physical size of the device is 2883584 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

/dev/VolGroup00/lvmydata contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 2883586 (Invalid argument) while doing inode scan.  Ignore error<y>? yes

Force rewrite<y>? yes

Error writing block 2883586 (Invalid argument) while doing inode scan.  Ignore error<y>? yes

Error reading block 2883587 (Invalid argument) while doing inode scan.  Ignore error<y>? yes

Force rewrite<y>? yes

Error writing block 2883587 (Invalid argument) while doing inode scan.  Ignore error<y>? yes

Error reading block 2883588 (Invalid argument) while doing inode scan.  Ignore error<y>? yes

Force rewrite<y>?

I continued pressed the y key for 1 hour but still its not letting me done with the repair.

I did tried -y or -A option but cant help to repair the same.


Pls Help
 
Old 08-11-2008, 10:21 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
This is important:

Code:
Either the superblock or the partition table is likely to be corrupt!
The filesystem size (according to the superblock) is 4194304 blocks
The physical size of the device is 2883584 blocks
You have a file system that is twice the size of the allotted partition space! This must be fixed.

First, check that the partition table make sense. If that is correct, then run fsck using an alternate superblock, because this primary appears incorrect.
 
Old 08-11-2008, 10:28 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I dint get you.What it really means?
Can you tel what i need to check or what steps I need to follow to get rid of that error?
I have mysql installed on that partition and the error was thrown when trying to run mysql and its not starting.

Anyway Pls Help me steps by steps how to get rid of the problem?
 
Old 08-11-2008, 11:39 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
What is the output of
Code:
pvdisplay
lvdisplay
Also, here are some overviews on using LVM. Its worth getting to know a technology if you are going to use it, because someday, you'll have to debug it.

http://www.debian-administration.org/articles/410
http://www.howtoforge.com/linux_lvm
 
Old 08-12-2008, 08:52 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
[root@tuxbuddy ~]# pvdisplay

--- Physical volume ---

PV Name /dev/cciss/c0d0p2

VG Name VolGroup00

PV Size 136.56 GB / not usable 31.24 MB

Allocatable yes

PE Size (KByte) 32768

Total PE 4369

Free PE 394

Allocated PE 3975

PV UUID J75n4l-1Low-z2QG-s4OH-RFVM-lNRD-sECIFW



[root@BL08DL385 ~]# lvdisplay

--- Logical volume ---

LV Name /dev/VolGroup00/LogVol00

VG Name VolGroup00

LV UUID ww1ywr-qehB-Lfjs-42Y1-NvJw-l0s3-MGK4yA

LV Write Access read/write

LV Status available

# open 1

LV Size 11.72 GB

Current LE 375

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:0



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol02

VG Name VolGroup00

LV UUID KzoTUE-jnyx-DSpZ-RnnQ-o2Jt-Soon-0O9dQq

LV Write Access read/write

LV Status available

# open 1

LV Size 4.91 GB

Current LE 157

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:1



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol07

VG Name VolGroup00

LV UUID lON2y7-eyXP-cz6i-Owhi-2S3F-kuWE-W26LYQ

LV Write Access read/write

LV Status available

# open 1

LV Size 4.91 GB

Current LE 157

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:2



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol03

VG Name VolGroup00

LV UUID dA1M94-TrT4-35u9-zlpL-nXE9-L11d-WA3C11

LV Write Access read/write

LV Status available

# open 1

LV Size 2.47 GB

Current LE 79

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:3



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol04

VG Name VolGroup00

LV UUID 5NYFyb-iIMj-8gKq-B0Hf-mb4M-Fx2X-6x3VnN

LV Write Access read/write

LV Status available

# open 1

LV Size 14.66 GB

Current LE 469

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:4



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol06

VG Name VolGroup00

LV UUID MUfxZS-LSot-NQTU-cR91-m6WB-Z9eE-f1eNYL

LV Write Access read/write

LV Status available

# open 1

LV Size 2.94 GB

Current LE 94

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:5



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol05

VG Name VolGroup00

LV UUID 5lJ43w-oqFe-tJN2-cIxo-kSNQ-d0UF-pQBKvl

LV Write Access read/write

LV Status available

# open 1

LV Size 12.00 GB

Current LE 384

Segments 3

Allocation inherit

Read ahead sectors 0

Block device 253:6



--- Logical volume ---

LV Name /dev/VolGroup00/LogVol01

VG Name VolGroup00

LV UUID YSdkck-RQfk-WnHG-3g0q-cErE-hzVg-kxc81b

LV Write Access read/write

LV Status available

# open 0

LV Size 15.62 GB

Current LE 500

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:7



--- Logical volume ---

LV Name /dev/VolGroup00/lvfs

VG Name VolGroup00

LV UUID 0TG220-m1PZ-cleO-3lHX-4bda-XClY-LG41Mm

LV Write Access read/write

LV Status available

# open 1

LV Size 2.00 GB

Current LE 64

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:8



--- Logical volume ---

LV Name /dev/VolGroup00/lvfsrecord

VG Name VolGroup00

LV UUID ekabAY-T6c8-nQzu-JU6J-Ion1-rPNg-K6cbVF

LV Write Access read/write

LV Status available

# open 1

LV Size 8.00 GB

Current LE 256

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:9



--- Logical volume ---

LV Name /dev/VolGroup00/lvfslog

VG Name VolGroup00

LV UUID 4Z2tz1-69gV-0Yg0-l9YJ-yYcu-TdtK-FqTB3h

LV Write Access read/write

LV Status available

# open 1

LV Size 2.00 GB

Current LE 64

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:10



--- Logical volume ---

LV Name /dev/VolGroup00/lvfstomcat

VG Name VolGroup00

LV UUID rGBSy2-B9SQ-dgmc-ljhi-KXoV-8jA9-A8WDcQ

LV Write Access read/write

LV Status available

# open 1

LV Size 2.00 GB

Current LE 64

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:11



--- Logical volume ---

LV Name /dev/VolGroup00/lvfstrace

VG Name VolGroup00

LV UUID ID0bRh-dSTm-HKlP-kYee-gI3G-KnXk-VeNqin

LV Write Access read/write

LV Status available

# open 1

LV Size 4.00 GB

Current LE 128

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:12



--- Logical volume ---

LV Name /dev/VolGroup00/lvmydata

VG Name VolGroup00

LV UUID 4WRX2m-YEWF-D3VJ-Yi8A-hfrg-D3Jm-wzIbEu

LV Write Access read/write

LV Status available

# open 1

LV Size 11.00 GB

Current LE 352

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:13



--- Logical volume ---

LV Name /dev/VolGroup00/lvfsarchive

VG Name VolGroup00

LV UUID IRfypJ-AxP8-vdyL-3Ixo-pAKM-jJVa-PzhUqe

LV Write Access read/write

LV Status available

# open 1

LV Size 6.00 GB

Current LE 192

Segments 1

Allocation inherit

Read ahead sectors 0

Block device 253:14



--- Logical volume ---

LV Name /dev/VolGroup00/lvmylog

VG Name VolGroup00

LV UUID 0ifdyl-SAeO-AmZO-995q-tmiR-Rm1a-RvZFOU

LV Write Access read/write

LV Status available

# open 1

LV Size 20.00 GB

Current LE 640

Segments 2

Allocation inherit

Read ahead sectors 0

Block device 253:15
 
Old 08-12-2008, 08:56 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Just to tell inform you that :

Code:
--- Logical volume ---

  LV Name                /dev/VolGroup00/lvmylog
  VG Name                VolGroup00
  LV UUID                0ifdyl-SAeO-AmZO-995q-tmiR-Rm1a-RvZFOU
  LV Write Access        read/write
  LV Status              available
  # open                 1
 LV Size                20.00 GB
  Current LE             640
  Segments               2
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:15Regards
When I run # df -h it shows lvmylog as 16.00 GB but here above it is showing 20 GB Donno Why?

MySQL is using this partition and thats why unable to start up?
 
Old 08-12-2008, 09:09 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Code:
[root@tuxbuddy~]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

                       12G  808M   11G   8% /

/dev/cciss/c0d0p1      99M   15M   80M  16% /boot

none                  3.9G     0  3.9G   0% /dev/shm

/dev/mapper/VolGroup00-LogVol02

                      4.9G   47M  4.6G   1% /home

/dev/mapper/VolGroup00-LogVol07

                      4.9G   42M  4.6G   1% /opt

/dev/mapper/VolGroup00-LogVol03

                      2.5G  127M  2.2G   6% /tmp

/dev/mapper/VolGroup00-LogVol04

                       15G  7.2G  6.6G  53% /usr

/dev/mapper/VolGroup00-LogVol06

                      2.9G   40M  2.8G   2% /usr/local

/dev/mapper/VolGroup00-LogVol05

                       12G  5.1G  6.3G  45% /var

/dev/mapper/VolGroup00-lvfs

                      2.0G   59M  1.9G   4% /home/fsadmin

/dev/mapper/VolGroup00-lvfsrecord

                      7.9G   59M  7.5G   1% /home/fsadmin/records

/dev/mapper/VolGroup00-lvfslog

                      2.0G   37M  1.9G   2% /home/fsadmin/logs

/dev/mapper/VolGroup00-lvfstomcat

                      2.0G   79M  1.8G   5% /home/fsadmin/tomcat

/dev/mapper/VolGroup00-lvfstrace

                      4.0G   61M  3.7G   2% /home/fsadmin/traces

/dev/mapper/VolGroup00-lvmylog

                       20G  3.7G   16G  20% /home/fsadmin/mysql/logs

/dev/mapper/VolGroup00-lvfsarchive

                      6.0G  332M  5.3G   6% /home/fsadmin/archive

/dev/mapper/VolGroup00-lvmydata

                       16G   84M   16G   1% /home/fsadmin/mysql/data

Last edited by your_shadow03; 08-12-2008 at 09:11 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with FSCK laucian Linux - Newbie 3 02-05-2008 09:54 AM
What exactly does fsck do? jgombos Linux - Newbie 9 11-22-2006 12:12 AM
Bootloader? Issue with Fsck mclinkor Linux - General 3 12-18-2005 08:58 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 08:51 AM
Fsck scottpioso Linux - Newbie 7 06-01-2003 04:06 PM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration