LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-24-2010, 04:39 PM   #1
jordib
Member
 
Registered: Apr 2008
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Production servers HD backup


Hello,

I administer several web hosting (combined with mail relays and other services) production servers under Debian GNU/Linux. I began giving these public services two years ago via three boxes: the first is a gateway which controls traffic via iptables (it's attached to a DSL modem) between a public subnet (the DMZ) and a local network which connects several workstations. In the DMZ subnet I maintain two Pentium-III era boxes, they've grown in services since I set them up. Actually, I think I should buy new ones, but, you know, I want to save money and lenghten its life.

So, they've grown in data hosted, but I've never implemented a resilent backup system. I've set up some rsync tasks sheduled via cron jobs to copy the entire UNIX file system in each of the DMZ boxes, but I'd like to be prepared before an unexpected "real" crash of some HDD, I mean, some problem that renders a disk unusable.

AFAIK, sysadmins sync entire HD backups which are capable of recovering a system via swapping the unusable unit with the backup unit. Maybe the best fashion is to implement a RAID mirroring the unit, I'm I right? So, keeping my systems as they are, I mean, capable of using 4 parallel ATA units, what would you do? Use dump, rsync or some other way to have an operational second unit with an exact copy in a bootable second drive, in order to quickly swap it if the main unit fails?

Comes to my mind to partition a second unit (so making it bootable) and backup daily via rsync only those parts of the unix file system hierarchy which are necessary to boot a system properly. What do you think about this workaround?

I'll appreciate your comments, cause I don't really know what is the best way to achieve this... Thank you!
 
Old 02-24-2010, 04:48 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
You basically want the system setup with mirroring and striping (if performance is a concern) or at least mirroring alone. After that nightly / hourly / whatever rsyncs of the data to a remote server should be sufficient protection to ensure your system is recoverable from any kind of crash it may experience.
 
Old 02-24-2010, 04:51 PM   #3
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
How much data are we talking about?
RAID would definitely be a good place to start, but RAID is no substitute for backups.
You could dd the system partitions to another drive and just keep it to one side, then implement some sort of incremental backup scheme to Amazon S3 or some such.
 
Old 02-24-2010, 04:55 PM   #4
jordib
Member
 
Registered: Apr 2008
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Yeah, a mirror somewhere else would be great... Thanks.
 
Old 02-24-2010, 05:02 PM   #5
jordib
Member
 
Registered: Apr 2008
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
How much data are we talking about?
Nearly 60GB.

Thanks nowonmai. I'll search documentation and decide wether to implement a RAID1 or not and set up some incremental backup apart of the "cloned disk".

Last edited by jordib; 02-24-2010 at 05:31 PM.
 
Old 02-24-2010, 05:39 PM   #6
jordib
Member
 
Registered: Apr 2008
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Apart of the necessary incremental copy, what utility/resource should I use under debian to implement mirroring (RAID1)? Must the HDD's be identical (capacity, etc)?
 
Old 02-24-2010, 06:38 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
If you use RAID 1, the usable limit is the size of the smallest disk.
http://en.wikipedia.org/wiki/RAID

You might want to read up on mdadm if the OS is reasonably current.
http://linux.die.net/man/8/mdadm
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Identical Servers : Live Backup vaibhavs Linux - Software 22 06-04-2009 07:24 AM
Do you use NTOP for troubleshooting on production servers? Ujjain Linux - Software 3 03-29-2009 11:01 AM
What should i backup on these servers? Rauldinho Linux - Server 7 09-03-2008 06:48 AM
Do Fedora 4 production web servers need new distro or upgrade? benr77 Linux - Distributions 8 05-20-2007 07:20 AM
Synchronizing file systems between production and backup ftp server zazoo24601 Linux - General 2 04-21-2006 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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