31.10.2012 Views

TBMR for Solaris Version 2.12 SPARC Platform Step-By-Step Guide

TBMR for Solaris Version 2.12 SPARC Platform Step-By-Step Guide

TBMR for Solaris Version 2.12 SPARC Platform Step-By-Step Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Cristie Software Ltd<br />

New Mill<br />

Chestnut Lane<br />

Stroud GL5 3EH<br />

United Kingdom<br />

Tel:+44(0)1453 847000<br />

Fax:+44(0)1453 847001<br />

cbmr@cristie.com<br />

<strong>TBMR</strong> <strong>for</strong> <strong>Solaris</strong> <strong>Version</strong> <strong>2.12</strong><br />

<strong>SPARC</strong> Plat<strong>for</strong>m<br />

<strong>Step</strong>-<strong>By</strong>-<strong>Step</strong> <strong>Guide</strong><br />

Cristie Data Products GmbH<br />

Nordring 53-55<br />

63843 Niedernberg<br />

Germany<br />

Tel: +49 (0) 60 28/97 95 7-19<br />

Fax: +49 (0) 60 28/97 95 7-99<br />

cbmr@cristie.de<br />

Cristie Nordic AB<br />

Gamla Värmdövägen 8<br />

SE-131 37 Nacka<br />

Sweden<br />

Tel:+46(0)8 718 43 30<br />

Fax:+46(0)8 718 53 40<br />

cbmr@cristie.se


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

Table of Contents<br />

1) Setup <strong>TBMR</strong> Recovery Client……………………………………………………………..……………………………. 1<br />

1.1) Installing <strong>TBMR</strong> <strong>for</strong> <strong>Solaris</strong> on Recovery Client………………………………………………………………….. 1<br />

2) <strong>TBMR</strong> Preparation…………………………………………………………………………………………………………… 2<br />

2.1) <strong>TBMR</strong> Backup & <strong>TBMR</strong> Recovery Scripts……………………………………………………………………………. 2<br />

2.2) Creation of Bootable CD………………………………………………………………….………………………………… 2<br />

2.3) Saving Configuration………………………………………………………….……………………………………………... 4<br />

3) Jumpstart Based Recovery (Preparation)……………………………………..……………………………………. 6<br />

4) Disaster Recovery…………………………………………………………………………………………………………….. 7<br />

4.1) CD Based Recovery…………..………………………………………………………………………………………………. 7<br />

4.2) Jumpstart Based Recovery…………..……………………………………………………………………………………. 7<br />

4.3) <strong>TBMR</strong> Disaster Recovery…………..………………………………………………………………………………………. 7<br />

4.4) Locating Configuration Files………………………………………………………………………………………………. 8<br />

4.5) Specifying the Backup Location used to backup <strong>Solaris</strong> ………………………………………..……..…… 13<br />

4.6) Automatic Recovery………………………………………………………………………………..………………………… 13<br />

5) Copying Log Files to Network Share or Floppy Disk ………………………………………………………….... 15<br />

6) Finalising Logical Volume Manager Setup………………………………………………………………………….. 16<br />

6.1) <strong>Solaris</strong> Volume Manager / Solstice DiskSuite ……………………………………………………………………. 16<br />

6.2) Veritas Volume Manager…..………………………………………………………………………………………………. 17<br />

6.3) After <strong>TBMR</strong> Recovery…………..……………………………………………………………………………………………. 17<br />

7) Notes……………………………………………………………………………………..………………………………………... 17<br />

7.1) Controlling files restored as part of <strong>TBMR</strong> Disaster Recovery 17<br />

7.2) Recovery of <strong>Solaris</strong> Volume Manager / Solstice DiskSuite when config files are missing……… 18<br />

7.3) Recovery of Veritas Volume Manager when config files are missing…………………………….……… 19<br />

7.4) Recovering a machine with networked storage………………………………………………………………….. 20<br />

7.5) Log Files………………………………………………………………………………………………………………………….. 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

1) Setup <strong>TBMR</strong> Recovery Client<br />

1.1) Installing <strong>TBMR</strong> <strong>for</strong> <strong>Solaris</strong> on the Recovery Client<br />

1.1.1) Installing <strong>TBMR</strong> From CD-ROM<br />

If <strong>Solaris</strong> already has volume management running then inserting the <strong>Solaris</strong> <strong>TBMR</strong> distribution CD into the drive will<br />

automatically mount the CD.<br />

Selecting the sparc folder from the top-level directory produces the following…<br />

Selecting the “tbmr” sub-directory gives…<br />

Running the script install_t will copy the required files from the installation CD to the restore client machine.<br />

To uninstall <strong>TBMR</strong> <strong>for</strong> <strong>Solaris</strong> either run the uninstall script or run the install script with the option –u.<br />

Installation of the <strong>Solaris</strong> <strong>TBMR</strong> Client application is now complete.<br />

To run the <strong>TBMR</strong> client application type sol_tbmr at the the command command command line.<br />

line.<br />

Page 1 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

2) <strong>TBMR</strong> Preparation<br />

2.1) <strong>TBMR</strong> Backup and <strong>TBMR</strong> Recovery Scripts<br />

<strong>TBMR</strong> does not require a dedicated disaster recovery backup to be taken. However all the Operating System files<br />

needed <strong>for</strong> a bootable machine must be included in the TSM BA Client backup to be used as the source of files<br />

during the disaster recovery process. You should there<strong>for</strong>e ensure that the BA Client exclude lists do not exclude<br />

these files from the backup.<br />

<strong>TBMR</strong> uses two “script” files during the disaster recovery to limit the number of files recovered and there<strong>for</strong>e limit<br />

the time taken to get the machine up & running. These two scripts “tbmr_root.scp” and “tbmr_fs.scp” are located in<br />

the /etc/cristie/scripts directory and are saved as part of the list of files making up the <strong>TBMR</strong> configuration.<br />

“tbmr_root.scp” controls the files and sub-directories in the root filesystem that get restored as part of the DR<br />

process. If this file is not present the entire root filesystem will be restored.<br />

“tbmr_fs.scp” controls which of the remaining BA Client filespaces are recovered. If this file is not present then only<br />

the root filesystem will be restored during the disaster recovery. A list of filespaces can be obtained by carrying out a<br />

BA Client Filespace Query.<br />

(See section 7.1 below <strong>for</strong> details of contents of tbme_root.scp & & tbmr_fs.scp)<br />

tbmr_fs.scp)<br />

Note Note Note 1: 1: The <strong>TBMR</strong> recovery is not not intended to carry out a complete restore of your machine in a single step. The<br />

Disaster Recovery should restore only those files required <strong>for</strong> the <strong>Solaris</strong> Operating Environment and theTSM BA<br />

Client .<strong>TBMR</strong> is only intended to get your machine up and running as quickly as possible in order to restore your files<br />

and data from the latest full backup. <strong>By</strong> minimising the number of files recovered the time taken to carry out the<br />

restore is minimised, and the time taken to get the machine up and running after a disaster is also reduced.<br />

Once the machine is up and running after a disaster a full restore can be carried out and may overwrite some of the<br />

files restored by the DR process.<br />

Note Note 2: 2: Co Co-Location Co<br />

Location Location of configuration files with with <strong>TBMR</strong> backup. <strong>TBMR</strong> <strong>for</strong> <strong>Solaris</strong> <strong>Version</strong>s <strong>2.12</strong> and later allow the<br />

configuration of the system, required <strong>for</strong> recovery, to be saved as part of the main <strong>TBMR</strong> backup. If this facility IS<br />

IS<br />

being used the configuration of the <strong>TBMR</strong> client machine must be saved locally to directory /<strong>TBMR</strong>CFG<br />

(See section 2.3 below).<br />

2.2) Creation of Bootable CD<br />

2.2.1) Disk Space Requirements<br />

The Bootable <strong>TBMR</strong> CD is based on a copy of the <strong>Solaris</strong> Installation Media with any unnecessary files removed and<br />

Cristie’s software and scripts added.<br />

Note: Note: Creation of the Bootable CD requires a copy of the first CD CD in the set of <strong>Solaris</strong> media or the DVD DVD version of<br />

the <strong>Solaris</strong> distribution. Copies of the <strong>Solaris</strong> Installation media are available <strong>for</strong> download from Sun’s website at<br />

www.sun.com .<br />

The <strong>TBMR</strong> Client Application will need to know where to find the Drive containing the <strong>Solaris</strong> Media so you will need<br />

to find the identity of your drive in the <strong>for</strong>m cXtXdX.<br />

The <strong>Solaris</strong> Installation Media will be copied to the Hard Drive of the client machine being used to create the CD.<br />

It will be modified by the <strong>TBMR</strong> Client Application, then a new ISO file created.<br />

To carry out this action a directory needs to be identified with enough free space <strong>for</strong> both the copy of the <strong>Solaris</strong><br />

Installation Media and the new ISO image. (1200 MB <strong>for</strong> <strong>Solaris</strong> 8, 1400 MB <strong>for</strong> <strong>Solaris</strong> 9, or 1000 MB <strong>for</strong> <strong>Solaris</strong><br />

10). This space is only required during the generation of the bootable CD and the copy of the original CD can be<br />

deleted once the ISO has been created. Once the ISO has been burned to a suitable CD-ROM this file can also be<br />

deleted.<br />

2.2.2) CD Creation<br />

At the main menu select Crea Create Crea<br />

te Bootable ISO file<br />

Page 2 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

The system then runs a small utility program to interrogate the hard-drives and store the results in the file<br />

/etc/cristie/cbmr_s.ini.<br />

After obtaining the Geometry in<strong>for</strong>mation, if you are using a Logical Volume Manager such as Solstice DiskSuite<br />

(<strong>Solaris</strong> 8), <strong>Solaris</strong> Volume Manager (<strong>Solaris</strong> 9 & 10) or Veritas Volume Manager, you may be prompted to tell the<br />

system which LVM you are using.<br />

For <strong>Solaris</strong> 10 the structure of the DVD is very different to the structure of the first CD in the set of installation media.<br />

The system will there<strong>for</strong>e ask you which type of media you are using.<br />

You will then be prompted to enter the path to be used to hold the bootable CD Image. This will be a directory with<br />

sufficient free space, as outlined in section 2.2.1 above.<br />

If a previously extracted CD Image already exists at this location you will be warned and asked if you wish to<br />

continue.<br />

And if you wish to continue you will be asked if you wish to re-use the existing CD Image or extract a new image from<br />

the <strong>Solaris</strong> media.<br />

Page 3 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

If no previous CD Image existed, or you have chosen to extract a new image, you will be prompted <strong>for</strong> the location of<br />

your CD Drive. (In the <strong>for</strong>m cXtXdX as identified in section 2.2.1 above).<br />

The final step be<strong>for</strong>e <strong>TBMR</strong> creates the Bootable CD is to tell the system whether you want the configuration files<br />

generated by <strong>TBMR</strong> stored on the CD.<br />

Copying the files does not increase the size of the ISO file created by <strong>TBMR</strong>, so unless you are absolutely sure you<br />

don’t want these files on the CD then it is safer to copy them.<br />

After completing this dialog the system will create the bootable CD.<br />

Note Note : depending on the speed of your CD-ROM drive this will take quite a few minutes.<br />

The CD creation process is carried out in three stages.<br />

Extraction of slices on the original media<br />

Modification of files on hard disk<br />

Creation of new ISO CD image<br />

Once the process has finished the new ISO file will be named cbmr_boot.iso and will be located in the CD subdirectory<br />

of the directory selected above. This ISO file needs to be burned to a CD-ROM using third party CD<br />

mastering software such as CDRecord, written by Jörg Schilling and freely available on the Internet.<br />

At this point it is probably worth testing whether the CD is bootable, the configuration files are readable, and the<br />

UBax device chosen <strong>for</strong> the backup is accessible during the <strong>TBMR</strong> recovery. To do this see the first few steps of the<br />

disaster recovery process outlined below (See section 4.1) .<br />

2.3) Saving configuration<br />

When <strong>TBMR</strong> <strong>for</strong> <strong>Solaris</strong> creates a Bootable CD the configuration in<strong>for</strong>mation <strong>for</strong> that machine gets saved on the CD<br />

<strong>for</strong> use during the recovery. However since it is possible to use the same Bootable CD to recover a number of client<br />

machines then the facility to save the configuration on a floppy disk , network share or second CD ROM is provided.<br />

If the configuration of the machine is saved locally in directory /<strong>TBMR</strong>CFG, and this directory is included in the BA<br />

Client backup, then <strong>TBMR</strong> can read the configuration files from the main backup as part of the DR process.<br />

After the configuration has been saved it is possible to manually make changes to the saved config files.<br />

If, <strong>for</strong> instance, the client machine having its configuration saved is attached to a networked storage device (e.g<br />

SAN), or has a number of hard disks that will not be present in the machine being recovered then the disrec.ini file<br />

can be edited after saving to network share or floppy. (see section 7.5 <strong>for</strong> details).<br />

Note: Note: It is not possible to extract the Bootable CD from a client machine during a CD based recovery. For a CD based<br />

recovery there<strong>for</strong>e the configuration in<strong>for</strong>mation should only be saved on CD ROM if a second CD drive will be<br />

available, either within the client itself or over the network during the restore.<br />

Page 4 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

2.3.1) Specify location <strong>for</strong> saved Configuration Files.<br />

At the main menu select Set Location <strong>for</strong> <strong>for</strong> Config Info.<br />

This will display the following <strong>for</strong>m to specify where the saved configuration files will be placed.<br />

If the config files are to be saved on an NFS share, and the share has been exported with RW permissions, and if the<br />

share has been mounted on a mountpoint on the client machine then the configuration files can be written directly<br />

to the network. If this is the case the “Local” field on the <strong>for</strong>m above should be set to N; the “Hostname” and “IP”<br />

fields should be set to the name and address of the remote machine; and the last field should be set to the<br />

destination directory.<br />

Note Note Note 1 1 : : Either the hostname OR the IP Address are required, but not necessarily both (Depending on which was<br />

used in the mount command when mounting the directory on the client machine).<br />

The CBMR directory specified here should be the actual directory on the remote server, not the mount point on the<br />

client..<br />

Note Note Note 2 2 : : If If the the configuration configuration files files are are being being saved saved as as part part of of the the TSM TSM BA BA Client Client backup backup then then the the files files MUST MUST be be saved sa<br />

ved<br />

locally locally in in directory directory /<strong>TBMR</strong>CFG /<strong>TBMR</strong>CFG be<strong>for</strong>e be<strong>for</strong>e taking taking the the backup backup. backup<br />

If the intended destination directory on the network is not shared with RW permissions then the “Local” field should<br />

be set to Y and the CBMR directory field set to a location on the client machine where the configuration files can be<br />

found later and copied to the network manually.<br />

If the configuration files are being saved to floppy disk or CD ROM then the “Local” field should be set to “Y” and the<br />

CBMR directory set to a convenient location <strong>for</strong> subsequent copying to the desired media.<br />

2.3.2) Save configuration in<strong>for</strong>mation.<br />

Choosing the next option, Save Save Configuration In<strong>for</strong>mation, from the top-level menu will firstly run the Hard Drive<br />

Geometry utility then copy the INI file containing the configuration and any other files required to recover the <strong>Solaris</strong><br />

Environment to the location set up in the previous step.<br />

If you are using a Logical Volume Manager, such as DiskSuite or <strong>Solaris</strong> Volume Manager, then you may be<br />

prompted to let the system know which one at this point..<br />

The two TSM configuration files, dsm.opt & dsm.sys, will also be copied to the same location as the <strong>TBMR</strong><br />

configuration.<br />

The The The process process of of preparing preparing <strong>for</strong> <strong>for</strong> a a disaster disaster is is now now now complete complete <strong>for</strong> <strong>for</strong> this this this client client client machine.<br />

machine.<br />

Page 5 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

3) Jumpstart Based Recovery (Preparation)<br />

To simplify the administration of large networks of <strong>Solaris</strong> systems Sun provides the “Jumpstart” mechanism.<br />

Jumpstart can be used either to install the operating system from scratch or to per<strong>for</strong>m similar upgrades to a<br />

number of machines located on the network.<br />

<strong>TBMR</strong> and/or CBMR modify the <strong>Solaris</strong> Image on the Jumpstart Server in a similar way to the filesystem on the<br />

bootable CD to add the utilities and scripts required to carry out the disaster recovery.<br />

Unlike the CD filesystem however none of the existing files in the Jumpstart image are removed or re-named so any<br />

existing Jumpstart behaviour will be un-altered.<br />

To prepare the Jumpstart Server to carry out <strong>TBMR</strong> recoveries, <strong>TBMR</strong> must first be installed on the Jumpstart Server<br />

in the same way as on the <strong>TBMR</strong> client (See section 1 above).<br />

As part of the <strong>TBMR</strong> installation a script “mk_cbmr_scp2_js” will be copied to the directory<br />

/etc/cristie/mk_cbmr/create.<br />

Running this script and passing it the path to the directory holding the Jumpstart image will copy the necessary<br />

scripts and utilities into the Jumpstart Image.<br />

For example if the Jumpstart Server has the <strong>Solaris</strong> 9 image located at /export/home/jump_5.9…<br />

> > cd cd /etc/cristie/mk_cbmr/create<br />

/etc/cristie/mk_cbmr/create<br />

> > . . /mk_cbmr_scp2_js /mk_cbmr_scp2_js /export/home/jump_5.9<br />

/export/home/jump_5.9<br />

The Jumpstart Server is now almost ready to carry out a <strong>TBMR</strong> recovery in the event of a disaster.<br />

Page 6 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

4) Disaster Recovery<br />

WHEN WHEN A A DISASTER DISASTER OCCURS...<br />

OCCURS...<br />

4.1) CD Based Recovery<br />

Firstly obtain the correct <strong>TBMR</strong> Bootable CD <strong>for</strong> the machine as prepared above.<br />

Boot the machine<br />

As soon as the screen comes to life type Stop+A (That’s the Stop key plus “a” together) to get the “ok” prompt<br />

(You may need some other key sequence to get to the OK prompt depending upon your machine)<br />

At this point you will be able to open the CD drawer, insert the Bootable CD and type ….<br />

ok boot cdrom<br />

(That’s boot cdrom ) at the OK prompt<br />

The normal <strong>Solaris</strong> Installation process will then start displaying a series of messages on the screen and may<br />

present you with a series of simple prompts.<br />

4.2) Jumpstart Based Recovery<br />

Firstly the “Normal” Jumpstart behaviour must be replaced by <strong>TBMR</strong> Jumpstart.<br />

As part of the installation process <strong>for</strong> <strong>TBMR</strong> carried out in section 3 above a modified version of the inittab file was<br />

copied to the Image of <strong>Solaris</strong> on the Jumpstart Server.<br />

This file will be located somewhere like /export/jump_5.9/<strong>Solaris</strong>_9/Tools/Boot/etc/inittab_cbmr<br />

(Depending of course on the location of your <strong>Solaris</strong> Image).<br />

The original inittab file will also have been copied to “inittab_sun”.<br />

Be<strong>for</strong>e attempting to restore the client machine the <strong>TBMR</strong> version of inittab needs to be copied to “inittab”.<br />

> > > cd cd /export/jump_5.9/<strong>Solaris</strong>_9/Tools/Boot/etc/<br />

/export/jump_5.9/<strong>Solaris</strong>_9/Tools/Boot/etc/<br />

> > cp cp inittab_cbmr inittab_cbmr inittab<br />

inittab<br />

When the client machine is Jumpstarted the modified version of inittab will execute the <strong>TBMR</strong> scripts and software<br />

instead of the Sun Jumpstart mechanism.<br />

We can now boot the <strong>TBMR</strong> recovery client.<br />

Wait 'til it finishes doing its memory test, then press Stop-A to interrupt the normal boot process & get an "ok"<br />

prompt. At this point type...<br />

boot boot ne net ne t – install<br />

install<br />

(That's boot space net space - space install).<br />

The Jumpstart based recovery will now start.<br />

4.3) <strong>TBMR</strong> Disaster Recovery<br />

At this point the <strong>TBMR</strong> process takes over from the Sun boot process and starts by asking you to confirm the<br />

networking setup of the machine.<br />

For each network card the system has detected <strong>TBMR</strong> will either display the IP Address and netmask <strong>for</strong> the card<br />

and ask you if you wish to change them, or let you know that the system has been unable to resolve an IP Address<br />

and prompt you to enter one.<br />

<strong>TBMR</strong> will then ask you if you wish to set up a default router. This will be necessary if the machine holding the<br />

backup is on a different subnet to the recovering machine.<br />

You will then be asked if you wish to set up a DNS Nameserver. Again this will be useful if your backup is placed on a<br />

remote machine that has its IP Address allocated dynamically.<br />

The last step in setting up networking is to get you to confirm the hostname of the machine if it has been resolved, or<br />

to enter it if it hasn’t.<br />

Page 7 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

The system will then launch the <strong>Solaris</strong> <strong>TBMR</strong> Disaster Recovery application.<br />

4.4) Locating the configuration files<br />

As outlined above the Bootable <strong>TBMR</strong> media may be used to recover several client machines. The saved<br />

configuration files may be located on the Boot CD, Network Share, Floppy Disk, or saved with the TSM BA Client<br />

backup. The first step in the recovery is to locate the configuration files <strong>for</strong> the client machine being recovered.<br />

4.4.1) Locate Configuration File (disrec.ini)<br />

Choosing the first option on the Disaster Recovery application’s main menu brings up a list of possible locations <strong>for</strong><br />

the configuration files.<br />

4.4.1.1) CBMR Boot CD<br />

For the simplest case with the configuration files saved on the boot CD itself, selecting the item CBMR CD from the<br />

list will bring up a <strong>for</strong>m to allow you to enter the path and filename of the config file.<br />

For this simple case you can accept the defaults shown here.<br />

Page 8 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

4.4.1.2) Floppy Disk<br />

If the configuration had been stored on floppy disk, selecting the relevant option from the “File Location”<br />

list would bring up a screen looking like….<br />

…and assuming the floppy containing the config files was present in the drive you should then get a confirmation<br />

message…<br />

… followed by….<br />

Assuming the config files were saved in the root directory of the floppy disk you can accept the defaults shown.<br />

If <strong>for</strong> any reason the system is unable to mount the floppy or a message will be displayed on the screen.<br />

If the system is unable to read the configuration file specified above again an error message will be displayed on the<br />

screen. The most likely cause of this is a typo when entering the path to the config file.<br />

4.4.1.3) Network Share<br />

If the configuration files <strong>for</strong> this <strong>TBMR</strong> client were stored on a Network share, after selecting the correct entry on the<br />

list of locations you will be presented with a <strong>for</strong>m along the lines of….<br />

Page 9 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

In this case the first field on the <strong>for</strong>m needs to be filled with the path to the shared directory on the network .<br />

The second field needs to be filled with the path from the shared directory to the directory containing the config file.<br />

The third field needs to be filled with the filename of the config file itself.<br />

Example Example : : If the IP address of the server holding the config file “disrec.ini” is 10.0.4.5;<br />

The config file – disrec.ini - is located in directory /export/cbmr/configs/U30 on that server;<br />

And the server has shared directory /export/cbmr shared over the network ;<br />

The <strong>for</strong>m should be completed as follows…<br />

The Path to NFS share is 10.0.4.5:/export/cbmr (No trailing slash required)<br />

The Path is configs/U30 (No leading or trailing slashes)<br />

And finally the filename (In this case disrec.ini).<br />

If <strong>for</strong> any reason the system is unable to mount the network share a message will be displayed on the screen.<br />

If the system is unable to read the configuration file specified above again an error message will be displayed on the<br />

screen. The most likely cause of this is a typo when entering the path to the config file.<br />

4.4.1.4) Saved with TSM BA Client Backup<br />

If the TSM BA Client parameters have not yet been set up then you will be presented with a small menu...<br />

Selecting the first of these options will display the contents of the dsm.sys file copied onto the Bootable media<br />

during ISO creation.<br />

The second option produces a <strong>for</strong>m to allow you to enter / modify these parameters…<br />

The first three fields are self explanatory, the NodeName is the node on the TSM server containing your BA Client<br />

backup and the password field allows you to enter the password <strong>for</strong> the specified node.<br />

The ”Command line” field allows you to enter any additional command line switches, such as –quiet or –pitt, to be<br />

passed to TSM during file restore. These options will be used when reading the configuration files and during the<br />

main file restore.<br />

If the “Command Line” field or OK / Cancel buttons are not displayed on this <strong>for</strong>m using CTRL+N will display the<br />

second page of the <strong>for</strong>m. After completing the <strong>for</strong>m you will return to the Client Setup menu then, when you exit from<br />

the menu, <strong>TBMR</strong> will attempt to read the configuration files from the BA Client backup<br />

Page 10 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

4.4.2) TSM Configuration Files.<br />

After locating the configuration files <strong>TBMR</strong> will check in the same location to see whether the files dsm.sys and/or<br />

dsm.opt exist. If these files are present (Saved in step 2.2.2 above) then you will be given the option of using these<br />

files instead of the ones in the recovery environment.<br />

As per the prompts in the dialog shown selecting “OK” will replace the dsm.opt and dsm.sys files from the CD with<br />

those found alongside the configuration files.<br />

Note: Note: If your configuration files were saved as as part of of the the BA BA Client Client ba backup, ba ckup, and you have carried out the the steps<br />

above above to to configure configure dsm.sys, dsm.sys, dsm.sys, then then then you you should should NOT NOT use use the the files files files recovered recovered as as part part of of of the the configuration.<br />

configuration.<br />

4.4.3) LVM Configuration Files – SDS / SVM.<br />

When creating the configuration file the <strong>TBMR</strong> Client Application makes a note of any Logical Volume Manager in<br />

use. In the case of <strong>Solaris</strong> Volume Manager Manager or Solstice DiskSuite DiskSuite the <strong>TBMR</strong> Client Application also makes a copy of<br />

the outputs from the metastat metastat and metadb commands. After locating the configuration file the <strong>TBMR</strong> recovery<br />

application checks whether SVM or SDS were in use on the original system and if so checks <strong>for</strong> the existence of the<br />

files “metastat_p metastat_p metastat_p” metastat_p and “metatdb_i metatdb_i metatdb_i”. metatdb_i<br />

This may simply be an error in the configuration file. If <strong>Solaris</strong> Volume Manager or DiskSuite were not in fact in use<br />

on the original system then we can select OK from this dialog and <strong>TBMR</strong> will not attempt to recover the LVM setup.<br />

If SVM or SDS were in use but these files are missing then <strong>TBMR</strong> will be unable to complete an Automatic Recovery.<br />

(See Notes in section 7.2 at the end of the document).<br />

Page 11 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

4.4.4) LVM Configuration Files – VxM.<br />

As stated above when creating the configuration file the <strong>TBMR</strong> Client Application makes a note of any Logical<br />

Volume Manager in use. In the case of Veritas Veritas Vol Volume Vol<br />

ume Manager the <strong>TBMR</strong> Client Application also makes a copy of<br />

the file /etc/vfstab.prevm, or attempts to build this file from notes that VxM makes at the end of /etc/vfstab.<br />

This file is then stored as part of the configuration <strong>for</strong> <strong>TBMR</strong> recovery.<br />

During a <strong>TBMR</strong> restore, after locating the configuration file, the <strong>TBMR</strong> recovery application checks whether VxM was<br />

in use on the original system and if so checks <strong>for</strong> the existence of the file vfstab.prevm in the same location. If the<br />

file is missing the following warning is displayed.<br />

This may simply be an error in the configuration file. If Veritas Volume Manager was not in fact in use on the original<br />

system then we can select OK from this dialog and <strong>TBMR</strong> will not attempt to recover the LVM setup.<br />

If VxM was in use but vfstab.prevm is missing then <strong>TBMR</strong> will be unable to complete an Automatic Recovery.<br />

(See Notes in section 7.3 at the end of the document).<br />

If you continue with the recovery (Either Automatic or Manual) with this file missing, at the point that <strong>TBMR</strong> attempts<br />

to restore the VxM setup you will get the following dialog displayed.<br />

At this point it is necessary to use the “Shell” option from the top-level menu to edit the file /etc/vfstab to remove<br />

references to the VxM volumes and replace then with the correct “native” partitions to mount any filesystems.<br />

Even if vfstab.prevm is not present then <strong>TBMR</strong> will still comment out the lines relating to Veritas Volume Manager in<br />

/etc/system. The system should boot correctly from the native <strong>Solaris</strong> partitions once the necessary changes have<br />

been made to /etc/vfstab.<br />

Page 12 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

4.5) Specifying the Backup Location used to backup <strong>Solaris</strong><br />

After completing the dialogs above to locate the <strong>TBMR</strong> configuration files you will return to the main menu<br />

If the location holding the <strong>TBMR</strong> backup has not yet been specified, then this is the next step..<br />

Selecting the second option allows you to set up the BA client parameters to be used <strong>for</strong> file restore<br />

(see section 4.4.1.4 above)<br />

Selecting the third option “Test Backup” runs a TSM BA Client filespace query (Or reads the volume header of a UBax<br />

location), to test the connection to the specified location.<br />

4.6) Automatic Recovery<br />

Assuming everything is OK so far we are now ready to begin the <strong>TBMR</strong> Recovery.<br />

Selecting the third option from the main menu begins the Automatic Recovery process and the following screen will<br />

be displayed…<br />

The system will then read the selected configuration file, interrogate the hard drives on the machine being recovered<br />

and generate Volume Table of Contents (VTOC) files <strong>for</strong> each hard disk.<br />

Once the disks have been labelled – if necessary – and re-partitioned the following screen will be displayed .<br />

<strong>TBMR</strong> will always <strong>for</strong>mat the disk containing the root filesystem.<br />

<strong>TBMR</strong> will always <strong>for</strong>mat any disks which had no labels and there<strong>for</strong>e were labelled automatically in the previous<br />

step.<br />

Page 13 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

If the other disks on the system were not corrupted during whatever disaster ocurred and have data on them that<br />

you might wish to preserve then setting the Format All flag to N will skip <strong>for</strong>matting <strong>for</strong> disks other than those<br />

mentioned above<br />

If all the hard disks known to be on the system, or the the “Format “Format All” All” field, field, field, or or the the the OK OK and and Cancel Cancel buttons buttons ar are ar e not not<br />

not<br />

displayed, displayed, then then using using CTRL+N CTRL+N will will display display the the next next page page of of the the <strong>for</strong>m.<br />

<strong>for</strong>m.<br />

After accepting the <strong>for</strong>m shown above <strong>TBMR</strong> will <strong>for</strong>mat any disks.<br />

The system will now use the TSM BA Client (Or Cristie’s UBax software, depending upon the backup location selected<br />

above) to restore the <strong>Solaris</strong> files.<br />

If the BA Client is used the files are restored in two phases…<br />

4.6.1) Root Filesystem<br />

Firstly files from the root filesystem are recovered. If the file tbmr_root.scp, saved as part of the configuration, exists<br />

then this determines which files from the root filespace are restored (See section 7.1.1). If this file does not exist<br />

then the entire root filespace will be restored. If a selective restore is carried out by specifying files in tbmr_root.scp,<br />

but <strong>for</strong> an individual entry in this file there are no files to be restored then the BA Client reports an “error”.<br />

If this, or any other errors occur then the following menu will be displayed at he end of the root filespace restore.<br />

Un<strong>for</strong>tunately TSM returns the same error code <strong>for</strong> this trivial error as <strong>for</strong> more serious ones.<br />

After exiting the above dialog box you will be presented with a simple menu…<br />

Selecting the first option from this menu will display the log file generated by the TSM BA Client.<br />

If no serious errors are reported then selecting the second option will continue with the recovery of remaining<br />

filespaces from the BA Client backup.<br />

4.6.2) Non-Root Filesystems<br />

After recovering the files from the root filespace any remaining filespaces, listed in the tbmr_fs.scp file, are restored.<br />

If this file is not present then only the root filespace will be restored as part of the DR process (See section 7.1.2)<br />

Page 14 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

4.6.3) Final stages of <strong>TBMR</strong> recovery<br />

When the recovery of files using BA Client (or UBax) finishes <strong>TBMR</strong> will continue the recovery process by setting up<br />

any Logical Volume Manager (DiskSuite. <strong>Solaris</strong> Volume Manager etc) in use on the original system.<br />

Then, when the recovery is more or less complete the Disaster Recovery Application will display a message box<br />

in<strong>for</strong>ming you that the restore is finished and you should choose “Exit” from the main menu.<br />

At this point you may wish to copy the various log files generated during the recovery to a shared network directory,<br />

or to floppy disk. (Note that, depending on the logging level used, the log files may be too large to fit on a floppy disk)<br />

See section 5 below <strong>for</strong> details.<br />

When the restore is complete and you exit the DR application, the system will ask you if you wish to run a shell<br />

window be<strong>for</strong>e re-booting the machine.<br />

<strong>TBMR</strong> <strong>TBMR</strong> is is now now finished<br />

finished<br />

Your machine will re-boot with a working <strong>Solaris</strong> Operating Environment.<br />

You can finalise the setup of your logical volume manager (See section 6 below) then you can recover any remaining<br />

files from your latest backup.<br />

5) Copying Log Files to Network Share or Floppy Disk<br />

At any point in the recovery, if the user has access to the top-level menu, the log files generated by <strong>TBMR</strong> can be<br />

copied to a shared directory on the network, or to a floppy disk.<br />

Selecting the option shown above from the top-level menu brings up the following sub-menu…<br />

Be<strong>for</strong>e the logs can be copied, the destination <strong>for</strong> the log files must be specified. Choosing the highlighted option<br />

brings up the following…<br />

Page 15 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

Selecting the Network Share option produces a dialog similar to the one used to specify the location of the<br />

configuration files (See section 4.4.1.3 above)…<br />

Once the destination <strong>for</strong> the log files has been specified the logs themselves can be copied by choosing the “Copy<br />

Log Files” item from the “Log Fles” sub-menu.<br />

If the directory chosen as the destination <strong>for</strong> the log files does not already exist then you will be asked if you wish to<br />

create it be<strong>for</strong>e the files are copied to the desired location.<br />

6) Finalising Finalising Logical Volume Manager Setup<br />

<strong>TBMR</strong> uses in<strong>for</strong>mation stored prior to any disaster to recover the setup of a Logical Volume Manager (LVM)<br />

(Solstice DiskSuite <strong>for</strong> <strong>Solaris</strong> 8, <strong>Solaris</strong> Volume Manager <strong>for</strong> <strong>Solaris</strong> 9 or 10, or Veritas Volume Manager).<br />

The system does not however attempt to completely recover the LVM setup.<br />

The full LVM setup of a large system using a variety of stripes, concatenations and mirrors can be extremely complex<br />

and the consequences of restoring this incorrectly can be very serious, resulting in the loss of data and possibly<br />

preventing the recovering machine from booting.<br />

Bearing this in mind <strong>TBMR</strong> recovers the files saved in the backup onto the partitioned and <strong>for</strong>matted hard disks prior<br />

to setting up the LVM.<br />

6.1) <strong>Solaris</strong> Volume Manager / Solstice DiskSuite<br />

<strong>TBMR</strong> will attempt to create concats / stripes on partitions that had filesystems mounted on stripes in the original<br />

configuration. <strong>TBMR</strong> will also create mirrors <strong>for</strong> any of these partitions that were mirrored in the original system and<br />

will attach the “primary” sub-mirror.<br />

<strong>TBMR</strong> will also create concats / stripes on partitions that originally mirrored these stripes, but will not attempt to<br />

attach these sub-mirrors.<br />

(<strong>TBMR</strong> re-scales partitions on hard disks where the geometry has changed, this may result in the partitions used <strong>for</strong><br />

sub-mirrors differing slightly in size and there<strong>for</strong>e the attempt to attach the sub-mirror might fail).<br />

In the case of concatenations, <strong>TBMR</strong> will create the first metadevice in the concatenation but will not attach any<br />

further partitions.<br />

During the file restoration phase of the recovery all the files that were backed up from the concatenated volume will<br />

be restored to the first partition of the concatenation. This is another reason to be selective with the <strong>TBMR</strong> script<br />

used to restore the <strong>Solaris</strong> files.<br />

Page 16 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

6.2) Veritas Volume Manager<br />

<strong>TBMR</strong> uses configuration in<strong>for</strong>mation stored by the client machine prior to any disaster to obtain the “native”<br />

partitions <strong>for</strong> any Veritas Volumes. i.e the partitions that these volumes were mounted on prior to the installation of<br />

Veritas.<br />

<strong>TBMR</strong> restores the saved <strong>Solaris</strong> Operating Environment files onto these partitions, then makes adjustments to files<br />

/a/etc/vfstab and /a/etc/system in order to make the system bootable. Copies of these files prior to <strong>TBMR</strong> making<br />

any changes are stored as /a/etc/vfstab_original and /a/etc/system_original respectively.<br />

6.3) After <strong>TBMR</strong> Recovery<br />

Once the <strong>TBMR</strong> process has finished the recovering machine will be bootable and will have the relevant Logical<br />

Volume Manager installed. The <strong>Solaris</strong> system admininistrator can then finalise the setup of the LVM. This is a much<br />

lower risk strategy than <strong>TBMR</strong> attempting to do the full LVM recovery automatically.<br />

7) 7) No Notes No tes<br />

7.1) 7.1) 7.1) Controlling Controlling files files files restored restored as as as part part part of of <strong>TBMR</strong> <strong>TBMR</strong> Disaster Disaster Recovery<br />

<strong>TBMR</strong> uses two script files to limit the number of files restored as part of the DR process.<br />

These files are located in the directory /etc/cristie/scripts on the <strong>TBMR</strong> Client machine and get saved as part of the<br />

list of configuration files when preparing <strong>for</strong> a disaster.<br />

Two example scripts are copied to this directory as part of the installation of CBMR<br />

7.1.1) 7.1.1) <strong>TBMR</strong>_root.scp<br />

<strong>TBMR</strong>_root.scp<br />

This file is used to limit the files restored from the root filespace as part of the <strong>TBMR</strong> Disaster recovery.<br />

If this file is missing from the saved configuration the entire root filespace will be restored.<br />

The file takes the <strong>for</strong>m…<br />

/ -subdir=no<br />

/boot/ -subdir=yes<br />

/cbmr/ -subdir=no<br />

/usr/ -subdir=yes –quiet<br />

…with each line being a path specification followed by any BA Client command line switches to be applied to that line<br />

when carrying out the restore.<br />

In the above example …<br />

/ -subdir=no -- Will restore files in the root directory, but not sub directories<br />

/boot/ -subdir=yes -- Will restore the /boot/ directory and any sub-directories<br />

/cbmr/ -subdir=no -- Will restore the /cbmr/ directory but not sub-directories<br />

/usr/ -subdir=yes –quiet -- Will restore the /usr/ directory and any sub-directories<br />

and will suppress listing of the files as they are recovered<br />

Note Note : The trailing slash at the end of the path is is required<br />

7.1.2) 7.1.2) <strong>TBMR</strong>_fs.scp<br />

<strong>TBMR</strong>_fs.scp<br />

File is used to specify which of the remaining filespaces in the BA Client backup are restored as part of the DR<br />

process. If this file is missing from the saved configuration ONLY the root filespace will be restored.<br />

The file takes the <strong>for</strong>m…<br />

/export/home/<br />

/export/home0/<br />

/user_data/<br />

… and is simply a list of the filespaces to be restored from the BA Client backup. Once again the trailing slashes at<br />

the end of each entry in this file must be present.<br />

A list of the filespaces contained in the backup can be obtained by running a BA Client filespace query<br />

> dsmc query filespace<br />

Page 17 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

7.2) 7.2) Recovery Recovery of of <strong>Solaris</strong> <strong>Solaris</strong> Volume Volume Manager Manager / / Solstice Solstice DiskSuite DiskSuite when when confi configuration confi guration files are are missing<br />

When preparing <strong>for</strong> disaster recovery on a client machine using <strong>Solaris</strong> Volume Manager (SVM) or Solstice DiskSuite<br />

(SDS) the <strong>TBMR</strong> Client Application saves the output from the metadb and metastat commands in three files:-<br />

metadb_i metadb_i -- The output from metadb –i<br />

metastat_i metastat_i -- The output from metastat –i<br />

metastat_p metastat_p -- The output from metastat –p<br />

These three files are then saved alongside the disrec.ini file on floppy disk, network share or the JumpStart Server; or<br />

in the directory / /etc/cristie/lvm<br />

/<br />

etc/cristie/lvm on the Bootable <strong>TBMR</strong> CD.<br />

During the recovery, when the user has identified the location of the configuration file <strong>TBMR</strong> reads the file to check<br />

whether SVM or SDS were in use on the original machine, then if necessary checks whether the above files are<br />

present.<br />

If these files are not present, either because there was an error copying them when storing the configuration, they<br />

have subsequently been deleted, or the entry in the configuration file is correct and SVM/SDS was not in use on the<br />

original system, then <strong>TBMR</strong> will be unable to automatically recover the Logical Volume Manager setup.<br />

In this case the following dialog will be displayed…<br />

For the case where SVM/SDS were not in use on the original machine i.e. the entry in the configuration file is<br />

incorrect simply select OK to exit the dialog and carry on with the recovery. The entry in the configuration file will be<br />

ignored and <strong>TBMR</strong> will not attempt to set up the Logical Volume Manager.<br />

If however SVM/SDS were in use but the files are missing we have more of a problem, but all is not lost…<br />

During preparation <strong>for</strong> disaster recovery, when the <strong>TBMR</strong> Client application copies the configuration files to network<br />

share or floppy disk it also appends the contents of the metasat_p and metadb_I files to the end of the configuration<br />

file (disrec.ini). There<strong>for</strong>e it may be possible to recreate the files we need.<br />

Exit the dialog above using Cancel Cancel, Cancel<br />

because we still want to attempt setup the volume manager.<br />

At the main menu select the Shell option.<br />

Run the commands<br />

>cd >cd >cd / /<br />

/<br />

>find >find >find . . . –name name disrec.ini disrec.ini<br />

disrec.ini<br />

to locate the configuration file. If you are carrying out a CD Based recovery but are using a configuration file on<br />

network share or floppy disk you may find more than one instance, it should be obvious which is the correct one<br />

(/etc/cristie/cbmr/disrec.ini is the one located on the bootable CD itself)<br />

Change directory to the location of the disrec.ini file then use vi to examine the contents. At the end of the file should<br />

be two sections starting with [METASTAT_P] and [METADB_I] [METADB_I].<br />

[METADB_I]<br />

If entries are present and look as though they contain the correct in<strong>for</strong>mation to set up the logical volume manager<br />

we can proceed as follows.<br />

Exit from vi<br />

Copy disrec.ini to metastat_p<br />

Copy disrec.ini to metadb_I<br />

Use vi to edit the new metatstat_p file – Remove everything up to and including the line [METASTAT_P].<br />

-- Remove everything from, and including, [METADB_I] to the end.<br />

Use vi to edit the new metadb_i file – Remove everything up to and including the line [METADB_I].<br />

Page 18 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

Return to the <strong>TBMR</strong> Recovery Application (On a CD Based recovery use CTRL+D to exit the shell)<br />

Continue with the recovery, <strong>TBMR</strong> will use the re-created metastat_p and metadb_i files to recover the volume<br />

manager configuration.<br />

If the disrec.ini file does not contain the required in<strong>for</strong>mation, but you know where to place the SVM or SDS State<br />

Database Replicas we can still recover the Logical Volume Manager setup manually.<br />

After inspecting the disrec.ini file without SVM/SDS setup in<strong>for</strong>mation return to the Recovery Application.<br />

Re-select the configuration file and you should be presented with the dialog shown above with the warning about<br />

missing metastat_p & metadb_i files. This time exit the dialog with OK to proceed with recovery but to skip the<br />

attempt to recover the SVM/SDS setup. The recovery should run to completion and display a message along the<br />

lines of “Restore is complete – Select EXIT to finish recovery and re-boot”.<br />

At this point DO NOT select Exit.<br />

Instead select the Shell option once more.<br />

You can now manually use the command metadb –a to create the required state database replicas (See Sun<br />

Documentation).<br />

After setting up the State Database replicas you can use metainit to create the required concats / stripes / mirrors<br />

(Again see Sun Documentation) – The original configuration of concats / stripes / mirrors shuold have been restored<br />

to the file /a/etc/lvm/md.cf.<br />

Finally to copy the newly setup SVM/SDS configuration to the restored filesystem you need to run the script<br />

>/etc/cristie/c<br />

>/etc/cristie/cbmr/finish_svm<br />

>/etc/cristie/c bmr/finish_svm<br />

We can now return to the <strong>TBMR</strong> Application and select Exit to finish the recovery process and re-boot the machine.<br />

7.3) 7.3) Recovery Recovery Recovery of of Veritas Veritas Volume Volume Manager Manager Manager when when config config files files files are are missing<br />

missing<br />

When preparing <strong>for</strong> disaster recovery on a client machine using Veritas Volume Manager the <strong>TBMR</strong> Client<br />

Application saves a copy of the file /etc/vfstab.prevm, or attempts to build this file from notes that VxM makes at<br />

the end of /etc/vfstab.<br />

This file is then stored as part of the configuration <strong>for</strong> <strong>TBMR</strong> recovery.<br />

If this file is missing <strong>TBMR</strong> will be unable to automatically update the vfstab file restored as part of the backup of<br />

<strong>Solaris</strong> files.<br />

In this case the file /a/etc/vfstab will need to be manually edited using vi from the “Shell” option of the top level<br />

menu.<br />

The file restored as part of the <strong>Solaris</strong> backup may have notes made by Veritas included at the end as follows:-<br />

#device device mount FS fsck mount mount<br />

#to mount to fsck point type pass at boot options<br />

#<br />

fd - /dev/fd fd - no -<br />

/proc - /proc proc - no -<br />

/dev/vx/dsk/bootdg/swapvol - - swap - no nologging<br />

/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol / ufs 1 no<br />

nologging<br />

/dev/vx/dsk/bootdg/usr /dev/vx/rdsk/bootdg/usr /usr ufs 1 no<br />

nologging<br />

/dev/vx/dsk/bootdg/home /dev/vx/rdsk/bootdg/home /export/home ufs 2<br />

yes -<br />

swap - /tmp tmpfs - yes -<br />

#NOTE: volume rootvol (/) encapsulated partition c0t0d0s0<br />

#NOTE: volume swapvol (swap) encapsulated partition c0t0d0s1<br />

#NOTE: volume usr (/usr) encapsulated partition c0t0d0s5<br />

#NOTE: volume home (/export/home) encapsulated partition c0t0d0s6<br />

In this case the entries in vfstab relating to VxM volumes can easily be changed to the correct native partitions by<br />

referring to the notes made by Veritas. If these notes are not present then it may be possible to determine the<br />

correct entries <strong>for</strong> each filesystem either by looking at the VTOCs <strong>for</strong> the system’ hard disks.<br />

> > prtvtoc prtvtoc /dev/rdsk/c0t0d0s2<br />

/dev/rdsk/c0t0d0s2<br />

Page 19 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

or by examining the configuration file saved by the <strong>TBMR</strong> Client application.<br />

> > vi vi /etc/cristie/cbmr/disrec.ini<br />

/etc/cristie/cbmr/disrec.ini<br />

then looking at the [MOUNT_POINT_X] sections to see which “SLICE” entries relate to each MOUNT_POINT.<br />

After manually updating /a/etc/vfstab return to the <strong>TBMR</strong> recovery application.<br />

Select “Settings / CBMR Progress Flags”.<br />

On the resulting <strong>for</strong>m set the “Setup logical volume manager” flag to 1 then exit from the <strong>for</strong>m with OK.<br />

(If this field or the OK/Cancel buttons are not displayed on the <strong>for</strong>m use CTRL+N to get to the next page of the <strong>for</strong>m).<br />

When you return to the top-level menu use the “Automatic Recovery” option to complete any tidying up.<br />

You should now get a message stating that the recovery is complete and you can use “Exit” to exit the application<br />

and re-boot.<br />

7.4) 7.4) Notes Notes on on recovering recovering client client machine machine with with networked networked storage<br />

storage<br />

When obtaining configuration in<strong>for</strong>mation from the client machine <strong>TBMR</strong> makes entries in disrec.ini corresponding<br />

to each visible hard disk and <strong>for</strong> each partition with a mounted filesystem.<br />

In the case of networked storage (e.g SAN) these disks may not be available when the machine is being recovered.<br />

At the start of the recovery <strong>TBMR</strong> will examine the hardware available, may warn the user (If there are still enough<br />

partitions to mount all the required filesystems) or may report an error and be unable carry out an Automatic<br />

recovery.<br />

7.4.1) 7.4.1) 7.4.1) <strong>TBMR</strong> <strong>TBMR</strong> <strong>TBMR</strong> Configu Configuration<br />

Configu ration<br />

Even if there are enough partitions to cope with all the mountpoints from the original system this may result in the<br />

filesystems being mounted in the “wrong” place. I.e filesystems from the original networked storage may be<br />

mounted on “spare” partitions on internal hard disks.<br />

To avoid this situation the configuration files <strong>for</strong> such a machine should be saved to network share or to floppy disk,<br />

then edited manually using vi or any similar text editor. Be<strong>for</strong>e making any changes to disrec.ini it is probably worth<br />

taking a copy of the file so that any changes can be undone if required.<br />

Firstly the sections relating to mount points on networked disks need to be removed. These sections can be<br />

identified by the section header [MOUNT_POINT_X], where X is the mount point number, and the MOUNT_POINT<br />

field is set to a filesystem that we will exclude from the recovery.<br />

(Make careful note of the SLICE field <strong>for</strong> any sections removed, this will identify which HARD_DISK sections need to<br />

be removed below).<br />

Once the unneeded MOUNT_POINT_X sections have been removed then any remaining sections need to be<br />

renumbered to <strong>for</strong>m a consecutive list .<br />

Next the hard disk and partition sections in the INI file relating to the above MOUNT_POINT sections need to be<br />

removed. These sections can be identified by the section header [HARD_DISK_X], where X is the hard disk number,<br />

and the field DEVICE_NODE corresponds to the SLICE entry of a MOUNT_POINT removed above.<br />

After removing section [HARD_DISK_X] the sections [PARTITION_X_N] that follow it need to be removed, once again X<br />

is the hard disk number and N is the number of each partition in turn.<br />

There is no need to re-number any remaining hard disk or partition sections.<br />

7.4.2) 7.4.2) Disrec.ini Disrec.ini Sample<br />

Sample<br />

Below is an example of a disrec.ini file modified to exclude networked drives…<br />

Lines to be deleted are shown in RED, changed entries shown in Blue.<br />

;INI File <strong>for</strong> Cristie CBMR<br />

[JS_CLIENT]<br />

OS_VER="5.9"<br />

PLATFORM="SUNW,Ultra-30"<br />

MACHINE="sun4u"<br />

CBMR="2.01-5"<br />

HOSTNAME="U30-9"<br />

VOL_MGR="SVM"<br />

HardDiskCount="3"<br />

VTOC_DIR="configs/U30-9"<br />

UBX_DIR="configs/U30-9/ubax"<br />

[JS_SERVER]<br />

Page 20 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

SRVR_HOSTNAME=""<br />

SRVR_IP_ADD=""<br />

SRVR_BMR_ROOT="/etc/cristie/cbmr_test"<br />

SRVR_MNT_PT="/etc/cristie/cbmr_test"<br />

LOCAL="Y"<br />

[MOUNT_POINT_0]<br />

MOUNT_POINT="/"<br />

FS_TYPE="ufs"<br />

OPTIONS="rw,intr,largefiles,onerror=panic,suid,dev=1540000"<br />

SLICE="c0t0d0s0"<br />

[MOUNT_POINT_1]<br />

MOUNT_POINT="/export/home"<br />

FS_TYPE="ufs"<br />

OPTIONS="rw,intr,largefiles,onerror=panic,suid,dev=800006"<br />

SLICE="c0t0d0s6"<br />

; The following lines should be deleted<br />

[MOUNT_POINT_2]<br />

MOUNT_POINT="/user_data1"<br />

FS_TYPE="ufs"<br />

OPTIONS="rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=3dc0008"<br />

SLICE="c6t6d0s0"<br />

[MOUNT_POINT_3]<br />

MOUNT_POINT="/user_data2"<br />

FS_TYPE="ufs"<br />

OPTIONS="rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=3dc0009"<br />

SLICE="c6t6d0s1"<br />

[MOUNT_POINT_4]<br />

MOUNT_POINT="/app_data1"<br />

FS_TYPE="ufs"<br />

OPTIONS="rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=3dc000b"<br />

SLICE="c6t6d0s3"<br />

[MOUNT_POINT_2]<br />

; Was originally [MOUNT_POINT_5]<br />

MOUNT_POINT="/export/home0"<br />

FS_TYPE="ufs"<br />

OPTIONS="rw,intr,largefiles,onerror=panic,suid,dev=80000d"<br />

SLICE="c0t1d0s5"<br />

[HARD_DISK_0]<br />

VTOC_FILE="dsk_vtoc_0"<br />

SECTORS="248"<br />

SECT_PER_CYL="4712"<br />

CYLINDERS="7506"<br />

BYTES_PER_SECTOR="512"<br />

DEVICE_NODE="c0t0d0"<br />

PartitionCount="5"<br />

[PARTITION_0_0]<br />

PARTITION_TAG="2"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="4433992"<br />

NUMBER_OF_SECTORS="10309856"<br />

ENDING_SECTOR="14743847"<br />

MOUNT_POINT="/"<br />

MOUNT_TYPE="ufs"<br />

MOUNT_OPTIONS="rw,intr,largefiles,onerror=panic,suid,dev=1540000"<br />

PARTITION_NUMBER="0"<br />

[PARTITION_0_1]<br />

PARTITION_TAG="3"<br />

PARTITION_FLAGS="01"<br />

START_SECTOR="0"<br />

NUMBER_OF_SECTORS="4433992"<br />

ENDING_SECTOR="4433991"<br />

PARTITION_NUMBER="1"<br />

[PARTITION_0_2]<br />

PARTITION_TAG="5"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="0"<br />

NUMBER_OF_SECTORS="35368272"<br />

ENDING_SECTOR="35368271"<br />

PARTITION_NUMBER="2"<br />

Page 21 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

[PARTITION_0_3]<br />

PARTITION_TAG="8"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="14743848"<br />

NUMBER_OF_SECTORS="20539608"<br />

ENDING_SECTOR="35283455"<br />

MOUNT_POINT="/export/home"<br />

MOUNT_TYPE="ufs"<br />

MOUNT_OPTIONS="rw,intr,largefiles,onerror=panic,suid,dev=800006"<br />

PARTITION_NUMBER="6"<br />

[PARTITION_0_4]<br />

PARTITION_TAG="0"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="35283456"<br />

NUMBER_OF_SECTORS="84816"<br />

ENDING_SECTOR="35368271"<br />

PARTITION_NUMBER="7"<br />

[HARD_DISK_1]<br />

VTOC_FILE="dsk_vtoc_1"<br />

SECTORS="248"<br />

SECT_PER_CYL="4712"<br />

CYLINDERS="7506"<br />

BYTES_PER_SECTOR="512"<br />

DEVICE_NODE="c0t1d0"<br />

PartitionCount="3"<br />

[PARTITION_1_0]<br />

PARTITION_TAG="5"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="0"<br />

NUMBER_OF_SECTORS="35368272"<br />

ENDING_SECTOR="35368271"<br />

PARTITION_NUMBER="2"<br />

[PARTITION_1_1]<br />

PARTITION_TAG="8"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="0"<br />

NUMBER_OF_SECTORS="24968888"<br />

ENDING_SECTOR="24968887"<br />

MOUNT_POINT="/export/home0"<br />

MOUNT_TYPE="ufs"<br />

MOUNT_OPTIONS="rw,intr,largefiles,onerror=panic,suid,dev=80000d"<br />

PARTITION_NUMBER="5"<br />

[PARTITION_1_2]<br />

PARTITION_TAG="0"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="35278744"<br />

NUMBER_OF_SECTORS="89528"<br />

ENDING_SECTOR="35368271"<br />

PARTITION_NUMBER="7"<br />

; The following lines should be deleted<br />

[HARD_DISK_2]<br />

VTOC_FILE="dsk_vtoc_2"<br />

SECTORS="96"<br />

SECT_PER_CYL="1440"<br />

CYLINDERS="10014"<br />

BYTES_PER_SECTOR="512"<br />

DEVICE_NODE="c6t6d0"<br />

PartitionCount="4"<br />

[PARTITION_2_0]<br />

PARTITION_TAG="0"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="0"<br />

NUMBER_OF_SECTORS="10486080"<br />

ENDING_SECTOR="10486079"<br />

MOUNT_POINT="/user_data1"<br />

MOUNT_TYPE="ufs"<br />

MOUNT_OPTIONS="rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=3dc0008"<br />

PARTITION_NUMBER="0"<br />

[PARTITION_2_1]<br />

Page 22 of 23


<strong>TBMR</strong> <strong>Version</strong> <strong>2.12</strong> <strong>for</strong> <strong>Solaris</strong> – <strong>Step</strong>-by-<strong>Step</strong> <strong>Guide</strong><br />

PARTITION_TAG="0"<br />

PARTITION_FLAGS="01"<br />

START_SECTOR="10486080"<br />

NUMBER_OF_SECTORS="1025280"<br />

ENDING_SECTOR="11511359"<br />

MOUNT_POINT="/user_data1"<br />

MOUNT_TYPE="ufs"<br />

MOUNT_OPTIONS="rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=3dc0009"<br />

PARTITION_NUMBER="1"<br />

[PARTITION_2_2]<br />

PARTITION_TAG="5"<br />

PARTITION_FLAGS="01"<br />

START_SECTOR="0"<br />

NUMBER_OF_SECTORS="14420160"<br />

ENDING_SECTOR="14420159"<br />

PARTITION_NUMBER="2"<br />

[PARTITION_2_3]<br />

PARTITION_TAG="0"<br />

PARTITION_FLAGS="00"<br />

START_SECTOR="11511360"<br />

NUMBER_OF_SECTORS="1025280"<br />

ENDING_SECTOR="12536639"<br />

MOUNT_POINT="/app_data1"<br />

MOUNT_TYPE="ufs"<br />

MOUNT_OPTIONS="rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=3dc000b"<br />

PARTITION_NUMBER="3"<br />

The above process can also be use (with extreme care) to recover onto a system having fewer hard disks than the<br />

original <strong>TBMR</strong> client.<br />

7.5) 7.5) Notes Notes on on Log Files<br />

7.5.1) Setting Log Levels<br />

If problems are experienced during the <strong>TBMR</strong> recovery it will be necessary to examine the log files in order to isolate<br />

the problem. The number of logging messages generated by <strong>TBMR</strong> can be changed by the user to provide more<br />

in<strong>for</strong>mation at a cost of lower per<strong>for</strong>mance.<br />

To set the log levels select the “Settings” option from the top-level menu.<br />

Select the “CBMR Parameters” option from the next sub-menu.<br />

On the resulting <strong>for</strong>m set the CBMR log level to the desired level (Default = 3).<br />

0 – no logging, 7 – maximum, lots of messages least per<strong>for</strong>mance.<br />

If the <strong>TBMR</strong> process is having problems during the file restoration phase then it may be useful to increase the<br />

UBax log level (0 – no logging, 5 – Maximum). Note that if UBax log level is set to 4 or 5 then all paths and filenames<br />

will be displayed and logged as the restore proceeds. This will have a serious effect on the recovery per<strong>for</strong>mance.<br />

7.5.2) Saving Log Files<br />

At any point in the recovery, if the user has access to the top-level menu, the log files generated by <strong>TBMR</strong> can be<br />

copied to a shared directory on the network, or to a floppy disk. (See Section 5 above).<br />

In the case of serious problems where the system crashes and does not return to either the <strong>TBMR</strong> Recovery<br />

application or the shell it may be necessary to write the log files directly to network share.<br />

In this case it will be necessary to restart the <strong>TBMR</strong> recovery then, as soon as the <strong>TBMR</strong> Recovery application starts,<br />

select the “Shell” option from the top-level menu.<br />

Mount a network share on /cbmr.<br />

Create a directory /cbmr/cbmr_logs.<br />

Return to the <strong>TBMR</strong> Recovery application (CTRL+D).<br />

Select the Settings / CBMR Parameters menu item.<br />

Set the “Working Directory”field on the <strong>for</strong>m to /cbmr/cbmr_logs/.<br />

Set the CBMR log_level and UBax log_level as appropriate.<br />

Exit the <strong>for</strong>m with OK.<br />

If the OK button or any of the fields on the <strong>for</strong>m are not visible then use CTRL+N to display the next page of the <strong>for</strong>m.<br />

Return to the top-level menu and continue with the recovery attempt.<br />

Page 23 of 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!