protecting data integrity of a server which is always on
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
protecting data integrity of a server which is always on
As we know, with all *nix machines, it's bad for the machine to be shutdown without rebooting. However, the reason we use *nix instead of Windows is so that we don't have to constantly be rebooting.
So, is there some command I can put into a cron job that will write whatever needs to be written to the harddrive so that if the power goes out, I don't have as much of a chance of data corruption?
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189
Rep:
So, you're going to put in a cron job to sync, what, every 5 minutes? You're still playing a roulette game with power outage, and you're messing with your machine's speed and efficiency.
Why not just get a UPS? They aren't that expensive. If you're worried about little blips in the power, that would take care of it, and would be nicer to the server in general. If you're concerned about real outages, install the software that talks to the UPS and get whatever cable is required for that UPS. Then your server will shut down properly if there is a real power outage.
Any OS is subject to problems of power outage. Yank the power plug on a Windows box a few times, and it's likely to come up blue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.