Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystem problem: Software Raid [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Hyper_Eye
Guru
Guru


Joined: 17 Aug 2003
Posts: 463
Location: Huntsville, AL.

PostPosted: Fri May 05, 2006 2:29 am    Post subject: Filesystem problem: Software Raid [SOLVED] Reply with quote

I have had my Raid set up for well over a year. I have had no problems with it until today.

Code:
* Checking root filesystem ...       [ok]
/dev/md0 contains a file system with errors, check forced.
/dev/md0:
Inode 6914140 has illegal block(s).

/dev/md0: UNEXPECTED INCONSISTENCT; RUN fsck MANUALLY
             (i.e., without -a or -p options)
* Filesystem could not be fixed :(           [!!]


When I run fsck in maintenance mode it appears to lock up after some time. Any help would be appreciated.
_________________
Gentoo Gaming Videos


Last edited by Hyper_Eye on Fri May 05, 2006 6:05 am; edited 1 time in total
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri May 05, 2006 3:35 am    Post subject: Reply with quote

what kind of array (raid #)? how many disks? do you have smart enabled, and smartmontools installed?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Hyper_Eye
Guru
Guru


Joined: 17 Aug 2003
Posts: 463
Location: Huntsville, AL.

PostPosted: Fri May 05, 2006 3:40 am    Post subject: Reply with quote

bunder wrote:
what kind of array (raid #)? how many disks? do you have smart enabled, and smartmontools installed?


It is raid0 with 2 SATA drives. I am pretty sure I configured it with raidtools (it has been working for a long time and I am having to jog my memory.) I have smart enabled on the drive but I do not recall installing smartmontools.

I am trying to mount it with the live disc right now but I don't remember how to do that either.
_________________
Gentoo Gaming Videos
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri May 05, 2006 3:44 am    Post subject: Reply with quote

check your /var/log/dmesg or /var/log/syslog for ide errors? it sounds like the array has broken, possibly by a bad block. i was running a raid0 array that had similar issues (ran fine until a reboot, then wouldn't work right... long story short, i had to format with mke2fs -c -j)
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Hyper_Eye
Guru
Guru


Joined: 17 Aug 2003
Posts: 463
Location: Huntsville, AL.

PostPosted: Fri May 05, 2006 3:46 am    Post subject: Reply with quote

I need to get into the filesystem to check dmesg first. I can't seem to do that. Can anyone offer some assistance mounting it from 2006.0 minimal livecd?
_________________
Gentoo Gaming Videos
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri May 05, 2006 3:53 am    Post subject: Reply with quote

this is root on raid? hmm you might not be able to get it going. give this a try:

boot with cd
check to see if md module is loaded
make a raidtab on the fake /etc
try to bring up the array
e2fsck it
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Hyper_Eye
Guru
Guru


Joined: 17 Aug 2003
Posts: 463
Location: Huntsville, AL.

PostPosted: Fri May 05, 2006 4:31 am    Post subject: Reply with quote

Using both the install cd and the live cd I cannot load the md module. 'modprobe md' returns "FATAL: Module md not found."

I don't need to recover this sytem. I can reinstall. If someone can help me access my drive so I can get some things off of it that would be great.
_________________
Gentoo Gaming Videos
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri May 05, 2006 4:33 am    Post subject: Reply with quote

Hyper_Eye wrote:
Using both the install cd and the live cd I cannot load the md module. 'modprobe md' returns "FATAL: Module md not found."

I don't need to recover this sytem. I can reinstall. If someone can help me access my drive so I can get some things off of it that would be great.


ok, md might actually be built into the livecd kernel. you'd still need to make a raidtab to get the drives running however.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Hyper_Eye
Guru
Guru


Joined: 17 Aug 2003
Posts: 463
Location: Huntsville, AL.

PostPosted: Fri May 05, 2006 4:44 am    Post subject: Reply with quote

Alright! I have it mounted! My data seems okay. It did warn that the filesystem contains errors. The module that needed to be loaded was 'dm-mod'. I created a simple raidtab and did a 'raidstart /dev/md0' and wala... it worked. So... now I am going to backup some things and then try fsck. Thanks for your help so far.

EDIT: I also had to make the md device with 'MAKEDEV md' before I could run startraid.
_________________
Gentoo Gaming Videos
Back to top
View user's profile Send private message
Hyper_Eye
Guru
Guru


Joined: 17 Aug 2003
Posts: 463
Location: Huntsville, AL.

PostPosted: Fri May 05, 2006 6:05 am    Post subject: Reply with quote

fsck was successful. It turns out I had been downloading a file when I ran something that caused a hardlock. That file was corrupted. I suspected that might be the problem and that is exactly what it was. Thanks for all the help here and in the IRC chat.
_________________
Gentoo Gaming Videos
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri May 05, 2006 7:46 am    Post subject: Reply with quote

glad to hear that it wasn't a dying drive. :lol:
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum