38
Cristie Bare Machine Recovery Cristie Softw are Ltd. New Mill Chestnut Lane Stroud GL5 3EH United Kingdom Tel:+44(0)1453 847000 Fax:+44(0)1453 847001 [email protected] Cristie Data Products GmbH Nordring 53-55 63843 Niedernberg Germany Tel: +49 (0) 60 28/97 95-0 Fax: +49 (0) 60 28/97 95 7-99 [email protected] Cristie Nordic AB Gamla Värmdövägen 4 SE-131 37 Nacka Sw eden Tel:+46(0)8 718 43 30 Fax:+46(0)8 718 53 40 [email protected] January 2012 Quick Start Guide For AIX Version 6.3.4

CBMR_V6_

Embed Size (px)

DESCRIPTION

CBMR_V6

Citation preview

  • Cristie Bare Machine Recovery

    Cristie Softw are Ltd.New MillChestnut LaneStroud GL5 3EHUnited KingdomTel:+44(0)1453 847000Fax:+44(0)1453 [email protected]

    Cristie Data Products GmbHNordring 53-55

    63843 NiedernbergGermanyTel: +49 (0) 60 28/97 95-0Fax: +49 (0) 60 28/97 95 [email protected]

    Cristie Nordic ABGamla Vrmdvgen 4

    SE-131 37 NackaSw edenTel:+46(0)8 718 43 30Fax:+46(0)8 718 53 [email protected]

    January 2012

    Quick Start GuideFor AIX

    Version 6.3.4

  • Copyright 2003-2012 Cristie Software Ltd.All rights reserved.

    The software contains proprietary information of Cristie Software Ltd.; it is provided under a license agreementcontaining restrictions on use and disclosure and is also protected by copyright law. Reverse engineering of thesoftware is prohibited.

    Due to continued product development this information may change without notice. The information and intellectualproperty contained herein is confidential between Cristie Software Ltd. and the client and remains the exclusiveproperty of Cristie Software Ltd. If you find any problems in the documentation, please report them to us in writing.Cristie Software Ltd. does not warrant that this document is error-free.

    No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by anymeans, electronic, mechanical, photocopying, recording or otherwise without the prior written permission of CristieSoftware Ltd.

    IBM Tivoli Storage Manager (TSM), AIX and TIVOLI are trademarks of the IBM Corporation.

    NetWorker is a trademark of the EMC Corporation.

    Cristie Management Console (CMC), PC-BaX, UBax, Cristie Storage Manager (CSM), SDB, NBMR (Bare MachineRecovery for NetWorker), TBMR (Bare Machine Recovery for TSM) and CBMR (Cristie Bare Machine Recovery) aretrademarks of Cristie Software Ltd.

    Cristie Software LtdNew Mill

    Chestnut LaneStroud

    GL5 3EHUK

    Tel: +44 (0) 1453 847000Email: [email protected]

    Website: http://www.cristie.com

  • 3Contents

    Copyright 2003-2012 Cristie Software Ltd.

    Contents

    1 About CBMR for AIX 4

    2 System Requirements 5

    3 CBMR for AIX Software 6

    4 Installation 7................................................................................................................................... 74.1 Install via Smit/Smitty ................................................................................................................................... 74.2 Install via RPM ................................................................................................................................... 84.3 Install from archive ................................................................................................................................... 84.4 Licence ................................................................................................................................... 84.5 Uninstall

    5 Creating a Recovery Image 9................................................................................................................................... 105.1 PXE Booting

    6 Performing a DR backup 12................................................................................................................................... 126.1 Recording System Information ................................................................................................................................... 136.2 Configure the Backup Location

    ......................................................................................................................................................... 14Configuring a Backup Location using the Graphical User Interface 6.2.1

    ......................................................................................................................................................... 19Configuring a Backup Location using the Command Line Interface 6.2.2................................................................................................................................... 196.3 Select the Directories to be backed up

    ......................................................................................................................................................... 20Viewing the current backup selection 6.3.1

    ......................................................................................................................................................... 21Editing the current backup selection 6.3.2

    ......................................................................................................................................................... 22Saving the current backup selection 6.3.3

    ......................................................................................................................................................... 22Performing the backup 6.3.4

    7 Performing a Disaster Recovery 24................................................................................................................................... 247.1 Starting the Recovery Environment

    ......................................................................................................................................................... 26Automatic Recovery Wizard 7.1.1

    ......................................................................................................................................................... 31Manual Recovery 7.1.2

    ......................................................................................................................................................... 35Post Recovery Changes 7.1.3

    ......................................................................................................................................................... 35Trouble-shooting 7.1.4

    ......................................................................................................................................................... 36Copying Log Files 7.1.5

    8 Cristie Technical Support 38

  • 4 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    1 About CBMR for AIXCBMR for AIX provides a file-based backup and disaster recovery (DR) system for AIX 5.1 and above.

    The process of backing up and recovering an AIX machine comprises three phases:

    1. Create a bootable recovery environment from the running machine

    2. Perform the Disaster Recovery (DR) backup

    3. Perform the recovery

    All of the above actions may be performed using the Graphical User Interface run from the command cbmr. Documentation describing command line tools with the same functionality is also included,allowing you to easily create scheduled and scripted backups.

    Use the command man cbmr to get an overview of CBMR functionality and the command line toolsavailable.

    Note: CBMR must be installed and run by a user that has root access

  • 5System Requirements

    Copyright 2003-2012 Cristie Software Ltd.

    2 System RequirementsCBMR for AIX requires the following minimum hardware requirements:

    Disk Space 16MB

    Memory 256MB

    TSM Servers 5.5 and above

    TSM Clients 5.5.4.x and above

    CBMR for AIX is suitable for all versions of AIX after 5.1. However, ACLs (Access Control Lists) areonly supported in version 6.1 and above.

    Open Source Prerequisites:

    ncurses >= 5.2

    libxml2 >= 2.6.21

    These are included with the installation and may also be downloaded from the IBM AIX Toolbox forLinux website:http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html

  • 6 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    3 CBMR for AIX SoftwareInstallation files can be downloaded by completing the registration form on the Cristie website:

    http://www.cristie.com/support/downloads

    The installation is available in iso and tar.gz archive formats.

  • 7Installation

    Copyright 2003-2012 Cristie Software Ltd.

    4 InstallationCBMR can be installed via the AIX System Management Interface - smit or smitty - directly viaRPM or from the archive. It is recommended that all installation files are installed using the samemethod.

    The installation of CBMR requires the RPM package management tool: fileset rpm.rte3.0.5.20. This tool is installed by default on AIX 5.1 ML9, 5.2 ML10, 5.3 ML6 and 6.1 ML1.

    The version of this tool can be checked using the command 'lslpp -1 rpm.rte'. If the fileset isat an earlier maintenance level, then the rpm.rte file can be downloaded individually from: http://www-933.ibm.com/support/fixcentral/

    4.1 Install via Smit/SmittyCBMR can be installed via smit or smitty by selecting the fastpath 'install', for example by running:

    > smitty install

    The installation directory should be the '/bffs' directory on the CD or in the archive.

    The prerequisites listed on the preceeding page are contained in the directory alongside CBMR andwill be installed automatically.

    Note: the smitty installation delegates to RPM. Therefore, if some packages have already beeninstalled via RPM then the latest version available will be selected.

    4.2 Install via RPMCBMR can also be installed using the RPM package management tool. The RPM packages arecontained in the '/rpms' directory on the installation CD. As with the smitty installation, the open-source prerequisites are contained in this directory alongside CBMR.

    The versions of prerequisites may be checked using the command:

    >rpm -q ncurses libxml2

    To install the CBMR rpm package type:

    >rpm -Uvh cbmr-release-6.3.3-aix.5.1.ppc.rpm

    Ensure that you are installing the version with the closest match to the installed operating system.

    If installation fails because a dependency is missing, then running updtvpkg may resolve the issueby rebuilding the package database. If it does not, and all dependencies have been installed, thensupplying the --nodeps argument to rpm will override these checks.

    Note: updtvpkg will only affect packages installed later, it should not affect the currentrunning state of the machine

  • 8 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    4.3 Install from archiveAlternatively, CBMR may be installed without the aid of a package manager by opening the archive cbmr-release -6.3.3.tar.gz and running the install script as root:

    > gunzip cbmr-release-6.3.3.aix5.1.tar.gz> tar xf cbmr-release-6.3.3.aix5.1.tar> sh ./cbmr-6.3.3/install.sh

    At this point the temporary directory 'cbmr-6.3.3' may be removed.

    Note: the same open source prerequisites are required as for the RPM and smitty installations

    4.4 LicenceFollowing the instructions in this section will result in a standard 30-day trial licence being installed. Cristie provide a 30 day trial licence so that the product can be fully evaluated before purchase.

    If you have purchased a full licence, you will have been sent a 12 character licence key(xxxxxxxxxxxx). This may be applied with the command:

    > cbmrcfg --licence xxxxxxxxxxxx

    4.5 UninstallTo uninstall if installed via smit or smitty, run 'smit remove' or 'smitty remove', then selectthe relevant packages for removal.

    To uninstall the RPM package, enter:> rpm -e cbmr-release

    To uninstall the package via the installation archive, enter:> sh ./cbmr-6.3.3/install.sh -u

    Note: uninstalling will NOT remove the cbmr-6.3.3 directory

  • 9Creating a Recovery Image

    Copyright 2003-2012 Cristie Software Ltd.

    5 Creating a Recovery ImageAs mentioned previously, all functionality can be accessed through the CBMR Graphical UserInterface. After entering the command 'cbmr', the CBMR Console menu will be presented:

    The first step is to create a recovery CD or PXE/NIM bootable image. This is an iso image that caneither be burned to CD to boot the recovery environment or be extracted to create a network bootenvironment.

    The temporary directory is used in the structure of the CD, which will consequently be converted to afile. The GUI will create an iso file which may be burned to a CD using an iso burning tool such as burn_cd:> burn_cd -d /dev/cd0 recovery_cd.iso

    Note: the output log for CD creation is saved in '/var/log/cristie/mkdrcd.log'

  • 10 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    5.1 PXE BootingAlternatively, the CD can be extracted to create a PXE bootable environment. If the CD is extractedto the directory '/recoverycd' then the PXE environment can be setup as follows:

    Copy the file 'ppc/chrp/bootfile.exe' to the TFTP sever directory

    Export '/recoverycd' over NFS

    Create a DHCP/BOOTP entry for the machine with option 151 specifying the NFS server IPaddress and 152 specifying the NFS server path

    This is an example using ISC dhcpd under RedHat linux (/etc/dhcp/dhcp.conf):

    > option aix-server code 151 = ip-address;> option aix-path code 152 = text;>> host aix {> filename "/bootfile.exe";> option aix-server 192.168.1.100;> option aix-path "/recoverycd";> }

    On an AIX NIM Master, the DHCP configuration itself ('/etc/dhcpsd.cnf') contains detailedinstructions to set up a host in the manner detailed above.

    This is an example section of /etc/dhcpsd.cnf used to enable NIM booting of the recoveryenvironment for the machine with MAC address '01:02:03:04:05:06:07:08':

    > supportBOOTP yes>> client 6 01:02:03:04:05:06:07:08 192.168.1.199 {> option sa 192.168.1.100> option hd /recoverycd/> option bf bootfile.exe> }

    The attributes for the NFS server address and directory are set in a similar manner.

    Alternatively, the NFS server and directory may be set statically for the image by entering the fulladdress (ie. 10.10.14.90:/mnt/SPOT) or just a path (ie. /mnt/SPOT) into the NFS Server of thedialogue:

  • 11Creating a Recovery Image

    Copyright 2003-2012 Cristie Software Ltd.

    Note: if this option is used, then the recovery environment will attempt to boot from the NFSserver and directory given. If only a path is supplied then the recovery environment willattempt to use the boot server (either BOOTP or DHCP) and the path supplied. See theauxilliary document "AIXBootingProcedures.pdf" for a more complete explanation"

  • 12 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    6 Performing a DR backupPerforming a DR backup is split into four stages:

    1. Record system information

    2. Configure the backup location

    3. Select the directories to be backed up

    4. Perform the backup

    The system information is recorded to allow the recovery environment to recreate the original systemenvironment. This will include drive and file-system information, as well as information aboutessential packages for rebuilding the system (for example, to provide file encryption at recoverytime).

    6.1 Recording System InformationThe system information must be recorded and stored so that the system can be rebuilt at recoverytime. This is performed using the cbmrcfg tool, available through the System Configuration optionof the Graphical User Interface.

    Selecting System Configuration from the main menu will open a sub-menu containing options forcreating the configuration:

    The default location of the configuration information is /CBMRCFG/disrec.xml. However, the SetLocation option will allow you to select a different location if desired.

  • 13Performing a DR backup

    Copyright 2003-2012 Cristie Software Ltd.

    Note: the location chosen MUST be included in the file paths specified in dsm.sys or dsm.opt.If you change the location of the configuration information, ensure this is included in thebackup script

    When running the configuration tool information, the current operations will be displayed:

    Once this operation is complete, the log fine can be found in /var/log/cristie/cbmrcfg.log.This may also be viewed using the Log Files submenu.

    6.2 Configure the Backup LocationA Backup Location is a definition of the entity to which you will backup data. CBMR can backup totape drives, tape libraries, files, TSM nodes and cascaded locations.

    All backup functionality may be accessed via the Backup option from the main menu. This provides

  • 14 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    functionality to change the location of the backup (ie. file, tape, TSM server), change the selection offile to backup and perform the backup. However, it is also possible to create definitions using a texteditor.

    Note: a backup location MUST be configured before starting a DR backup

    6.2.1 Configuring a Backup Location using the Graphical User InterfaceThe Graphical User Interface, GUBAX, can be accessed either by selecting Set BackupLocation from the CBMR tool or by running gubax at the command prompt.

    The GUBAX menu provides the ability to create, modify and delete file, tape and TSM backuplocations.

    Tape DrivesIf you are using a tape drive, this can be automatically detected by selecting the Scan New BackupLocation option from the device menu.

  • 15Performing a DR backup

    Copyright 2003-2012 Cristie Software Ltd.

    Any new devices found will be listed and will then be available to choose as the default device. In thefollowing example, the new Backup Location is named Tape0:

    Other types of device should be configured manually by selecting Create New Backup Locationfrom the device menu.

    The menu presented allows creation of File, TSM, Tape Library and cascaded devices.

    File Backup LocationsA File backup Location is a file that is formatted like a tape. If you wish to backup to a file, usuallylocated on a network share, choose File Backup Location from the Backup Location Type menu:

  • 16 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    The Path,which is case sensitive, specifies the full path to the file.

    It is recommended that you leave both SizeInMB and Remote fields blank or set to zero. SizeInMBsets a maximum size for the file - by leaving this blank it will allow it to expand until the backup iscomplete or there is no more space on the disk. The Remote field is used to indicate that CristieStorage Manager is being used.

    TSM Backup LocationA TSM node is a port to a network storage system. Currently, CBMR treats a node as though itwere a tape. This means that there are some restrictions to the way in which CBMR can beconfigured and used with TSM.

    The node must be reserved for sole use by CBMR and may not be shared with any other process -particularly the BA Client. The node must also be set up with the following options:

  • 17Performing a DR backup

    Copyright 2003-2012 Cristie Software Ltd.

    Backup Delete Allowed = Yes

    Archive Delete Allowed = Yes

    Password Expires = 0

    If you wish to backup to a node on your TSM server, choose TSM Backup Location from theBackup Location Type menu. Complete the form presented with values that apply to yourenvironment. The following form is an example only:

    There is no validity check of the parameters at this time - they will be validated when you attempt thefirst backup. The Filespace will also be created by the first backup if it does not already exist.

    For a TSM Backup Location, you also need to provide connection information for the TSM Server.This may be performed by selecting Set TSM Server from the menu.

  • 18 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    The data is specified in the dsm.sys file. If you have already created the file, you may skip thisstep. If you do use this function, it will overwrite any existing dsm.sys file. The file is created in thedirectory configured by the DSMI_DIR environment variable, usually /usr/tivoli/tsm/client/api/bin/.

    The displayed form allows you to specify the basic parameters for connecting to the TSM server overTCP/IP. Ensure that you use the same server name as you used on the TSM Backup Location form.

    Library Backup LocationA locally attached tape library can be used as a storage device. A CBMR library is defined as a driveand a number of tapes.

    Cascaded Backup LocationA Cascaded Backup Location is a number of separate Backup Locations that are linked together sothat when the first fills, it continues to the second, and so on.

    Typically, you could use this on tape drives or virtual tape drives. In order to create a CascadedBackup Location, you need first to create individual backup locations that you can then cascade.

    Note: this type of backup location is not particularly useful in a CBMR context where speed ofrecovery is important

    Default Backup LocationOnce you have configured the backup location, you should set it as the default. Do this from the SetDefault Backup Location option on the Backup Locations menu. The device name marked with anasterisk (*) is the current default device.

    Select the device that you want to be the Default and press Enter. You may check that the selectionhas taken effect by selecting the Set Default Backup Location menu again.

  • 19Performing a DR backup

    Copyright 2003-2012 Cristie Software Ltd.

    6.2.2 Configuring a Backup Location using the Command Line InterfaceIt is unusual to define storage devices without the GUI. However,provided that you do not need toenter an encrypted password, you may use a text editor to create a devices.ini file.

    Only TSM and File Backup Locations can be handled in this way. The devices.ini file which islocated in /etc/cristie could be amended or created with entries such as the following:

    > [CBMR]> Class = 4> Path = /mnt/backups/drbackup.vtd> SizeInMB = 0> Remote = 0

    If you wish to know more about these file formats, the UBAX main page - type man ubax - hasmore detailed information.

    However, it is not recommended that this be done with an editor. Backup Locations are best definedusing the GUI.

    6.3 Select the Directories to be backed upThe selection of directories to be backed up is called a 'Backup Selection'. Each backup selection isstored in a backup script in the folder /etc/cristie/scripts/, with the default being cbmr.scp. On the first run of CBMR for AIX, all mounted volumes will be selected for backup.

  • 20 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    6.3.1 Viewing the current backup selectionThe current backup selection can be viewed and modified via the Current Backup Selection menu,accessed via the Backup menu:

    The current backup selection can be viewed using the View Current Backup Selection option.This will display the following information:

    Script - the location of the script file

    Volume Groups - the volume groups that the data spans

    Directories - the directories that will be backed up

    Directories not included in the selection

    The following is an example of a backup selection for a typical system:

  • 21Performing a DR backup

    Copyright 2003-2012 Cristie Software Ltd.

    6.3.2 Editing the current backup selectionThe current backup selection can be edited either by adding or removing directories using theGraphical User Interface or by directly editing the file itself. In the latter case, the main page forUBAX describes the format of the files in detail.

    The directories listed in the selection are the mount-points of local file-systems on the system, ordirectories included explicitly in the current script.

    Each directory to be added or removed will have the volume group it resides on in brackets. If alldirectories for a given Volume Group are removed using Remove Folder, then it will not be necessary(but still possible) to recreate the volume group at recovery time.

  • 22 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    6.3.3 Saving the current backup selectionThe backup selection must be saved before the backup is performed. To do this, select SaveCurrent Backup Selection from the Current Backup Selection menu.

    6.3.4 Performing the backupA DR backup can be performed by selecting Perform Backup from the Backup menu.

    If mount points explicitly mentioned in the backup script are not mounted, then an error will begiven at this point. Otherwise, the backup will proceed.

  • 23Performing a DR backup

    Copyright 2003-2012 Cristie Software Ltd.

    A backup can also be performed using the gubax utility or the ubax command line utility. See themain pages of each utility for a description of their functionality.

  • 24 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    7 Performing a Disaster RecoveryIn the event of a disaster, the environment built in Creating a Recovery Image can be used to fullyrecover the machine, using the backup created in Performing a DR backup.

    Recovery is divided into six stages:

    1. VolumeGroups - create the required volume groups

    2. LogicalVolumes - create the required logical volumes

    3. FileSystems - create file-systems on the logical volumes created in the previous step

    4. Mounting - mount the file-systems

    5. Recovery - recover files from the backup

    6. Make bootable - make the system bootable

    All stages are run though in order - consequently this can take a long time dependent upon thespeed of disks and network interfaces. Once the recovery is complete, the system can be rebootedinto its original state.

    Before re-boot, however, it is very useful to make a copy of the log files generated during therecovery as shown in Copying Log Files.

    7.1 Starting the Recovery EnvironmentA recovery may be performed by booting into the recovery console from the recovery CD createdearlier. The environment will initialise by attempting to acquire a network address via DHCP andstarting an SSH server if available.

    Once startup is complete, you must enter the username and password 'root' and 'root' to enter therecovery environment. This is required to enable AIX multi-user support and allow the use of ctrl-c tohalt operations.

  • 25Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    Note: if the 'screen' utility is installed, then this step will be bypassed as screen provided itsown multi-user environment

    Once complete, a dialogue will be presented to change the network setup.

    Selecting Cancel at this stage will leave these values as they are.

    Note: if no DNS entry is given, then all subsequent addresses MUST be given in dotteddecimal form

    Once the network is setup, the Recovery Main Menu will be presented:

    This presents two recovery styles - automatic and manual - as well as tools for managing therecovery environment and log files.

  • 26 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    The automatic recovery runs through all stages of the recovery and only provides options torecover just the root volume group or the whole machine

    The manual recovery allows the option of recovering only selected volume groups and runningselected phases of the recovery individually

    Note: if the graphical environment is unusable at this stage, for example if the currentlyselected item appears to change unexpectedly, then the terminal type should be changed. Seethe Trouble-shooting section for further details

    7.1.1 Automatic Recovery WizardThe Automatic Recovery Wizard takes you through the following steps in order:

    1. Setup Network - if initial setup was unsatisfactory

    2. Backup Location - specify the attributes of the location containing the backup

    3. Configuration - read machine configuration information and set applicable options

    4. Perform Recovery - start the recovery procedure

    5. Copy Log Files - copy the log files generated by the recovery

    Setup NetworkThe network can be setup for any interfaces found using wither DHCP (Dynamic Host ConfigurationProtocol) or manual configuration.

    The manual configuration step is exactly the same as the initial network setup in Starting theRecovery Environment. The DHCP setup will attempt to start a DHCP server (if one is not alreadystarted) and check for an IP address.

    Note: it is common to see warning messages during a DHCP setup, as interfaces may bepolled whilst they are in uncertain states. The DHCP setup will fail if an IP address is notreceived in ten seconds. Therefore, if DHCP fails initially, it may succeed on subsequentattempts after more time will have elapsed

    Backup LocationThe Backup Location menu allows the user to setup the backup location in the same manner.

  • 27Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    A backup location must be specified before the backup version is chosen, as the location is queriedto find the versions that are available.

    It is also possible to select the last backup performed before a given point in time.

  • 28 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    Once the backup has been successfully setup, you can move to the next stage to setup theconfiguration.

    ConfigurationBefore recovery can begin, the machine configuration information created earlier must e loaded intothe recovery environment from the backup. This is performed by selecting the RestoreConfiguration From Backup option:

    If the location of the configuration information was changed during Recording System Information,you will need to enter the location chosen here.

    Selecting the Options item will display any additional options that can be applied at this point.

  • 29Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    Create Minimum Size LVs: This option will ensure that the logical volumes created will be of thesmallest size such that the data to restore fits. This option is useful if you are recovering to amachine with smaller disks.

    Only Recover Root VG: By default, all volume groups are recovered. This option is useful insituations where data is stored on a second data-only volume group which is not included in thebackup.

    Note: the minimum size calculation is performed when the configuration information isrecorded. Therefore, you MUST record the configuration information before updating theTSM backup. If you do not, then the minimum size calculation may be too low and the datato be recovered will not fit on the restored machine

    The Edit Drive Mapping item is used to modify the disks that the backup is restored to. In theexample given, a system using two disks is mapped to a use only one disk during recovery.

    When recovering to fewer disks, any volume groups other than rootvg which cannot be re-created will

  • 30 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    be dropped. However, a volume group spanning more than one physical volume can be restored to asingle volume provided that volume has enough capacity. In the case of mirrored volume groups themirroring will be split if the mapping indicates this.

    Perform RecoveryOnce the configuration has been restored, it will be possible to start the recovery. When this optionis selected, the backup location will be tested and a confirmation dialogue presented:

    Note: as soon as the automatic recovery is started, ALL data will be destroyed on the disksbeing recovered to

    Once the recovery is complete, you will be presented with a dialogue indicating that the machinecan be rebooted:

  • 31Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    Copy LogsOnce the recovery is complete, a menu will be opened containing options for copying log files.

    Copying the log files to an NFS share will allow any problems encountered during recovery andsubsequent reboot to be diagnosed more quickly.

    7.1.2 Manual RecoveryManual recovery presents the stages performed during automatic recovery to be appliedindividually, but also allows you to 'Import from Host', which attempts to load file-systems from thecurrent machine. This can be useful to continue an aborted recovery, or to retrieve information off asystem which no longer boots.

    The options in the manual recovery menu are shown as follows:

  • 32 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    SetupThe setup menu allows you to setup networking (exactly as the first stage of automatic recovery),setup the backup location (exactly as the second stage of automatic recovery) and mount an NFSvolume.

    ConfigurationThe configuration menu allows you to restore the configuration from backup, select which VolumeGroups should be restored and modify configuration options.

    This menu allows you to control precisely which volume groups should be restored. This is incontrast to the options provided for automatic recovery, which will only allow restoration of all volumegroups, or just the root.

    Test Backup LocationThe third option allows you to test the backup location for connectivity before performing a restore. It

  • 33Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    is recommended that this step is always performed before recovering a system.

    Import from HostThis will attempt to import volume groups matching that in the configuration from the hosts system.This can be useful if, for example, the machine was restarted part-way through a recovery or if arecovered machine fails to boot.

    If this situation is encountered, then it is recommended to first try to run the Make Bootable stage,or, if that fails, the Restore and Make Bootable stages. See the Trouble-shooting section for moredetails.

    Running a single recovery phaseIf a problem occurs during recovery, it may be desirable to attempt to run a single recovery phase.This option allows you to select a single phase and run it on its own.

    Note: running an earlier phase after a later phase, such as running LogicalVolumes afterRestore, will RESET ANY WORK DONE BY THE LATER PHASE. You will therefore have torun the remaining phases as well to complete the restore

    Running between two recovery phasesThe 'Run between two phases' menu option allows you to run all phases, inclusively, between twoselections. In the following example, the restore is being run from creation of the logical volumes tothe mounting of file-systems:

  • 34 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    This option may be used to restart a stalled recovery from the next phases to run until completion.For example, if the recovery stopped at the FileSystems stage, then running from Mounting toMakeBootable should result in a fully restored system.

    Additionally, there is a special option which will attempt to work out the last known phase:

    This option is useful if it is not clear why the recovery stopped.

  • 35Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    7.1.3 Post Recovery ChangesThe Post Recovery Changes menu, accessed from the Tools menu, provides the option to copythe current network settings to the recovered machine.

    This is a useful option if you are cloning or moving a recovered machine.

    7.1.4 Trouble-shootingRecovery:If the automatic recovery fails at any point, then it may be possible to continue to recover the systemby continuing the recovery at the next phase.

    For example, if the recovery fails with the following error:

    > Disrec::ERROR "The following commands failed in the last phase run"> ...> Disrec::ERROR "Review the logs and correct any errors before proceeding> Disrec::ERROR "to the next phase (MOUNTING)"

    Then it may be possible to get a working system by running the phases from Mounting until the finalphase, MakeBootable.

    All phases between Mounting and MakeBootable may be run by selecting Run Between TwoPhases and selecting the Mounting and MakeBootable phases. If preferred, the phases may be runindividually by selecting Run Single Phase.

    Once the final phase, Make Bootable, has been run then it will be possible to reboot the machine.However, we recommend copying log files to an accessible location (to an NFS server for example)before performing the reboot.

    Terminal:The recovery environment uses the terminal 'aixterm' by default. However, for some displays orhardware this is not always appropriate. If the terminal is unusable, for example if the menu-optionsdo not correctly line up, then it may be desirable to change the terminal type. This can be performed

  • 36 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    by selecting 'Exit to Shell' and running the environment using a different terminal.

    Typing 'terms' will produce a list of the terminals available. However, is typically quite long, it may beuseful to try one of the following common terminal types first:

    xterm

    vt102

    vt100

    lft

    For example, typing 'TERM=vt100 dr' will restart the recovery environment using the vt100terminal type.

    7.1.5 Copying Log FilesOnce the recovery is complete, it is advised that you copy the log files to a suitable location beforerebooting the system. It is recommended that you mount an NFS share and copy the log files to thatlocation. These actions are performed using the 'Log Files' option from the main menu:

  • 37Performing a Disaster Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    The Copy Log Files option will ask for a location and create a date-stamped archive of the logs inthe directory given.

    The log files will be created with a filename in the form:

    >logs-12:54-10092010.tar.gz

    Note: it is important that the directory selected is an NFS mount, as all information in therecovery environment is lost on reboot

  • 38 Cristie Bare Machine Recovery

    Copyright 2003-2012 Cristie Software Ltd.

    8 Cristie Technical SupportIf you have any queries or problems concerning your Cristie Bare Machine Recovery product, pleasecontact Cristie Technical Support. To assist us in helping with your enquiry, make sure you havethe following information available for the person dealing with your call:

    CBMR Version NumberLinux DistributionAny error message information (if appropriate)Description of when the error occurs

    Contact Numbers - Cristie Software (UK) Limited

    Technical Support +44 (0) 1453 847 009

    Toll-Free US Number 1-866-TEC-CBMR (1-866-832-2267)

    Sales Enquiries +44 (0) 1453 847 000

    Sales Fax +44 (0) 1453 847 001

    Email [email protected]

    Web www.cristie.com

    Support Hours

    05:00 to 17:00 Eastern Standard Time (EST) Monday to Friday

    Out-of-Hours support available to customers with a valid Support Agreement - Severity 1 issues* only

    UK Bank Holidays** classed as Out-of-Hours - Severity 1 issues only.

    *Severity 1 issues are defined as: a production server failure, cannot perform recovery oractual loss of data occurring.

    **For details on dates of UK Bank Holidays, please see www.cristie.com/support/

    Cristie Software Limited are continually expanding their product range in line with the latesttechnologies. Please contact the Cristie Sales Office for the latest product range. Should you havespecific requirements for data storage and backup devices, then Cristie's product specialists canprovide expert advice for a solution to suit your needs.

    About CBMR for AIXSystem RequirementsCBMR for AIX SoftwareInstallationInstall via Smit/SmittyInstall via RPMInstall from archiveLicenceUninstall

    Creating a Recovery ImagePXE Booting

    Performing a DR backupRecording System InformationConfigure the Backup LocationConfiguring a Backup Location using the Graphical User InterfaceConfiguring a Backup Location using the Command Line Interface

    Select the Directories to be backed upViewing the current backup selectionEditing the current backup selectionSaving the current backup selectionPerforming the backup

    Performing a Disaster RecoveryStarting the Recovery EnvironmentAutomatic Recovery WizardManual RecoveryPost Recovery ChangesTrouble-shootingCopying Log Files

    Cristie Technical Support