LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-16-2004, 08:49 PM   #1
PocaHontas
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Unhappy "cp" command causes system crash


Hi!

I have a mail server which run Red Hat 7.3 with kernel 2.4.20-promise on an Acer Altos R300 platform. The mail server is running postfix and MailScanner, and not much else.

In the last week our mail server has crashed every day several times, until we realized that the server seems to crash every time a certain user accesses his mailbox. In trying to solve the problem we tried to "cp" the file for his user mailbox to another directory but this also crashes the system. We tried to move other mailboxes and they didn't cause a problem, only that one file does that we know of so far.

When I say crash, even the console is black, absolutely everything is frozen, which forces us to do a hard reboot. On bootup the filesystem check does find orphan i-nodes most of the time, but then passes the check successfully after the fix.

Could someone please help me to fix that file?

Thanks in advance!
Poca Hontas
 
Old 09-17-2004, 01:52 AM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
couple of things to try
mv the file to somewhere, and check it.

but most likely ... hmm ... have you run fsck over the hdd manually (ie the non startup one, but the one that would be run if it can't fix the mistakes)?

Another thing you might try is mount the hdd on another OS (eg a Knoppix or Slackware (or whatever) boot cd) and look at the file that way (that requires server downtime though).

Also you could just nuke the file, if the file is dead it's dead anyway, but of course you want to be sure it is dead before you do something to it ...

Incidentally, what was the last time it was changed ? what does a ls -op or a ls -l give?

Last edited by chakkerz; 09-17-2004 at 01:54 AM.
 
Old 09-17-2004, 02:48 AM   #3
PocaHontas
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks chakkerz!!!

fsck seems to have fixed the problem. Isn't that what runs on startup when it asks for confirmation for a file system check? I was so certain it was running fsck that I didn't bother running it again after bootup...

Thanks again!

Poca Hontas
 
  


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
when using the "last" command in linux what does crash and down mean mcbrihk Linux - Newbie 4 12-05-2012 04:00 AM
About SElinux: enter "setenforce 0",system complains bad command aladin Linux - Software 3 08-21-2005 09:16 PM
where is command "cd" located? or is it a command/ system call? feetyouwell Linux - Software 5 10-01-2004 09:01 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM
'Last' command showing "Crash" for ftp users wizade Linux - Software 2 10-27-2003 01:48 PM


All times are GMT -5. The time now is 10:54 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration