linux disaster recovery solutions

35
Linux Disaster Recovery Solutions IT3 Consultants Gratien D’haese Gratien D’haese March 2008

Upload: gratien-dhaese

Post on 14-Apr-2017

8.270 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Linux Disaster Recovery Solutions

Linux Disaster Recovery Solutions

IT3 ConsultantsGratien D’haeseGratien D’haese

March 2008

Page 2: Linux Disaster Recovery Solutions

Agenda

• What is Linux Disaster Recovery?• Why are backups not enough?• Commercial or Open Source?• Comparing 3 GPL DR on Debian/ia64

Page 3: Linux Disaster Recovery Solutions

Some Definitions

• What is Disaster Recovery?– The process by which a business function is

restored to the normal, steady state after a disaster

• What is Business Continuity– The way that a business function will operate

after a disaster, until such time as the normal, steady state is restored

Page 4: Linux Disaster Recovery Solutions

What is Linux Disaster Recovery

• Like any other UNIX (including HP-UX) Linux is vulnerable for disaster to strike

• The question really is “What shall I do if a disaster strikes?”

• Dependent on:– HW failure (boot disk lost)– Lost everything (fire, water, earthquake, theft)

• The answer: “Act immediately”

Page 5: Linux Disaster Recovery Solutions

Why are backups not enough?

• Backups of data are necessary!• Are not enough in case of losing the OS!• Reinstalling from scratch takes hours• Fine-tuning of configurations takes days• Even months later issues pop up!• It is absolute necessary to foresee an

inventory of HW and SW

Page 6: Linux Disaster Recovery Solutions

Disaster Recovery Plan (DRP)

• DRP addresses need to recover from an emergency with minimum impact to the enterprise– Protects enterprise from major services failure– Minimizes risk to enterprise from delays in

providing services– Guarantees reliability of standby systems by

testing and simulation– Minimizes personnel decision-making

required during disaster recovery

Page 7: Linux Disaster Recovery Solutions

Commercial or Open Source?

• There is no standard solution delivered with Linux as such

• The choice is do we go for a commercial or Open Source solution?

• Try before you buy I would say– It doesn’t always work as promised– Do we have test equipment? Don’t try it on

production without a real DR test first!

Page 8: Linux Disaster Recovery Solutions

Commercial Solutions (1)

• Storix’ Adaptable System Recovery– www.storix.com– AIX/Linux backup – DR – cloning – HW migration (favors TSM

integration)– Pro:

• Supports IA32 and IA64 platforms• good support with regular updates• V6.2 is able to make bootable USB disk incl. backup

– Contra: • is a backup solution with DR capabilities• GUI interface nice, but useless in DR scenarios• Too tight with TSM• Central server with clients model: administration overhead• Without a valid license no recovery?• Too much choices, hard to remember• Backups are useless without Storix’ software

Page 9: Linux Disaster Recovery Solutions

Commercial Solutions (2)

• Acronis’ True Image Echo Server for Linux– www.acronis.com– Backup/restore software with bare-metal DR

possibilities– Pro:

• Disk image restore• Nice GUI based solution• Good support

– Contra:• Only x86 and x86_64 are supported• Is primarily a backup/restore solution• Console mode is a nightmare• Backups are useless without acronis’ software

Page 10: Linux Disaster Recovery Solutions

Commercial Solutions (3)

• Arkeia Options (of Arkeia Network Backup)– www.arkeia.com– DR from a central backup server– Pro:

• Support• GUI based

– Contra:• Only x86 and x86_64 are supported• Is primarily a backup/restore solution• No DR possible without network (central backup server)• DR scenario is Question/Answer game

Page 11: Linux Disaster Recovery Solutions

Commercial Solutions Summary

• If you decide to go for a commercial solution and you are willing– To pay for it– Wait for updates in case of problems– Need commercial support– Good documentation

• Then go for Storix’ solution

Page 12: Linux Disaster Recovery Solutions

Open Source Solutions (1)

• We have 3 types here– DR optional with Open Source backup software

• Similar comments as with the commercial ones• Completely dependent on backup solution

– Image makers (cloning)• Disk to image or partition to image

– True DR Open Source software• No focus on pure backups (incremental)• Main focus on fast DR• No fancy GUIs can be expected (nobody cares about a GUI

if a disaster strikes)

Page 13: Linux Disaster Recovery Solutions

Open Source Solutions (2)

• Bacula, the network backup tool– www.bacula.org– Is a network based backup/restore program

competing with e.g. TSM, DP, a.o.– Pro:

• Open Source• DR CD-ROM creation based on mkCDrec

– Contra:• DR is a option and runs behind with coding/fixing

Page 14: Linux Disaster Recovery Solutions

Open Source Solutions (3)

• Partimage– www.partimage.org– Saves partitions to an image– Pro:

• Open Source• Image creation can be scheduled across network• Good for exact cloning

– Contra:• Need extra soft (SystemRescueCD) to restore image from

scratch• No explicit DR functionality• No flexibility to other HW

Page 15: Linux Disaster Recovery Solutions

Open Source Solutions (3)

• Clonezilla, a better ghost program– clonezilla.sourceforge.net– Saves partitions to an image– Pro:

• Open Source• Based on partimage• Good for exact cloning across network (to 40 at a time) with

clonezilla server– Contra:

• Image creation done via special live CD, or via clonezilla-server and client program

• No explicit DR functionality• Only for experienced users

Page 16: Linux Disaster Recovery Solutions

Open Source Solutions (4)

• Mondorescue– www.mondorescue.org/– Available since 2000– GPL DR supporting Linux (x86, x86_64, ia64)

and FreeBSD (x86)– Support major Linux distributions– Target backup media includes CDR, DVD-

R(w), USB/disks, tape, network– Understands major file systems including

LVM, soft- and hardware RAID

Page 17: Linux Disaster Recovery Solutions

Open Source Solutions (5)

• Mondorescue– Pro:

• Open Source with excellent support base (incl. HP)• CLI and GUI interface• Cloning supported• Uses a fail-safe Linux kernel (mindi)• Pretty good documentation

– Contra:• Command line quite complicated to remember• Relies on different sub-products (mindi, mindi-busybox, afio,

…)• Lacks integration with other backup solutions

Page 18: Linux Disaster Recovery Solutions

Open Source Solutions (6)

• Make CD-ROM Recovery (mkCDrec)– mkcdrec.ota.be– Available since 2000– GPL DR supporting Linux (x86, x86_64, powerpc,

sparc and ia64) – Support major Linux distributions– Target backup media includes CDR, DVD-R(w),

tape/OBDR, USB/disks, network (NFS/CIFS)– Understands major file systems including LVM, soft-

and hardware RAID

Page 19: Linux Disaster Recovery Solutions

Open Source Solutions (7)

• mkCDrec– Pro:

• Open Source with excellent support base• Only CLI with kiss in mind• Cloning support• Uses the active Linux kernel on rescue image• Integrates with 3th party backup sw (DP, TSM,…)

– Contra:• Only 1 main developer• Documentation is minimal, but still enough/clear

Page 20: Linux Disaster Recovery Solutions

Open Source Solutions (8)

• Relax and Recover (rear)– rear.sourceforge.net– Available since 2006– GPL DR supporting Linux (x86, x86_64, ia64) – Support major Linux distributions– Target backup media includes CDR, DVD-

R(w), disk, network (NFS/CIFS), rsync– Understands major file systems including

LVM, soft- and hardware RAID

Page 21: Linux Disaster Recovery Solutions

Open Source Solutions (9)

• Relax and Recover (rear)– Pro:

• Open Source with excellent support base• Only CLI with kiss in mind (LSB compliant)• Extremely modular code• Uses the active Linux kernel on rescue image• Integrates with 3th party backup sw (TSM, DP)

– Contra:• Linux kernel => 2.6.x• Slow development (based on sponsoring)• Lacks good documentation

Page 22: Linux Disaster Recovery Solutions

LSB rules of ReaR• Follows the Linux Standard Base rules• Configuration files are under /etc/rear/• The scripts are stored under /usr/share/rear/• One main script /usr/sbin/rear• rear is build around concepts:

– mkrescue– mkbackup– mkbackuponly– recover– dump

Page 23: Linux Disaster Recovery Solutions

Architecture of ReaRrear dump:Dumping out configuration and system informationSystem definition: ARCH = Linux-i386 OS = GNU/Linux OS_VENDOR = FedoraCore OS_VENDOR_ARCH = FedoraCore/i386 OS_VENDOR_VERSION = FedoraCore/6Configuration tree: Linux-i386.conf : OK GNU/Linux.conf : OK FedoraCore.conf : missing/empty FedoraCore/i386.conf : missing/empty FedoraCore/6.conf : missing/empty site.conf : OK local.conf : OK

/etc/rear

FedoreCore GNU

Page 24: Linux Disaster Recovery Solutions

Architecture of ReaR (cont'd)• Shell scripts are stored under /usr/share/rear• Scripts are kept together according workflows

– mkrescue (only make rescue image)– mkbackup (including make rescue image)– mkbackuponly (excluding make rescue image)– recover (the actual recovery part)

• /etc/rear/recovery is being build dynamically

Page 25: Linux Disaster Recovery Solutions

Workflow backup (or rescue)• mkbackup – mkrescue

– Preparation (building the root file system layout)– Analyse (disaster recovery environment creation)

• Creation of /etc/rear/recovery structure

– Analyse (building the rescue system)– Build (copy all executables that are needed)– Pack (kernel and initial ramdisk)– Backup (optional)– Output (copy to destination, PXE, ISO,...)– Cleanup

Page 26: Linux Disaster Recovery Solutions

Workflow recovery• The same configuration files are read

during the recovery workflow• Recovery Process:

– Verify (integrity and sanity check)– Recreate (file system layout)– Restore (the backups including Operating

System)– Finalize (install boot loader, dump recovery

log into /tmp of the recovered system)

Page 27: Linux Disaster Recovery Solutions

Testing on Debian 4 (IA64)

• We tested mondorescue, mkcdrec and rear on the same fresh installed Linux

• IA64 is an new architecture (Linux based)• X86 and x86_64 are well tested and will

most likely work very well for all of them• On the next slides we give our experience• Only used the sources of the 3 products to

start with…

Page 28: Linux Disaster Recovery Solutions

Test mondorescue

• Prerequisites:– gcc, g++, make, gawk, afio, bzip2, cdrecord,

mkisofs, parted, libnewt-dev, lvm2, buffer• Downloaded from ftp.mondorescue.org/src/

– mondo-doc-2.24.tar.gz– mondo-2.2.5.tar.gz– mindi-busybox-1.7.3.tar.gz– mindi-2.0.0.tar.gz

• Make DR archive: mondoarchive

Page 29: Linux Disaster Recovery Solutions

mondoarchive

Page 30: Linux Disaster Recovery Solutions

Boot mondorescue CD

Page 31: Linux Disaster Recovery Solutions

Test mkCDrec

• Prerequisites:– gcc, make, gawk, bzip2, cdrecord, mkisofs,

parted, lvm2, rsync, iproute, bash• Downloaded from mkcdrec.ota.be

– mkCDrec_v0.9.8.tar.gz• Make DR archive:

– Edit Config.sh (change BOOTARCH, ELILO_DIR)– make

Page 32: Linux Disaster Recovery Solutions

make (of mkcdrec)

Page 33: Linux Disaster Recovery Solutions

New features in v0.9.9

Page 34: Linux Disaster Recovery Solutions

Test ReaR

• Prerequisites:– gawk, bzip2, cdrecord, mkisofs, parted, lvm2,

rsync, iproute, mingetty, alien, lsb, bash• Downloaded from rear.sf.net

– rear-1.6.tar.gz and rear-1.6-1.noarch.rpm– Install as follow:

• alien –I rear-1.6-1.noarch.rpm• Edit /etc/rear/Linux-ia64.conf

change agetty into getty

• Make DR archive: rear mkbackup

Page 35: Linux Disaster Recovery Solutions

www.it3.be

Check us out at: