Click to See Complete Forum and Search --> : while on vacation follow up


Harvey
12-10-2000, 02:52 AM
My computer has been up for like 45 days now nonstop no problems at all. It's serving webpages and has ssh running and things like that.What would happen if it were left on and the power went out? I don't have an uninteruptable power supply or anything, if I came back and it has been rebooted what woul/could be screwed up?I've never had that happen before...

------------------
Help me I'm Harvey!

A_Lawn_GNOME
12-10-2000, 02:54 AM
Run sync before leaving. This will write all the cache to disk. If the power goes out, you'll likely lose only web connection data and such, seeing that that is the only hard drive read/write's going on.

EDIT: Oops, ordinary log files might get corrupted too. Seing that Apache probably opens those files too.

[This message has been edited by A_Lawn_GNOME (edited 10 December 2000).]

Harvey
12-10-2000, 03:00 AM
just ran sync. hard drive went. stopped done. no messages.if it did what it should, wouldn't it be a good idea to run 'sync' as a cronjob or something like once a day?

A_Lawn_GNOME
12-10-2000, 03:06 AM
Well you can I guess.

You might not get much of a performance benefit or anything.

Harvey
12-10-2000, 03:20 AM
but if it crashed, I'd be 'okay' huh?what else can be done to save your comp in case the power goes out?What are the recovery steps involved with recovering after lost power? Is it basically just a fsck?

A_Lawn_GNOME
12-10-2000, 03:27 AM
True

About recovery, I think that if someone found something better than fsck it would be all over the place by now.

The only other recovery option I know is for recovering deleted files. It involves dd and such.

posterboy
12-10-2000, 08:00 AM
I am up 24X7 here, and no UPS. The lights DO go out, and when they do, this box makes a valient attempt to recover itself. If e2fsck can "fix" the open files problems, (usually) it comes back to the login prompt. This means the net is connected, Apache is running, SSH is ready, etc. Now, fsck will not do some things without operator agreement. Those are the times when it won't recover on it's own. These are the scary ones. I have never lost the data on a drive, here, but I read about it happening. I just gotta get a UPS. Ray


------------------
ray@raymondjones.net
HTTP://www.raymondjones.net

Harvey
12-10-2000, 01:24 PM
hope the power doesn't go out anytime soon, we have a webserver project for a class runnin on there http://www.linuxnewbie.org/ubb/smile.gif It's a group project and if it got lost before finals are over they would have my head!

A_Lawn_GNOME
12-10-2000, 02:40 PM
Backups, automated or manual are a good thing.

Now if only I had a CDR to put theory into practice.