Mondo Rescue: A GPL disaster recovery and cloning solution



Similar documents
Free, Libre, Open Source Expertise Center (FLOSEC) EMEA. The FOSSology project. Bruno Cornec. Open Source and Linux Technology Consultant

The FOSSology project

How To Write Itil Open Source Solution Stack

A GPL continuous packaging solution

Linux Disaster Recovery best practices with rear

Linux Disaster Recovery best practices with rear

Relax and Recover (rear) Workshop

Linux Disaster Recovery as a Service (with rear)

TECHNICAL HOWTO. Imaging Linux systems with hardware changes. author:

GL-250: Red Hat Linux Systems Administration. Course Outline. Course Length: 5 days

HP One-Button Disaster Recovery (OBDR) Solution for ProLiant Servers

Acronis True Image 9.1 Pro/Light for Linux

The Linux System. o Updating without touching the user's files and configurations.

Bare Metal Recover by Open Source Software

EXPLORING LINUX KERNEL: THE EASY WAY!

A Better Approach to Backup and Bare-Metal Restore: Disk Imaging Technology

Implementing Red Hat Enterprise Linux 6 on HP ProLiant servers

RH033 Red Hat Linux Essentials or equivalent experience with Red Hat Linux..

ENTERPRISE LINUX SYSTEM ADMINISTRATION

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 5 Manage Backup and Recovery

PARALLELS SERVER 4 BARE METAL README

Clonezilla: Clone As Free As You Want

HP One-Button Disaster Recovery Solution for ProLiant Servers

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Acronis Backup & Recovery 10 Server for Linux. Update 5. Installation Guide

BLADESYSTEM FIRMWARE UPDATES BEST PRACTICES

CS197U: A Hands on Introduction to Unix

Computer Virtualization in Practice

Citrix XenServer-6.2 Administration Training

User s Guide. Acronis True Image 9.1 Server for Linux

How To Manage Your Volume On Linux (Evms) On A Windows Box (Amd64) On A Raspberry Powerbook (Amd32) On An Ubuntu Box (Aes) On Linux

Migrate to a virtual environment with Clonezilla

VMware vsphere 5.0 Boot Camp

Other trademarks and Registered trademarks include: LONE-TAR. AIR-BAG. RESCUE-RANGER TAPE-TELL. CRONY. BUTTSAVER. SHELL-LOCK

Acronis True Image 9.1 Server for Linux

Total Backup Recovery Server for Linux. User s Guide

VMware vsphere 5.1 Advanced Administration

LSN 10 Linux Overview

Acronis True Image Server 8.0 for Linux

Linux - CentOS 6 Install Guide

Acronis True Image 2015 REVIEWERS GUIDE

System deployment and bare metal recovery by Clonezilla

CBMR for Linux v6.2.2 User Guide

RedHat (RHEL) System Administration Course Summary

FOG Guide. IPBRICK International. July 17, 2013

Red Hat enterprise virtualization 3.0 feature comparison

HP VMware ESXi 5.0 and Updates Getting Started Guide

Windows Template Creation Guide. How to build your own Windows VM templates for deployment in Cloudturk.

EaseUS Todo Backup PXE Server

RHCSA 7RHCE Red Haf Linux Certification Practice

BrightStor ARCserve Backup for Linux

HP Smart Storage Administrator User Guide

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

Linux System Recovery Guide. Version 7.1

QuickSpecs. HP Integrity Virtual Machines (Integrity VM) Overview. Currently shipping versions:

Barracuda Yosemite Server Backup

Acronis Disk Director 11 Advanced Server. Quick Start Guide

Dell NetVault Bare Metal Recovery User s Guide

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Chapter 8: Installing Linux The Complete Guide To Linux System Administration Modified by M. L. Malone, 11/05

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Linux System Administration and Shell Scripting

VMWARE VSPHERE 5.0 WITH ESXI AND VCENTER

What s so special about Mageia?

Cloning Utility for VersaView Industrial Computers

Open Network Install Environment (ONIE) LinuxCon North America 2015

Chapter Contents. Operating System Activities. Operating System Basics. Operating System Activities. Operating System Activities 25/03/2014

Migrating to ESXi: How To

Getting Started User s Guide

PARALLELS SERVER BARE METAL 5.0 README

Parallels Cloud Server 6.0

Advanced Linux System Administration on Red Hat

Parallels Cloud Server 6.0 Readme

Professional Xen Visualization

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Storage Management for the Oracle Database on Red Hat Enterprise Linux 6: Using ASM With or Without ASMLib

CSE 265: System and Network Administration. CSE 265: System and Network Administration

ATT8231: Creating a Customized USB Thumb Drive for ZCM Imaging Methods for creating a customized bootable USB Thumb Drive

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

Small Systems Solutions is the. Premier Red Hat and Professional. VMware Certified Partner and Reseller. in Saudi Arabia, as well a competent

Red Hat Enterprise Linux and management bundle for HP BladeSystem TM

Virtuozzo 7 Technical Preview - Virtual Machines Getting Started Guide

FUJITSU Software ServerView Suite ServerView Installation Manager

VMware vcenter Converter Standalone User's Guide

Backup Solution Testing on UCS for Small-Medium Range Customers (Disk to Tape) Acronis Advanced Backup Software

Linux Recovery Utility for HP Integrity Servers

Linux Embedded devices with PicoDebian Martin Noha

ICANWK401A Install and manage a server

Symantec NetBackup for Microsoft SharePoint Server Administrator s Guide

SIRIS. Bare Metal Restore Guide

Parallels Cloud Server 6.0

Adaptec ASR-7805/ASR-7805Q/ASR-71605/ASR-71605Q/ASR-71605E/ASR-71685/ASR SAS/SATA RAID Controllers AFM-700 Flash Backup Unit

Dual-boot Windows 10 alongside Windows 8

Backup Software Technology

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

Survey of Filesystems for Embedded Linux. Presented by Gene Sally CELF

Partek Flow Installation Guide

Transcription:

MondoRescue Mondo Rescue: A GPL disaster recovery and cloning solution Bruno Cornec WW Linux Community Lead - Open Source and Linux Profession Bruno Cornec / HP - Document under/sous CC-by-SA-3.0 Date : 07/09/2015 Page 1

Introducing Myself Software engineering and Unices since 1988 Mostly Configuration Management Systems (CMS), Build systems, quality tools, on multiple commercial Unix systems Discovered Open Source & Linux (OSL) & made first contributions in 1993 Full time on OSL since 1995, first as HP reseller then @HP Currently: OSL Technology Strategist, EMEA EG Innovation Solution Center aka HP/Intel Solution Center, Grenoble HP OSL Advocate and Converged Infrastructure Ambassador WW Linux Community Lead for the HP Open Source Profession Solutions Linux Conference and AFUL board member. Conferences at WW level at LinuxCon, Linux.conf.au MondoRescue, Project-Builder.org, UUWL and PUSK Project Lead LinuxCOE, mrepo, tellico, rinse, fossology, collectl contributor FOSSBazaar/SPDX and OSL Governance enthusiast Mandriva, Mageia, Fedora packager And also: Amateur singer (Alto / Tenor) and recorder player since 1976 and Choir director since 1987 CD collector since 1981 (5000+ and counting) Concert attendance since 1976 Amateur photograph since 1976

Definitions Disaster Recovery Plan (DRP): Identifying, inventorying and classifying the critical systems and data in the enterprise (in relationship with their value for the enterprise) and consequent procedures, processes and systems to put in place to recover from a disaster. Balance between DRP implementation costs and downtime costs, or loss of data/services costs. Much more paper based than computer based. However tools are also needed as part of the plan. Also DR doesn't substitute itself to backups or archives. Today, among the systems to deal with, you'll have Linux systems. Points to consider: Recovery of solutions: systems, network, storage, connectivity, HA configurations and coherency between those elements. Recovery of system configuration (BIOS, Stripe size, Block size, FS layout and options, Boot loader, OS data, users and application data,...) and coherency between those elements.

Disaster Recovery Frost & Sullivan 2008 (ISC)2 Global information security Workforce Study https://www.isc2.org/download/2008_global_wf_study.pdf

Disaster Recovery on Linux MondoRescue (of course ;-) (http://mondorescue.org). Goal of the current presentation. CloneZilla (http://clonezilla.org/) Offline with partclone & multicast. No file restoration, nor multiple media support. mkcdrec (http://mkcdrec.ota.be/) Online with tar, sfdisk and busybox. Supports OBDR. Stopped with 1.0. No ext4 ReaR (http://rear.sourceforge.net/) Successor of mkcdrec, less features as of now. Younger project. Online with sfdisk. Some other non FLOSS solutions are also available.

A GPL Disaster Recovery Solution Distribution neutral (Mandriva, Mageia, RedHat, Fedora, RHEL, OpenSuSE, SLES, Debian, Ubuntu, Gentoo, Slackware,...) x86, x86_64, ia64 Supports most FS supported by the kernel (ext2/3/4, reiserfs, XFS, BTRFS, NTFS, [V]FAT, NFS, SSHFS, SMBFS, including dual boot systems) on any disk supported (IDE, SCSI, FC, HW Raid, SW Raid, LVM v1/2, DM, Multipath) and boot loader (lilo/grub/grub2/elilo) Supports various backup media: CD-R[W], DVD[-+]R[W], Tapes, USB disks/keys, NFS, SSHFS, SMBFS, local FS (ISO9660 files) Works live (on-line backup), supports SELinux Full or differential backups supported CLI + curses based UI System DR in minutes

Archiving with mondoarchive Uses either bzip2, gzip, lzo or lzma for data compression Uses afio for reliable backup (supports compression on a file basis, ASCII headers, cpio compatible) or star Generates bootable ISO images or burns media/creates bootable tapes or USB disks/keys, using running kernel + modules (supports multiple images) Saves disk structure and content. ProLiant HW information Runs on a live system /usr/sbin/mondoarchive -O -d /bkp -s 700M -p m1 -N -T /tmp -E "/usr/doc /usr/src" -n s1.hpintelco.org:/nfs Uses mindi to generate boot content Runs interactively or with CLI parameters

mindi Mindi is a separate tool called by mondoarchive Mindi provides: a standalone boot environment (mini-distribution) based on the running distribution tools the kernel and modules used by the running distribution or provided (dependencies are automatically managed) a custom init script. A boot loader depending on the media created (syslinux, isolinux, pxelinux) This mini-distribution is used to initiate from bare-metal the machine to restore Uses a custom busybox version. Can be used as a rescue disk alone (customization through /etc/mindi/deplist.txt) Mindi creates the FS/LVM info used by mondorestore Mindi also stores UUID and LABEL information if needed. Mindi's evolution is pbmkbm part of project-builder.org

Restoring with mondorestore From bootable physical media (CDs, tapes & OBDR, USB devices), images on disks, network (PXE), virtual media (HP ProLiant specific) Interactive restore from image files under the OS. Warning: MondoRescue is not a backup tool, but a DR one. HP ProLiant hardware configuration restoration support Various modes: Automatic, Interactive, Expert, Compare Ability to change FS type, layout, SW Raid, even HW configuration. DR restore in minutes. But test it!

Cloning support aka P2P Requires knowledge of master and target platforms (potential different drivers) All drivers should be part of the mindi image created (either used on master or forced in mindi) Use -H if master and target are identical hardware platforms In other cases, all functions are also available (partition resizing, filesystem type change...) + hardware adaptation Improvement for mindi to include all drivers TBC P2V is also available and documented

Installation From mondo sources: tar xvfz mondo-x.y.z.tar.gz ; cd mondo-x.y.z./bootstrap ;./configure ; make VERSION=x.y.z ; make install From mindi sources: tar xvfz mindi-x.y.z.tar.gz ; cd mindi-x.y.z./install.sh From mindi-busybox sources: tar xvfz mindi-busybox-x.y.z.tar.gz ; cd mindi-busybox-x.y.z make oldconfig ; make busybox ; make CONFIG_PREFIX=/usr/local/lib/mindi/rootfs install Using distribution packages with yum/apt/urpmi repositories (also provides afio/buffer/perl modules) wget ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo mv mondorescue.repo /etc/yum.repos.d ; yum install mondo or wget ftp://ftp.mondorescue.org/debian/6.0/mondorescue.sources.list mv mondorescue.sources.list /etc/apt/sources.list.d ; apt-get install mondo

PXE Support Using PXE boot ROM, ability to boot from a MondoRescue image content (kernel + initrd) without physical media and use remote ISO content through a network FS. Ability to boot from a generic deployment server based on pxelinux and hosting MondoRescue ISO images. label mondo kernel kernel/vmlinuz mondo append root=/dev/ram rw pxe initrd=initrd/initrd mondo.img ramdisk_size=32768 proto=nfs prefix=m1 load_ramdisk=1 prompt_ramdisk=0 ipconf=eth1:192.168.0.1:255.255.255.0: 192.168.0.255:192.168.0.254 netfsmount=192.168.0.10:/mondo ping=5

HP ProLiant Features With the ilo and Virtual Media function, ability to boot from a machine hosting MondoRescue ISO images through a Web interface without physical media. HP ProLiant servers are the most tested platform for obvious reasons ;-) Smart Array support (cciss & hpsa) ProLiant NIC support (bnx2, bnx2x, be2net, e1000e, e1000...) Hardware configuration info backup & recovery possible in a cloning approach (using hpacuscripting, hponcfg, conrep from SSSTK) Warning: can be dangerous so not automated. HP REST API to be added in an upcoming version UEFI to be added in version 3.2.1

Project Activities Project created in 2000 (Red Hat Linux 6.2) by Hugo Rabson My first patches (-H) in 2000. HP ProLiant support in 2004, ia64 Linux between 2001-2007, PXE in 2005, USB keys and OBDR in 2008, ext4 in 2009, multipath in 2010, SSHFS in 2011, systemd in 2014. Project Maintainer since Oct. 2005 with 2.04. 30 versions published with 3.2.0 New infrastructure (SVN repository, Web site, trac) New Build process (Generated pkgs => lead to project-builder.org) => 120+ distribution tuples Documentation with Mondorescue HOWTO and wiki Mailing List activity Upcoming 3.0.5 should be the last bug fix version for 3.0 branch with systemd support New stable branch is now with 3.2.x branch

MondoRescue tips and tricks The scratch directory should have a media size free at least When looking for support, join your log files (/var/log/mondoarchive.log and /var/log/mondorestore.log) For older distributions, you can stay for now on 3.0.x branch. Use 3.2.x for newest one based on systemd (Fedora 17+, RHEL7, SLES 12, Ubuntu 14+) Use the specific docs: The README files (for pxe and boot parameter options) http://trac.mondorescue.org/browser/branches/3.0/mindi/readme.bootparam http://trac.mondorescue.org/browser/branches/3.0/mindi/readme.pxe The man pages http://www.mondorescue.org/docs/mondoarchive.8.html http://www.mondorescue.org/docs/mindi.8.html http://www.mondorescue.org/docs/mondorestore.8.html The wiki http://trac.mondorescue.org/wiki/faq

What's new since last presentation @RMLL 2.2.9.5-7 branch with improved Xen support, driver support (hpsa, virtio, xhci,/lib/firmware), dynamic exclude path, P2V doc, Arch Linux support, better logging 3.0.0-4 branch with improved LVM support, OBDR tape support improved, kernel 3.x support, provides hwaddr param, SSHFS support, mdadm metadata & UUID support, rpcbind support, btrfs support, GRUB2 support, keyboard issues solved, swaplabel support, star support including sparse file, fix serial port support, -M & -F options added to mondoarchive, improved scratchdir & tmpdir management, resote boot menu improved 3.2.x branch with huge rewrite around dynamic memory management, new perl package providing functions and scripts (links, ldd, network conf, parted2fdisk ), support for systemd based distros (RHEL7, SLES12, Ubuntu 14+, Fedora 17+, Mageia4+, Debian 8+), XFS labels, lvmetad support, automatic module dependency support, lzma compression support added 3.2.1 fix big file support broken in 3.2.0 and adds UEFI full support

And @HP? Used by various HP organizations (HP/Intel Solution Center, CMS, APJ ESS Competency Lab, AMA ASC TSG, ES ITO, TS UK) Consultancy HP support contract part #: HA158AC MNUSWRCZ (Since Sept. 2009) Help Desk L0: Call login Local CCR L1: First investigation BSS CC Linux VCC MondoRescue L2: In deep troubleshooting L3: Bug fixing - Evolution

References Used by many entities, from individuals up to Top500 2 Large NEPs for solution stacks deployment at their own customer sites on tapes and DVD. Large Service Provider for an hospitality services stack across 2000+ hotels in EMEA on DVD. Large Plane manufacturer for Disaster Recovery of their Linux systems on ISO images) 2 EMEA Banks for their Linux Disaster Recovery solution on ISO and DVD Digital Signage company for the deployment of their solution on PC with a USB key. World leading food processing and packaging solutions company for Disaster Recovery of their Linux Cluster. And the numerous one I'm even not aware of!!

Learn MondoRescue Start with the Lab (27 pages) Use man (mondoarchive, mondorestore + mindi man pages) Use the mailing-list mondo-devel at http://lists.sourceforge.net/mailman/listinfo/mondo-d evel Look at the docs, HOWTOs: http://www.mondorescue.org/docs.shtml And the wiki: http://trac.mondorescue.org Download and start using it from ftp://ftp.mondorescue.org

Web Resources MondoRescue main site http://www.mondorescue.org Trac / Wiki http://trac.mondorescue.org Busybox http://www.busybox.net Project-Builder http://trac.project-builder.org Open Source at HP http://opensource.hp.com HP ProLiant & Linux http://www.hp.com/go/proliantlinux The evolution of FLOSS and the Internet are tightly coupled

Contact - Thanks Bruno.Cornec@hp.com (Open Source and Linux Technology Architect at the HP/Intel Solution Center) http://www.hp.com/linux http://opensource.hp.com Thanks goes to: Linus Torvalds, Richard Stallman, Eric Raymond, Nat Makarevitch, René Cougnenc, Eric Dumas, Rémy Card, Hugo Rabson, Bdale Garbee, Bryan Gartner, Craig Lamparter, Lee Mayes, Gallig Renaud, Andree Leidenfrost, Lester Wade, Phil Robb, Bob Gobeille, Martin Michlmayr among others, for their work and devotion to the Open Source Software cause... and my family for their patience :-) Changes are never easy to make. There is comfort and safety in tradition, but change must come, no matter how painful or expensive it may be. Bill Hewlett