LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-19-2007, 02:42 PM   #1
jonas.sheiakh
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
Corrupt mtab file on FC4 and DF not working


Hi,

Having some problems with one of our production systems,
sadly i was around when this system was installed in 2005 and i havent figured out the complete setup, but this is what problems i get.

[root@app1 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
df: `DEVNO="0x0801"': No such file or directory
df: `DEVNO="0x0811"': No such file or directory
df: `DEVNO="0x0812"': No such file or directory
df: `DEVNO="0x0900"': No such file or directory
/dev/shm 1037348 0 1037348 0% /dev/shm
[root@app1 ~]#

This dosnt look very good, i then look in the /etc/mtab file
in this is what it shows.

[root@app1 ~]# cat /etc/mtab
<device DEVNO="0x0801" TIME="1123068626" UUID="54dd4b36-cb5e-411a-aced-ad16b056a62e" SEC_TYPE="ext2" TYPE="ext3">/dev/sda1</device>
<device DEVNO="0x0811" TIME="1123068626" UUID="54dd4b36-cb5e-411a-aced-ad16b056a62e" SEC_TYPE="ext2" TYPE="ext3">/dev/sdb1</device>
<device DEVNO="0x0812" TIME="1185408985" TYPE="swap" LABEL="SWAP-sdb2" UUID="0f564e5e-ca16-4b55-ac08-90b5956d94d6">/dev/sdb2</device>
<device DEVNO="0x0900" TIME="1123068626" PRI="10" UUID="54dd4b36-cb5e-411a-aced-ad16b056a62e" SEC_TYPE="ext2" TYPE="ext3">/dev/md0</device>
/dev/shm /dev/shm tmpfs rw 0 0
[root@app1 ~]#

I have no idea why its looking like that, but it havent always that im sure of.

and just running "mount" gives me this.

[root@app1 ~]# mount
[mntent]: line 1 in /etc/mtab is bad
[mntent]: line 2 in /etc/mtab is bad
[mntent]: line 3 in /etc/mtab is bad
[mntent]: line 4 in /etc/mtab is bad
/dev/shm on /dev/shm type tmpfs (rw)
[root@app1 ~]#

I think the server is running a raid1 with the help of mdadm

/dev/md0 is mounted as / . that i know

running mdadm --details /dev/md0 gives me this

[root@app1 ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Wed Aug 3 12:55:39 2005
Raid Level : raid1
Array Size : 155195776 (148.01 GiB 158.92 GB)
Device Size : 155195776 (148.01 GiB 158.92 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Nov 19 21:39:15 2007
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 85381074:35361abd:4a206657:2bc85785
Events : 0.37174389

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 0 0 - removed
[root@app1 ~]#

One of the discs is broken that i know, and it has been removed from the raidsetup as you can see above until i can replace it, though should this have any affect that i cant do a "df" on the system ?

I appreciate any intell on this,

Kind regards, Jonas
 
Old 11-25-2007, 12:17 PM   #2
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Quote:
Originally Posted by jonas.sheiakh View Post
Hi,

Having some problems with one of our production systems,
sadly i was around when this system was installed in 2005 and i havent figured out the complete setup, but this is what problems i get.

[root@app1 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
df: `DEVNO="0x0801"': No such file or directory
df: `DEVNO="0x0811"': No such file or directory
df: `DEVNO="0x0812"': No such file or directory
df: `DEVNO="0x0900"': No such file or directory
/dev/shm 1037348 0 1037348 0% /dev/shm
[root@app1 ~]#

This dosnt look very good, i then look in the /etc/mtab file
in this is what it shows.

[root@app1 ~]# cat /etc/mtab
<device DEVNO="0x0801" TIME="1123068626" UUID="54dd4b36-cb5e-411a-aced-ad16b056a62e" SEC_TYPE="ext2" TYPE="ext3">/dev/sda1</device>
<device DEVNO="0x0811" TIME="1123068626" UUID="54dd4b36-cb5e-411a-aced-ad16b056a62e" SEC_TYPE="ext2" TYPE="ext3">/dev/sdb1</device>
<device DEVNO="0x0812" TIME="1185408985" TYPE="swap" LABEL="SWAP-sdb2" UUID="0f564e5e-ca16-4b55-ac08-90b5956d94d6">/dev/sdb2</device>
<device DEVNO="0x0900" TIME="1123068626" PRI="10" UUID="54dd4b36-cb5e-411a-aced-ad16b056a62e" SEC_TYPE="ext2" TYPE="ext3">/dev/md0</device>
/dev/shm /dev/shm tmpfs rw 0 0
[root@app1 ~]#

I have no idea why its looking like that, but it havent always that im sure of.

and just running "mount" gives me this.

[root@app1 ~]# mount
[mntent]: line 1 in /etc/mtab is bad
[mntent]: line 2 in /etc/mtab is bad
[mntent]: line 3 in /etc/mtab is bad
[mntent]: line 4 in /etc/mtab is bad
/dev/shm on /dev/shm type tmpfs (rw)
[root@app1 ~]#

I think the server is running a raid1 with the help of mdadm

/dev/md0 is mounted as / . that i know

running mdadm --details /dev/md0 gives me this

[root@app1 ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Wed Aug 3 12:55:39 2005
Raid Level : raid1
Array Size : 155195776 (148.01 GiB 158.92 GB)
Device Size : 155195776 (148.01 GiB 158.92 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Nov 19 21:39:15 2007
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 85381074:35361abd:4a206657:2bc85785
Events : 0.37174389

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 0 0 - removed
[root@app1 ~]#

One of the discs is broken that i know, and it has been removed from the raidsetup as you can see above until i can replace it, though should this have any affect that i cant do a "df" on the system ?

I appreciate any intell on this,

Kind regards, Jonas
Do you know what raid level it is set at or did I miss it in the test above?
 
Old 11-26-2007, 02:19 AM   #3
jonas.sheiakh
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
as --details output from above its raidlevel 1, though i fixed this by rebooting the system. But i have still no idea what caused the problem,
but after the reboot it worked, the mtab file was looking good and df was working without a problem. But it was a nervous couple of mins when i rebooted the system remote. Still would be nice if some1 actually knew why or how this was caused.
 
Old 11-26-2007, 03:37 AM   #4
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Quote:
Originally Posted by jonas.sheiakh View Post
Hi,
as --details output from above its raidlevel 1, though i fixed this by rebooting the system. But i have still no idea what caused the problem,
but after the reboot it worked, the mtab file was looking good and df was working without a problem. But it was a nervous couple of mins when i rebooted the system remote. Still would be nice if some1 actually knew why or how this was caused.
I have worked with production raid systems and they have done some strange things as in not being found upon boot up and having to power down the system to 'reseat' a drive and it worked just fine.


I would do the mdadm --display command and verify everything is working ok, and physically check out the machine maybe one of the drives is not seated correctly or loose. Just a starting point to rule out a lot of variables, otherwise it is a needle in a haystack type of deal.
 
  


Reply



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
Dual boot w/FC4/WinXP - hal.dll is corrupt or missing cliffhanger9 General 6 05-24-2006 12:10 PM
I lost line 5 in mtab file. njbrain Linux - General 2 03-13-2004 09:32 AM
Had windows 2000 but is now corrupt, decided to go with linux, ISN'T WORKING!! Gamer Linux - Newbie 9 01-25-2004 12:14 PM
corrupt lease file ? h/w Linux - Networking 5 10-01-2003 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:42 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
Open Source Consulting | Domain Registration