LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Production servers HD backup (https://www.linuxquestions.org/questions/linux-server-73/production-servers-hd-backup-791351/)

jordib 02-24-2010 04:39 PM

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!

rweaver 02-24-2010 04:48 PM

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.

nowonmai 02-24-2010 04:51 PM

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.

jordib 02-24-2010 04:55 PM

Yeah, a mirror somewhere else would be great... Thanks.

jordib 02-24-2010 05:02 PM

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".

jordib 02-24-2010 05:39 PM

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)?

chrism01 02-24-2010 06:38 PM

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


All times are GMT -5. The time now is 06:15 PM.