LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-05-2003, 12:22 PM   #16
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15

Thanks for all the help! I just booted up with the RH CD and when I get check running processes, there's about 20 instances of "kjournald" running, 9 of which are "defunkt".....Is that right? Could this be what's causing my problem?
 
Old 11-05-2003, 12:35 PM   #17
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
I did some quick googling and I found that kjournald processes are the journaling mechanism for your ext-3 file systems.

This is probably a symptom of your problem, rather than a cause. I am not sure how ext3 journaling reacts when your system is trying to deal with flaky HDD media.
 
Old 11-05-2003, 12:42 PM   #18
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
I'm at my wits end now. *Should* I be able to run a fsck.ext3 check on my / partition? I can't seem to. I get a "Fsck.ext3: Is a directory while trying to open / " error, followed by the superblock warning/error.....
 
Old 11-05-2003, 12:54 PM   #19
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Check your /etc/fstab file to see if / was mounted as a ext3 file system. It is possible that it was not.

There is some hoop jumping (use of an initial ramdisk during boot) that needs to be done to use a journaled file system on the root partition and some people prefer to keep things simple.
 
Old 11-05-2003, 12:59 PM   #20
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
I checked, and yes, / is mounted as an ext3 filesystem. I also ran a fsck.ext3 on / and it came back clean. I f I was to restore from a tape, should I just restore the entire / partition or can I get away with just restoring /boot or /etc or...?????
 
Old 11-05-2003, 01:03 PM   #21
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
I would try just restoring the /boot, /etc, /sbin, and /usr/sbin directories. This should give you the files needed to complete the reboot without overwriting any data files. If this fails, then you can try a complete restore of the / partition.

Good luck.
 
Old 11-05-2003, 01:47 PM   #22
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
When I try to check the tape, I get a "tar: This does not look like a tar archive".....But it is. To backup, I simply use:

tar zpcf /dev/st0 * --exclude(a few directories...)
 
Old 11-05-2003, 02:26 PM   #23
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
The "z" option in your tar archive command is compressing the the tar file. To extract the files you need to also use the "z" option, e.g.:
tar -xvzpf /dev/st0

Unless forced to by lack of storage capacity, for transparency reasons I prefer not to use compression with tar when creating backups.

FYI, here is an article from IBM developerworks about using a Knoppix bootable CD for Disaster recovery:
http://www-106.ibm.com/developerwork...noppixRecovery
 
Old 11-05-2003, 03:06 PM   #24
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
So, is there a way to "see" all the backed up files on my DLT tape?
 
Old 11-05-2003, 04:39 PM   #25
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Yes, use:
tar -tzf /dev/st0 | less
 
Old 11-06-2003, 12:14 PM   #26
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Hey idaho.....I'm holding off on restoring because I think I found something that could be causing the problem, but I need your help figuring out what to do....
After the boot fails and I go into repair mode, I can do a mount -a and it mounts all my filesystems in fstab just fine except for /var. I can manually mount /var just fine. If I do a umount -a, all filesystems are unmounted just fine EXCEPT for /var. If I do a umount -a, it tells me that /var is not mounted, and then when I do a df -k it shows me that / and /var are mounted (and that's all), but both filesystems have the EXACT SAME stats (space, usage, etc....). Any ideas??? Like I said, /var is on it's own physical disk.
 
Old 11-06-2003, 12:28 PM   #27
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Oh yeah, once I manually mount /var, the stats all change to reflect the proper values.....
 
Old 11-06-2003, 12:52 PM   #28
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Well, mount and umount seem to be working ok now. I've put some echos into the /etc/rc.d/rc.sysinit file to see how far it gets, and it fails right at the Autocheck area.....Does .autofsck and .automount need to be in / ??
 
Old 11-06-2003, 01:00 PM   #29
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Here is the exact location in the rc.sysinit file where my boot up stops with this error:
execvp: No such file or directory

It is in the rc.sysinitfile, and it's one of these two lines, because I have an echo at the start and beginning of these lines and I only get the first ech, then the error.

if [ -f /forcefsck ]; then
fsckoptions=" $fsckoptions"
 
Old 11-06-2003, 03:08 PM   #30
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
With the boot disk, mount "/" and check to see if there are entries in .autofsck. If there are any entries, mv to .oldautofsck, create an empty file.

You can change /etc/fstab to mount /var as ext2; I'm not positive, but you can change all of the entries for the file system to ext2--this way you are blowing off the journalling, but you may boot up that way cleanly. (I'm pretty sure you can just change the entries, because of "pivot_root" on initrd.)


Ok, my rc.sysinit on that line says:

if [ -f /forcefsck ]; then
fsckoptions='cat /fsckoptions' Remember I am running RedHat 9.
fi
if [-f /forcefsck ]; then
fsckoptions=" -f $fsckoptions"
elseif [ -f / .autofsck ]; then
echo $"Your system appears to have shut down uncleanly"
AUTOFSCK_TIMEOUT= 5
[ -f /etc/sysconfig/autofsck] && . /etc/sysconfig/autofsck
if ["$AUTOFSCK_DEF_CHECK= "yes" ]; then
AUTOFSCK_OPT = -f
fi
--------------------------------
More to come, I have to track down where it is getting /fsckoptions, I didn't find that with locate.

Okay, /etc/sysconfig/fsckoptions is an optional file. I read farther down and we have an enviromental variable AUTOFSCK_OPT, which you probably get the value of with "$fsckoptions".

A thing you might check, since you are crusing files from the command-line is /etc/sysconfig/harddisks. To see if the other guy tweaked the system for better performance. The file applies to all harddrives equally, and if one is "sick" it will throw everything off. The "safe" setting is having everything commented out with "#".

I put individual hdparm scripts, custom for each drive, elsewhere.

You have spent more time by far on this than doing a reinstall--you know that don't you?

It may sound goofy, but I am really lost on a hosed system unless I have it in front of me.

If I don't follow an exact procedure, and mentally check everything off as I go along, invariably I thrash it up even worse.

First, I check the logs, to see how long it has been since the hardware has been serviced. If it has been more than six months, I open up the case: I pull out and reseat all of the memory, the PCI adapters, and the jumpers on any WD hard-drives (I have a WD Caviar drive with a weird corrosion problem on the jumper pins--been that way since one year after I got it.); I blow all of dust out; I carefully remove and re-install the cables; and say nice things to the server while I do it (Weird? Yes. Does it seem to help? Yes--I'll swear to it on a stack of Bibles, but I don't know why. Maybe it's just me--nah, I caught another guy doing it.) Bada--bing! Many times that's all it was.

It doesn't rule out hardware, but at least I know it is not a connection anywhere with corrosion or dirt on it.

Then, I go on from there.

P.S. I did check the pins and the jumper in case one was tin and one gold, maybe it is gold-plated tin--I don't know. And yeah, I have some Caviar drives. Don't laugh too hard, okay?

P.S.S I had an el-cheapo cmd680-based ATA/133-UDMA IDE adapter that would work OK for a length of time, then would corrupt a file system. I got good at image restoration (I use Acronis self-booting media, it is 32-bit and fast as all get out. I cheat when I can.). It would happen anywhere from 2 weeks to 2 months apart. Because it wasn't consistent, it was difficult to track down. The operative word is "had".

Last edited by Eqwatz; 11-06-2003 at 04:54 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot failure after bad burn reksav SUSE / openSUSE 1 03-20-2005 04:14 AM
My computer won't boot, and i think its a bad MBR... Arusegawa Linux - General 4 05-14-2004 04:50 AM
Really!!!! Bad!!!! Boot !!!! Problems!!!! only1gameguru Linux - General 9 05-04-2004 06:06 PM
Linux can't boot because of bad fs? hbbtstar Linux - Software 2 09-26-2003 01:59 AM
Linux Boot Floppy Went Bad on W2K-Linux Dual Boot rzward Linux - General 2 01-15-2003 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:22 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