LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-09-2007, 05:38 PM   #16
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114

Quote:
Originally Posted by unSpawn
No, I'm not asking you to explain, it's just that I find it fascinating. I've been in some situations too where I didn't even have rights as root user: all rights gone, recursively. Luckily there's debugfs. (BTW your thread is http://www.linuxquestions.org/questi...d.php?t=435420 but I see no relation to this one, could be me.)
Yeah, that's the one. Thanks.

This problem is like that problem in that OP has a file or directory that seems to be deleted, but "not really".

I do not know that what I propose will identify the problem, but it might. It certainly is something to look at.
 
Old 02-10-2007, 09:58 AM   #17
a.tsilfidis
LQ Newbie
 
Registered: Feb 2007
Location: Patras, Greece
Distribution: Debian, Slackware
Posts: 14

Original Poster
Rep: Reputation: 0
Well here are some news:

After a lot of experiments without actually rebooting the server I decided to reboot and see what's hapenning...
Well it seems that those who guessed a reiser coruption are correct. So now reiserfsck needs to run with rebuild-tree.
I've read into some forums that this is a dangerous command. So now I'm trying to duplicate my whole 250GB Hard disk (by using dd) and then perform the reiserfsck. I don't know how long the dd needs to finish the job (but I think it's gonna take some hours.. ).
Then I'l try to fix the problem with reiserfsck ...

Thanx once more to everyone who replied!
 
Old 02-10-2007, 07:05 PM   #18
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,539
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Shame, really is. Good luck with the recovery.
 
Old 02-11-2007, 12:11 AM   #19
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Just a pointer. I setup a new mail server recently that directs spam to a separate folder for each user. In order to keep these folders small in size I found a basic script that will scan the spam folders and automatically delete any messages over 2 weeks old (you can set the length of time) that way I don't have to go in manually and clean those folders and I don't have to rely on the users to do it either. and if anything gets incorrectly marked as spam they have 2 weeks to go retrieve it. Might save you some admin time to configure you server to handle this automatically as well..

simple scrip
cron job
done..

Obviously it wouldn't address your current issue though..
 
Old 02-11-2007, 02:13 AM   #20
a.tsilfidis
LQ Newbie
 
Registered: Feb 2007
Location: Patras, Greece
Distribution: Debian, Slackware
Posts: 14

Original Poster
Rep: Reputation: 0
Just another question:
I'm running the dd command for 17 hours now.
Is it normal or should I consider stopping it?
As far as I can see both disks are working and propably it's normal (dd (no trunc,noerror bs=4096) for 2X250GB IDE HD 5400rpm) ...
How much time should it theoretically take?
 
Old 02-11-2007, 06:53 PM   #21
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
250 Gigs? You'll be awhile. I don't think 17 hours is out of line. Last time I did something similar I was imaging a damaged 28 Gig laptop HD via Knoppix over to a scratch disk on my linux workstation. Took about 4 hours (imaging across a network).

I wonder if perhaps the "deleted but not really" problem I was talking about might have corrupted your reiserfs system. I use ext3, so my experience wouldn't match yours necessarily, and I never sorted out what portion of the OS was responsible for this "feature". If the file system isn't responsible, but is merely a victim of this effect, then it could be that reiserfs isn't as robust in this regard as ext3.

Dunno.
 
Old 02-13-2007, 07:22 PM   #22
a.tsilfidis
LQ Newbie
 
Registered: Feb 2007
Location: Patras, Greece
Distribution: Debian, Slackware
Posts: 14

Original Poster
Rep: Reputation: 0
Hi again everyone.

I'm gonna post the solution I found in case it would be usefull to someone else.
First of all, the problem that caused my post was due to some bad sectors.
After a reseirfsck --check the message was: run reiserfsck with the "rebuild tree" option.
As you may know the rebuil tree option is not a good idea if you don't have your data backed up and I didn't.
So after some experiments I tried to dd everything. AFter 36 hours and I was obliged to kill it by Ctrl-C cause the server should be up again....(monday morning..)
As you can imagine the duplicated disk was not good at all.

Then another idea came into my mind. I knew I had a spare partition in my server.
So why not migrate by hand everything that is not yet affected to the good partition (and create exactly the same file tree, same permissions etc) and then mount it where the affected partition was?
Well in my case this worked great (remember that my main broken folder was my spam folder....)

After that I formated the broken partition and oops a new disk ready to use.
Now I have cloned the disk and from now on I 'll be less stressed in a situation like this!

THANX (ONCE MORE) FOR YOUR REPLIES!!
 
Old 02-15-2007, 05:15 PM   #23
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,539
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Well done. Congratulations.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to remove relays.visi.com from spam verification Brydon Linux - Networking 1 01-21-2007 11:59 AM
procmail won't remove spam from fetchmail'ed mail alesz Linux - Networking 4 06-08-2006 01:13 PM
yahoo marks Gmail messages as spam arunswarup General 8 11-04-2005 09:45 AM
Whats the solution to remove spam at the server site? Niceman2005 Linux - General 1 09-22-2005 10:30 PM
Identifying incoming spam vs. bounced messages chud67 Linux - General 0 07-26-2004 12:32 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
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