Appendix F2 -- EOS Restore Procedures

# Tru64 5.1B

Last Modified: 7/16/07

## Network information

**dreos.cit.nih.gov** 165.112.213.240 **drzinc.cit.nih.gov**
128.231.164.19

default router 165.112.213.225 default router 128.231.164.17

netmask 255.255.255.224 netmask 255.255.255.248

**drgarnet.cit.nih.gov** 128.231.164.11 **drlapis.cit.nih.gov**
128.231.164.3

default router 128.231.164.9 default router 128.231.164.1

netmask 255.255.255.248 netmask 255.255.255.248

drtn3270.titan.nih.gov 165.112.213.229

zinc.cit.nih.gov 128.231.19.**214**

eos.nih.gov 128.231.56.**102**

garnet.cit.nih.gov 128.231.56.**132**

lapis.cit.nih.gov 128.231.56.**128**

## DR Website

[http://dr.cit.nih.gov](http://dr.cit.nih.gov/) Viewing status

<http://dr.cit.nih.gov/drentry.cfm> Update status

**[Screen Commands:]{.underline}** (start screen session as root so
someone else can pick it up)

\% screen start screen session

\% screen --ls list the screen sessions

CTRL-a d detach screen

\% screen --r attach screen

\% screen --r pid.tty.hostname attach specific screen session (if you
have more than one open)

## Define Console

Local\> prompt

Type show serv

Type connect wdpcm1

Username: sas

Password: sas

Type ccon \<conn_name\>

The point-of-contact for Tru64 servers will tell you the connection name
and network interface to use for each system. Write the information
below on the white board for reference.

Connection Network Interface

dreos \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

dlapis \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

drgarnet \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

drzinc \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

## Build and Restore Root

Check that machine is halted.

Verify CDROM drive has the OS CD marked as:

> **"Compaq Tru64 UNIX Version 5.1B Operating System Volume 1"**

1)  Boot CD-ROM.

    -   \_\_\_\_\_ initial

> [Get device information on boot disk and cdrom]{.underline}
>
> \>\>\> show dev
>
> \>\>\> show config
>
> Boot disk (e.g. DKA0)
>
> CD-ROM device (e.g. DKA400)
>
> **[Set BOOTDEF_DEV to null]{.underline}**
>
> **\>\>\> set bootdef_dev ""**
>
> Set BOOTDEF_DEV to null string to prevent the installation process
> from copying the hardware configuration from the root system.
>
> [Boot CDROM]{.underline}
>
> \>\>\> boot --fl A DKA400
>
> On a graphics console:
>
> English Installation window, click OK
>
> Installation Welcome window, click File then Quit
>
> On serial console:
>
> 1\) U.S. English Installation
>
> 2\) Installation with Worldwide Language Support
>
> 3\) Exit Installation
>
> Enter your choice: **3**
>
> Enter 3 to exit installation to Unix Shell.

2)  Create boot disk.

    -   \_\_\_\_\_ initial

> \# TERM=vt100; export TERM
>
> [Show system devices to get boot disk drive (e.g. dsk0)]{.underline}
>
> \# **hwmgr --v dev**
>
> Run "disklabel --r" on each available disk. Pick the 18GB disk as the
> boot disk and leave the larger size disk for the application data.
>
> *This document is using '*dsk0*' as an example for the boot disk*.
>
> [Write boot disk configuration to a temporary file]{.underline}
>
> **\# disklabel --rw --t advfs** dsk0
>
> **\# disklabel --r dsk0 \> /tmp/label-dsk0**
>
> [Edit the disk configuration]{.underline}
>
> \# **vi /tmp/label-dsk0**
>
> \- Modify the disk partition according to requirements
>
> (see below for the proposed 18GB disk layout)
>
> \- Verify fstype for partition **b** is "swap"
>
> \- Verify fstype for other partitions are "unused"
>
> \- Do not include comma (,) in the number partitions
>
> \- Verify the disk space allocation for each partition
>
> The partition size is in 512K (400,000 = \~200MB)
>
> The offset starts at 0; next offset = offset + size
>
> [Proposed 18GB boot disk layout for dreos, drzinc, drgarnet, and
> drlapis:]{.underline}
>
> Partition Size Offset \~ Size
>
> a 600,000 0 300MB (root)
>
> b 8,000,000 600,000 4.0GB (swap)
>
> c 35,547,048 0 18.0GB
>
> d 5,000,000 8,600,000 2.5GB (/usr)
>
> e 5,000,000 13,600,000 2.5GB (/var)
>
> f 4,000,000 18,600,000 2.0GB (/tmp)
>
> g 6,000,000 22,600,000 3.0GB (/usr/local)
>
> h \<n\> 28,600,000 3.3GB (/usr/users)
>
> where \<n\> = c (size) -- **h** (offset)
>
> (Ex: if c=35,547,048, then \<n\>=6,947,048)
>
> [Create boot disk with the new disk configuration]{.underline}
>
> **\# disklabel --R --r --t advfs dsk0 /tmp/label-dsk0 dsk0** (create
> boot disk)
>
> **\# disklabel --r dsk0** (verify partitions and sized)

-   Verify the boot disk (e.g. **dsk0**) partition with the sizes
    specify above

3)  Create root domain.

    -   \_\_\_\_\_ initial

> \# mkdir /var/root
>
> \# mkfdmn /dev/disk/dsk0a root_dom
>
> \# mkfset root_dom root
>
> \# mount root_dom#root /var/root

4)  Create tape device.

    -   \_\_\_\_\_ initial

> \# **/sbin/dn_setup --install_tape**
>
> Call SunGard point-of-contact to load the OS tape
>
> [Get the tape device]{.underline}
>
> \# hwmgr --v d
>
> *This document is using "*tape0_d1*" as an example for the tape
> device*.
>
> [Verify the tape is in the drive]{.underline}
>
> \# mt --f /dev/ntape/tape0_d1 status

5)  Restore root partition.

    -   \_\_\_\_\_ initial

> \# **vrestore --x --o no --f /dev/ntape/tape0_d1 --D /var/root**

6)  Clear old hardware devices.

    -   \_\_\_\_\_ initial

> o Execute script /var/root/etc/dr/**dr.os_deldev**
>
> The hardware files are saved in /var/root/Olddev. Verify old hardware
> files are removed:
>
> \# cd /var/root/etc
>
> \# ls **dec\* ddc\*d\* dcdd\* dfsc\***
>
> \# cd ../cluster/members/member
>
> \# ls **.Booted etc/cfginfo etc/dfsl\***
>
> \# cd /var/root/dev
>
> \# ls **disk rdisk cport tape ntape**

-   Verify old devices are removed

> (OR)
>
> o Manually remove the old restored devices
>
> [Remove old hardware devices to Olddev directory]{.underline}
>
> \# cd /var/root/etc
>
> \# **rm dec\* dccd\* dcdd\* dfsc\***
>
> \# cd /var/root/cluster/members/member
>
> \# **rm --fr .Booted etc/cfginfo etc/dfsl\***
>
> [Remove old disk and cport config]{.underline}
>
> \# cd /var/root/dev
>
> \# rm disk/\* rdisk/\* cport/\* tape/\* ntape/\*

7)  Change hostname, IP, netmasks, etc.

-   \_\_\_\_\_ initial

> Execute script /var/root/etc/dr/**dr.os_cpsysfiles**
>
> **[And]{.underline}** modify the following files in /var/root/etc:
>
> \# ifconfig --a (to get network interface)
>
> \# vi sysconfigtab (search for swap, e.g. swapdevice=/dev/dsk/dsk0b)
>
> \# vi rc.config (Update network interface, e.g. NETDEV_0="tu2")
>
> \# grep NR rc.config (Verify all netrain configurations are removed)
>
> \# grep CONFIG rc.config (Verify netwwork configurations)
>
> **[drzinc:]{.underline}**
>
> \# vi inet.local (Update network interface, e.g. lan_config --i tu0
> --a 0 --s 100 --x 1)
>
> For manual instructions, see "**Network Setup**" in MANUAL
> INSTRUCTIONS section at the end of this document.

8)  Disable start/stop scripts that will not be started at D/R site.

-   \_\_\_\_\_ initial

> Execute script /var/root/etc/dr/**dr.os_rcdrename**
>
> For manual instructions, see "**Start/Stop rc scripts**" in MANUAL
> INSTRUCTIONS section at the end of this section.

## Build and Restore Boot Disk

Restore other partitions (in order of /usr, /var, /usr/local,
/usr/users)

1)  Create domains and filesets.

-   \_\_\_\_\_ initial

> Execute script below to create the required file domains and filesets;
> mount all files system.
>
> \# /var/root/etc/dr/**dr.os_mkfdmn dsk0** (18GB disk configuration)
>
> \# df --k (verify all files system are mounted)
>
> For manual instructions, see "**Boot Disk Configuration**" in *Manual
> Instructions* section at the end of this section.

-   Setup the links in /var/root/etc/fdmns directory.

```{=html}
<!-- -->
```
-   \_\_\_\_\_ initial

> Execute script below to set up links for the system boot disk
>
> \# /var/root/etc/dr/**dr.os_fdmns dsk0** (for 18 GB disk
> configurations)
>
> \# ls --l /var/root/etc/fdmns/\* (verify fdmns links)
>
> For manual instructions, see "**Fdmns Links Setup**" in *Manual
> Instructions* section at the end of this section.

2)  Restore the partitions (in order of /usr, /var, /usr/local,
    /usr/users)

-   \_\_\_\_\_ initial

> Tape should already be in position for restore, if not do the
> following:
>
> \# mt --f /dev/ntape/tape0_d1 rewind
>
> \# mt --f /dev/ntape/tape0_d1 fsf 1
>
> **[dreos:]{.underline}** (only)

-   \_\_\_\_\_ initial

> [Execute the following scripts:]{.underline}
>
> \% cd /var/root/etc/dr
>
> \# **./dr.res_usr tape0_d1**
>
> \# more /var/usr/local/**usr.restore**

-   Verify the /usr is restored correctly

> \# **./dr.res_var tape0_d1**
>
> \# more /var/usr/local/**var.restore**

-   Verify the /var is restored correctly

> /usr/local is too big to restore all the data, only restore the
> necessary directories:
>
> \# cd /var/usr/local
>
> \# **vrestore --i --f** /dev/ntape/tape0_d1
>
> (/) ls
>
> (/) add lib dr bin etc sbin include oracle
>
> (/) extract

-   Verify the /usr/local is restored correctly

> **[drgarnet/drlapis/drzinc:]{.underline}** (only)

-   \_\_\_\_\_ initial

> [Execute the following scripts:]{.underline}
>
> \% cd /var/root/etc/dr
>
> \# ./**dr.res_usr tape0_d1**
>
> \# more /var/usr/local/**usr.restore**

-   Verify the /usr is restored correctly

> \# ./**dr.res_var tape0_d1**
>
> \# more /var/usr/local/**var.restore**

-   Verify the /var is restored correctly

> \# ./**dr.res_local tape0_d1**
>
> \# more /var/usr/local/**var.restore**

-   Verify the /usr/local is restored correctly

> **[dreos/drlapis/drzinc:]{.underline}** (only)

-   \_\_\_\_\_ initial

> \# ./**dr.res_home tape0_d1**
>
> \# more /var/usr/local/**home.restore**

-   Verify user's home directories are restored correctly

> Notes: On *dreos* and *drgarnet*, restoring only admins and dbas
> accounts to /home directory.
>
> (OR)
>
> Manually type in the restore commands as follows -- only if the
> scripts above don't run:
>
> \# date; **vrestore --xv --o no --f--D** **/var/usr** \>
> /var/usr/local/usr.restore
>
> \# date; **vrestore --xv --o no --f** /dev/ntape/tape0_d1 **--D**
> **/var/var** \> /var/usr/local/var.restore
>
> \# date; **vrestore --xv --o no --f** /dev/ntape/tape0_d1 **--D**
> **/var/usr/local** \> /var/usr/local/local.restore
>
> **[drlapis/drzinc:]{.underline}** (only)
>
> \# date; **vrestore --xv --o no --f** /dev/ntape/tape0_d1 **--D**
> **/var/usr/users** \> /var/usr/local/home.restore
>
> **[dreos:]{.underline}** (only)
>
> \# date; **vrestore --xv --o no --f** /dev/ntape/tape0_d1 **--D**
> **/var/home**\> /var/usr/local/home.restore
>
> **[NOTES:]{.underline}**
>
> If a partition you are restoring is too big for the configured size,
> use **--i** (interactive) restore option to select the directories you
> wish to restore.
>
> \# **vrestore --i --f** /dev/ntape/tape0_d1
>
> restore\> select \<dir1\>
>
> restore\> select \<dir2\>
>
> restore\> extract

3)  Halt the system

-   \_\_\_\_\_ initial

> \# **halt**

## BOOT

1)  Boot the system up with generic kernel.

-   \_\_\_\_\_ initial

> \>\>\> show dev (to get boot disk device, e.g. dka0)
>
> \>\>\> **boot --fl s --fi genvmunix DKA0**

\# TERM=vt100; export TERM

> Once booted to generic kernel, add swap and build new kernel.
>
> a\. Create devices and mount all files system
>
> \# /**sbin/mountroot** (Create all the devices)
>
> \# /**sbin/bcheckrc** (Mount all files system in /etc/fstab)
>
> \# df --k (Verify all files system in /etc/fstab are mounted including
> /tmp)
>
> b\. Set file permission for /tmp directory
>
> \# chmod 1777 /tmp
>
> c\. Add swap
>
> \# swapon --s (Display swap space utilization)
>
> \# swapon --a /dev/disk/dsk0b (Add swap partition if no swap space
> shown)
>
> \# vi **/etc/sysconfigtab**
>
> Verify swapdevice has the correct swap partition.
>
> d\. Build a new kernel and move it to the root directory
>
> \# **doconfig**
>
> Enter \<HOSTNAME\> for the name of configuration file (e.g. DREOS)
>
> Enter Y to confirmation prompt
>
> Press RETURN to continue displaying \*\*\*KERNEL OPTION
> SELECTION\*\*\*
>
> Enter a number that has option "all of the above" at the Kernel build
> question
>
> Enter Y to confirmation message
>
> Enter N to edit configuration
>
> The new kernel is /sys/\<HOSTNAME\>/vmunix, copy to / (root) directory
>
> \# cp --p /vmunix /vmunix.old
>
> \# **mv /sys/\<HOSTNAME\>/vmunix /vmunix**
>
> e\. Halt the system
>
> \# **halt**

2)  Boot with the new kernel.

-   \_\_\_\_\_ initial

    a.  Change boot definition

> \>\>\> show auto\_\*
>
> \>\>\> set auto_action BOOT
>
> \>\>\> show dev (to get the boot disk device, e.g. DKA0)
>
> \>\>\> show boot\*
>
> \>\>\> set boot_osflags a
>
> \>\>\> set bootdef_dev DKA0

b.  Boot to single user mode

> \>\>\> **boot --fl s**
>
> \# **/sbin/bcheckrc** (to mount all files system)
>
> \# TERM=vt100; export TERM
>
> Verify *fstab*, *hosts*, *rc.config*, *inet.local*, *routes*,
> *sysconfigtab* in **/etc** directory before booting to multi-user
> mode.

c.  Boot to multi-user mode

> \# **exit**

3)  Disable crontabs.

-   \_\_\_\_\_ initial

> \# cd /var/spool/cron/crontabs
>
> \# mkdir crontabs.hold
>
> \# mv \* crontabs.hold
>
> \# /sbin/init.d/cron stop
>
> \# sudo /sbin/init.d/cron start
>
> **\#** ls /var/spool/cron/atjobs/\*
>
> \# rm /var/spool/cron/atjobs/\*

4)  Fix CPU license number.

-   \_\_\_\_\_ initial

> **[drgarnet/drlapis/drzinc:]{.underline}** (only)
>
> On dr**lapis** and dr**garnet**, and maybe dr**zinc** you will get an
> error message of 'too many users already login' when you login with
> your username. This was due to the number of CPU license is not large
> enough for the current restored system.
>
> 7/03 -- There was not enough CPU license number in the license file.
>
> [Do the following to correct the CPU licenses:]{.underline}
>
> Login as root.
>
> \# **lmf**
>
> lmf\> **list**
>
> Below is the license listing on lapis:
>
> Product Status Users: Total Active
>
> DECEVENT terminated
>
> ADVFS-UTILITIES active unlimited
>
> SYSV active unlimited
>
> OSF-DEV active unlimited
>
> OSF-BASE active unlimited
>
> OSF-BASE active, multiple unlimited
>
> OSF-SVR active unlimited
>
> OSF-USR active unlimited
>
> OSF-USR active, multiple unlimited
>
> ASE-OA active unlimited
>
> Change the value in "**Number of units**:" to 2700 for each of the
> license listed above. For license that have multiple entries, such as
> OSF-BASE and OSF-SVR, you need to specify the "**Authorization
> Number:**" with the modify command.
>
> lmf\> modify ADVFS-UTILITIES
>
> lmf\> modify SYSV
>
> lmf\> list full for OSF-BASE (to get the Authorization Number)
>
> lmf\> modify OSF-BASE DEC ALS-NQ-1999MAR30-1141
>
> lmf\> modify OSF-BASE DEC ALS-NQ-1999MAR30-1150
>
> lmf\> modify OSF-SRV
>
> lmf\> list full for OSF-USR
>
> lmf\> list modify OSF-USR DEC ALS-NQ-1999MAR30-1147
>
> lmf\> modify ASE-OA
>
> lmf\> **reset**
>
> lmf\> **exit**
>
> If one of the multiple license (such as OSF-BASE) having problem
> saving the Number of Units, then try to disable one of them:

[Example:]{.underline}

lmf\> disable OSF-BASE DEC ALS-NQ-1999MAR30-1150

> Log off as root.

5)  Verify network.

-   \_\_\_\_\_ initial

> \% ifconfig --a
>
> \% /usr/sbin/netstat --i
>
> \% netstat -nr
>
> Verify you have network connectivity to NIH and outside.

6)  Verify date and time.

-   \_\_\_\_\_ initial

> \# date
>
> If date is not correct, change it:
>
> \# date mmddyyyy
>
> (e.g. date 120815052003 = 12/8/2003 3:05pm)

7)  Verify ACL is enabled on lapis and garnet.

-   \_\_\_\_\_ initial

> **[drgarnet/drlapis:]{.underline}** (only)
>
> \% sysconfig --q sec
>
> \% grep acl /etc/sysconfigtab

8)  Create nbsproj account.

-   \_\_\_\_\_ initial

> **drzinc:** (only)

\# /usr/sbin/groupadd --g 1331 nbsproj

\# /usr/sbin/groupadd --g 1859 iappprod

\# /usr/sbin/**useradd** --c "nbsproj owner" --d /usr/users/nbsproj --g
nbsproj --m --s /bin/ksh --u 30542 \\

nbsproj

\# /usr/sbin/**useradd** --c "iappprod owner" --d /usr/users/iappprod
--g iappprod --m --s /bin/ksh --u \\

29883 iappprod

\# passwd nbsproj

\# passwd iappprod

9)  Notify Adrienne that the system is up and ready for application
    restores.

-   \_\_\_\_\_ initial

## Prepare for Application Restores

1)  Find the available disk(s).

    -   \_\_\_\_\_ initial

> \# **hwmgr --v dev** (e.g. dsk1)
>
> \# disklabel --rw --t advfs dsk1

2)  Create file domain for the applications.

    -   \_\_\_\_\_ initial

> Create one big domain for all the filesets. Use addvol if necessary.
>
> \# **mkfdmn /dev/disk/dsk1c dr_dom**

### dreos (application-prep):

1)  Create fileset for /usr/users and /scratch.

    -   \_\_\_\_\_ initial

\# /etc/dr/**dr.app_mkfsuser dr_dom**

2)  Restore dba home directories.

    -   \_\_\_\_\_ initial

> \# /usr/local/dr/**siduser.dr --x --s** drlocal --d /usr/local/dr
>
> Extract files from /usr/local/dr/drlocal/appl/drlocal.ufiles.tar.gz
>
> Creates home directory if it does not exist
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.app_fxdrlocal**
>
> \# ls --l /usr/users (to verify owner:group are correct)

3)  Create application filesets.

    -   \_\_\_\_\_ initial

> \# /etc/dr/**dr.app_mkfs** dr_dom
>
> The script:
>
> creates and mounts the following filesets:
>
> afpsp, afpspbin, pacf, pacfbin, acf_oracle (/apps/acf), crispprd,
> crispprdbin, nihdirp2, nihdirp2bin, dumps, backups, export, oramaint
>
> 7/05 test : does not include nihdir (**nihdirp2** and **nihdirp2bin**)
>
> creates the following directories for ACF printing:
>
> /apps/acf/gates_print
>
> /apps/acf/gates_print.invalid
>
> \# more /etc/fstab (verify application domain name)

4)  Create dumps and backups directory.

    -   \_\_\_\_\_ initial

> \# /etc/dr/**dr.app_dumpd**
>
> The script above creates the following directories:
>
> /dumps/afpsp and /backups/afpsp/appl
>
> /dumps/pacf and /backups/pacf/appl
>
> /dumps/crispprd and /backups/crispprd/appl
>
> /dumps/gmp and /dumps/gmp/appl
>
> /dumps/gmpub and /dumps/gmpub/appl
>
> /dumps/nihdirp2 and /backups/nihdirp2/appl
>
> /export/\[log,dmp,sql,crontablog\]
>
> **[12/05 test :]{.underline}** does not include *nihdir*
> (/dumps/nihdirp2, /backups/nihdirp2/app)
>
> **[12/05 test:]{.underline}** test does not include crispprd, but
> directories are created.

### drgarnet (application-prep):

1)  Create fileset for /usr/users.

    -   \_\_\_\_\_ initial

> \# sudo /etc/dr/**dr.app_mkfsuser dr_do**m

2)  Restore admin and dba home directories.

    -   \_\_\_\_\_ initial

> \# sudo /usr/local/dr/**siduser.dr --x --s** drlocal --d /usr/local/dr
>
> Extract files from /usr/local/dr/drlocal/appl/drlocal.ufiles.tar.gz
>
> Creates home directory if it does not exist
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If the owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.fxdrlocal**
>
> \# ls --l /usr/users (to verify owner;group are correct)

-   \_\_\_\_\_ Verify owner and group are correct

3)  Create application filesets.

    -   \_\_\_\_\_ initial

> \# /etc/dr/**dr.app_mkfs** dr_dom
>
> The script:
>
> creates and mounts the following filesets:
>
> oracle, orabin, plsql for pmsprod
>
> creates the following directories:
>
> /backups
>
> /dumps
>
> /apps/pms-hold
>
> \# more /etc/fstab (verify application domain name and all needed
> filesets are mounted)

-   \_\_\_\_\_ Verify mount points exist and in /etc/vfstab file

### drlapis (application-prep):

1)  Create application filesets.

    -   \_\_\_\_\_ initial

> \# /etc/dr/**dr.app_mkfs dr_dom**
>
> The script creates and mounts the following filesets: oas, pmspoas,
> pmspoasbin, backups.
>
> \# more /etc/fstab (verify application domain name)

-   \_\_\_\_\_ Verify mount points exist and in /etc/vfstab file

### drzinc (application-prep):

1)  Create application filesets.

    -   \_\_\_\_\_ initial

\# /etc/dr/**dr.app_mkfs dr_dom**

The script above creates and mount the following filesets:

> igelprod, g816prod, iaapprod, backups

\# more /etc/fstab (verify application domain name)

## Application Setup

1)  Create application filesets.

Login as your username.

-   \_\_\_\_\_ initial

Login using your username to verify that it is working.

4.  Modify sudoers file.

-   \_\_\_\_\_ initial

> **drzinc:** (only)

\% sudo visudo

Go to the bottom of the file and uncomment all the lines below
"Uncomment for DR 7/07"

4.  Modify hosts.allow file.

-   \_\_\_\_\_ initial

> **[drzinc:]{.underline}** (only)

\% sudo vi /etc/hosts.allow

Go to the bottom of the file and uncomment all the lines below
"Uncomment for DR 7/07"

4.  Configure and startup Connect:Direct.

-   \_\_\_\_\_ initial

> *eos* Connect:Direct version 3.4.01
>
> *garnet* Connect:Direct version 3.5
>
> **[dreos/drgarnet:]{.underline}** (only)

-   Execute script to install license key and net map configuration
    files

> \% sudo etc/dr**/dr.cd_config**
>
> For manual instructions, see "**Connect:Direct Setup**" in MANUAL
> INSTRUCTIONS
>
> at the end of this document.

-   Startup Connect:Direct

> \% sudo **/sbin/init.d/conn_dir start**
>
> \% ps --ef \| grep conn_dir

-   Verify Connect:Direct is running.

> \% sudo **su - stem**
>
> \% cd /usr/opt/conn_dir/ndm/bin
>
> \% **direct**
>
> direct\> submit file=sample.cd;
>
> direct\> quit;
>
> Verify file "cddelete.me" in stem's \$HOME directory.

## Application Restores

You can login as root or use sudo with your account to restore the
applications.

While the application restore are running, mirror the local boot disk to
the disk on the SAN. This is for in case the local boot disk has problem
as it did in previous test. Mirror the boot disk by using ***rsync***.

-   \_\_\_\_\_ initial

\% sudo hwmgr --v d (to find the 18GB SAN disk)

> \% sudo **disklabel --r dsk0 \> /**tmp**/label-dsk0**

\% sudo vi /tmp/ **label-dsk0**

Change the /dev/rdsk/dsk to point the san disk, also change the "type"
and "disk" -- the information

retrieved from "hwmgr --v d"

Create the boot disk on the SAN disk using the same disk configuration
as the local disk

\% sudo **disklabel --R --r --t advfs dsk0 /tmp/label-dsk0 \<san
disk\>**

\% sudo **disklabel --r \<san disk\>**

Create the mirror boot disk directory

\% sudo mkdir /bkroot /bkusr /bkvar /bklocal /bkusers

Modify fstab to add mirro boot disk directory

\% cd /etc

\% sudo cp fstab fstab.\<yyyymmdd\>

\% sudo vi fstab

Add in all the mount points for /bk\* directories

Mount the /bk\* directories

\% sudo mount /bkroot

\% sudo mount /bkusr

....

Run rsync script

\% sudo /usr/local/etc/rsync.system.disk

### dreos (application-restore):

Update DR Web Page status with onsite DR coordinator. Suggested text
"DREOS application files are being restored".

Get the name of the tape drive and write the information below on the
white board for reference.

Tape drives:

> /dev/tape/\_\_\_\_\_\_\_\_\_\_
>
> /dev/tape/\_\_\_\_\_\_\_\_\_\_
>
> /dev/tape/\_\_\_\_\_\_\_\_\_\_

#### Pacf (on eos):

1)  Restore vdump from tape

    -   \_\_\_\_\_ initial

> Request tape "**eos** **pacfdrbkup**." This will span to multiple
> tapes. It will request the second tape
>
> "**eos pacfdrbkup2**." Note the times tapes are requested.
>
> \# **/usr/local/dr/vdmprst.scr --d /dev/ntape/tape**\#**\_d1 --s
> pacf**
>
> Restores files:
>
> /dumps/pacf/clone_ora\*\_acf_pacf.vdump.\*
>
> /backups/pacf/appl/pacf.ufiles.tar.gz
>
> **[7/06:]{.underline}** data expanded to 3 tapes; data was not
> restored correctly -- user ended up testing

testing on silver

> Tape 1 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Tape 2 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Tape 3 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_

2)  Restore user files and other requested files (ran about 1:15 7/04)

    -   \_\_\_\_\_ initial

> \% sudo /usr/local/dr/**siduser.dr --x --s** pacf
>
> The script above extract files from
> */backups/pacf/appl/pacf.ufiles.tar.gz*.
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.acct_fxpacf**
>
> **\#** ls --l /usr/users (to verify owner:group are correct)

3)  Run vrestore for /orabin and /oracle backups. The vdmprestore
    command will uncompress the vdump file and then run vrestore. Do the
    /orabin first since it will finish faster, and once it starts the
    vrestore process the vdmprestore command can be started for the
    /oracle data -- the /orabin files will be vrestored before the
    uncompress finishes for the /oracle data. There will be some disk
    contention, but it should still be faster than a single task at a
    time. If the tape dump is finished early enough (before 6?), then
    run one command at a time for the better performance.

    -   \_\_\_\_\_ initial

> \# ls /dumps/pacf
>
> \# /usr/local/dr/**vdmprestore** \\
>
> /dumps/pacf/clone_orabin_acf_pacf.dump.HHMM.DATE.gz /orabin/acf/pacf/
>
> \# /usr/local/dr/**vdmprestore** \\

/dumps/pacf/clone_oracle_acf_pacf.dump.HHMM.DATE.gz /oracle/acf/pacf

4)  Verify ownership.

    -   \_\_\_\_\_ initial

> [Directory]{.underline} [Owner:Group]{.underline}
>
> /oracle/acf/pacf pacf:pacf
>
> /orabin/acf/pacf pacf:pacf

5)  Notify DBAs when restore is complete so they can start the database
    and update the DR web page that the database is available.

    -   \_\_\_\_\_ initial

#### Afpsp (on eos):

1)  Restore vdump files from tape

    -   \_\_\_\_\_ initial

> Request tape "**eos afpspdrbkup**."
>
> \# **/usr/local/dr/vdmprst.scr --d /dev/ntape/tape**\#**\_d1 --s
> afpsp**
>
> Tape 1 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Restores files:
>
> /dumps/afpsp/clone_ora\*\_dfo-afps_afpsp.dump.\*
>
> /backups/afpsp/appl/afpsp.ufiles.tar.gz
>
> **[7/06:]{.underline}** \~30 minutes to complete

2)  Restore user files and other requested files

    -   \_\_\_\_\_ initial

> \# /usr/local/dr/**siduser.dr --x --s** **afpsp**
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.acct_fxafpsp**
>
> **\#** ls --l /usr/users (to verify owner:group are correct)

3)  Run vrestore for /orabin and /oracle backups. The vdmprestore
    command will uncompress the vdump file and then run vrestore. Note
    times restores started/finished.

    -   \_\_\_\_\_ initial

> \# ls /dumps/afpsp
>
> \# /usr/local/dr/**vdmprestore** \\
>
> /dumps/afpsp/clone_oracle_dfo-afps_afpsp.dump.HHMM.DATE.gz
> /oracle/dfo-afps/afpsp/
>
> **[7/06:]{.underline}** \~30 minutes to complete
>
> \# /usr/local/dr/**vdmprestore** \\
>
> /dumps/afpsp/clone_orabin_dfo-afps_afpsp.dump.HHMM.DATE.gz
> /orabin/dfo-afps/afpsp/
>
> 7/06: \~25 minutes to complete

4)  Verify ownership.

    -   \_\_\_\_\_ initial

> [Directory]{.underline} [Owner:Group]{.underline}
>
> /oracle/dfo-afps/afpsp afpsp:afpsp
>
> /orabin/dfo-afps/afpsp afpsp:afpsp

5)  Notify DBAs when restore is complete so they can start the database
    and update the DR web page that the database is available.

    -   \_\_\_\_\_ initial

#### Crispprd (on eos):

1)  Restore vdump files from tape

    -   \_\_\_\_\_ initial

> Request tape "**eos** **crispdrbkup**." This will span to two tapes.
> It will request the second tape
>
> "**eos crispdrbkup2**." Note the times tapes are requested.
>
> \# **/usr/local/dr/vdmprst.scr --d /dev/ntape/tape**\#**\_d1 --s
> crispprd**
>
> Tape 1 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Tape 2 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Restores files:
>
> /dumps/crispprd/clone_ora\*\_oer-commons_crispprd.dump.\*
>
> /backups/crispprd/appl/crispprd.ufiles.tar.gz
>
> **[7/06:]{.underline}** \~1 hours 50 minutes to complete (tape1 - \~1
> hour 10 minutes; tape2 - \~40 minutes)

2)  Restore user files and other requested files

    -   \_\_\_\_\_ initial

> \# /usr/local/dr/**siduser.dr --x --s** **crispprd**
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.acct_fxcrisp**
>
> **\#** ls --l /usr/users (to verify owner:group are correct)

3)  Run vrestore for /orabin and /oracle backups. The vdmprestore
    command will uncompress the vdump file and then run vrestore. Note
    times restores started/finished.

    -   \_\_\_\_\_ initial

> \# ls /dumps/crispprd
>
> \# /usr/local/dr/**vdmprestore** \\

/dumps/crispprd/clone_oracle_oer-commons_crispprd.dump.HHMM.DATE.gz \\

> /oracle/oer-commons/crispprd/
>
> **[7/06:]{.underline}** \~2 hours 10 minutes to complete

-   \_\_\_\_\_ Verify data in *oracle/oer-commons/crispprd*

> \# /usr/local/dr/**vdmprestore** \\

/dumps/crispprd/clone_orabin_oer-commons_crispprd.dump.HHMM.DATE.gz \\

> /orabin/oer-commons/crispprd/
>
> **[7/06:]{.underline}** \~10 minutes to complete

-   \_\_\_\_\_ Verify data in */orabin/oer-commons/crispprd*

4)  Verify ownership.

-   \_\_\_\_\_ initial

> [Directory]{.underline} [Owner:Group]{.underline}
>
> /oracle/oer-commons/crispprd crispprd:crispprd
>
> /orabin/oer-commons/crispprd crispprd:crispprd

5)  Notify DBAs when restore is complete so they can start the database
    and update the DR web page that the database is available.

-   \_\_\_\_\_ initial

#### Nihdirp2 (on eos): 

1)  Restore vdump files from tape

\_\_\_\_\_ initial

> Request tape "**eos nihdrbkup**."
>
> \# **/usr/local/dr/vdmprst.scr --d /dev/ntape/tape**\#**\_d1 --s
> nihdirp2**
>
> Tape 1 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Tape 2 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Restores files:
>
> /dumps/nihdirp2/clone_ora\*\_cit-nihdir_nihdirp2.vdump.\*
>
> /backups/nihdirp2/appl/nihdirp2.ufiles.tar.gz

Verify data */dumps/nihdirp2* and */backups/nihdirp2/appl*

2)  Restore user files and other requested files

\_\_\_\_\_ initial

> \# /usr/local/dr/**siduser.dr --x --s** **nihdirp2**
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.acct_fxnihdirp2**
>
> **\#** ls --l /usr/users (to verify owner:group are correct)

3)  Run vrestore for /orabin and /oracle backups. The vdmprestore
    command will uncompress the vdump file and then run vrestore. Note
    times restores started/finished.

\_\_\_\_\_ initial

> \# ls /dumps/nihdirp2
>
> \# /usr/local/dr/**vdmprestore** \\

/dumps/nihdirp2/clone_oracle_cit-nihdir_nihdirp2.dump.HHMM.DATE.gz \\

> /oracle/cit-nihdir/nihdirp2/

\_\_\_\_\_ Verify data in */oracle/cit-nihdir/nihdirp2*

> \# /usr/local/dr/**vdmprestore** \\

/dumps/nihdirp2/clone_orabin_cit-nihdir_nihdirp2.dump.HHMM.DATE.gz \\

> /orabin/cit-nihdir/nihdirp2

\_\_\_\_\_ Verify data in */orabin/cit-nihdir/nihdirp2*

4)  Verify ownership. of and

\_\_\_\_\_ initial

> Directory Owner:Group
>
> /oracle/cit-nihdir/nihdirp2 nihdirp2:nihdirp2
>
> /orabin/ cit-nihdir/nihdirp2 nihdirp2:nihdirp2

5)  Notify DBAs when restore is complete so they can start the database
    and update the DR web page that the database is available.

#### gmp,gmpub (on eos):

1)  Create filesets.

    -   \_\_\_\_\_ initial

\# **/etc/dr/dr.app_mkfs_gmp**

2)  restore vdump files from tape

    -   \_\_\_\_\_ initial

> request tape "eos gmpdrbkup".
>
> \# **/usr/local/dr/vdmprst.scr --d /dev/ntape/tape**\#**\_d1 --s gmp**
>
> Tape 1 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Tape 2 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Restores files:
>
> /dumps/gmp/\*
>
> /backups/gmp/appl/\*
>
> /dumps/gmpub/\*
>
> /backups/gmpub/appl/\*
>
> **[7/05:]{.underline}** \~2 hours 10 minutes to complete

3)  Restore user files and other requested files

    -   \_\_\_\_\_ initial

> \# /usr/local/dr/siduser.dr --x --s gmp
>
> \# /usr/local/dr/siduser.dr --x --s gmpub
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/**dr.acct_fxgmp**
>
> **\#** ls --l /usr/users (to verify owner:group are correct)

4)  Run vrestore for /orabin /and /oracle backups. Note times restores
    started/finished.

    -   \_\_\_\_\_ initial

> \# /usr/local/dr/vdmprestore \\
>
> /dumps/gmp/clone_oracle_nigms-irmb_gmp.vdump.HHMM.DATE.gz \\
>
> /oracle/nigms-irmb/gmp

-   \_\_\_\_\_ Verify data in */oracle/nigms-irmb/gmp*

> \# /usr/local/dr/vdmprestore \\
>
> /dumps/gmp/clone_orabin_nigms-irmb_gmp.vdump.HHMM.DATE.gz \\
>
> /orabin/nigms-irmb/gmp

-   \_\_\_\_\_ Verify data in */orabin/nigms-irmb/gmp*

> #/ usr/local/dr/vdmprestore \\
>
> /dumps/gmpub/clone_oracle_nigms-irmb_gmpub.vdump.HHMM.DATE.gz \\
>
> /oracle/nigms-irmb/gmpub

-   \_\_\_\_\_ Verify data in */oracle/nigms-irmb/gmpub*

> \# usr/local/dr/vdmprestore \\
>
> /dumps/gmpub/clone_orabin_nigms-irmb_gmpub.vdump.HHMM.DATE.gz \\
>
> /orabin/nigms-irmb/gmpub

-   \_\_\_\_\_ Verify data in */orabin/nigms-irmb/gmpub*

5)  Verify ownership.

    -   \_\_\_\_\_ initial

> [Directory]{.underline} [Owner:Group]{.underline}
>
> /oracle/nigms-irmb/gmp gmp:gmp
>
> /orabin/nigms-irmb/gmp gmp:gmp
>
> /oracle/nigms-irmb/gmpub gmpub:gmpub
>
> /orabin/nigms-irmb/gmpub gmpub:gmpub

6)  Notify DBAs when restore is complete so they can start the database.

    -   \_\_\_\_\_ initial

### General eos

1.  Remove things from /dumps and /backups when databases are restored
    to free up space for exports

2.  Note final "df --k"

3.  Once all databases are ready, or Tuesday am, update D/R web page
    status with onsite NIH D/R coordinator. Suggested text: "DREOS
    available for testing"

4.  Check performance stats during testing; memory, load, swap

> **TIMING NOTES**
>
> =====================================================================
>
> [Instance]{.underline} [siduser.dr]{.underline} [vdmprestore
> times]{.underline} [verify]{.underline} [notify]{.underline}
>
> [Time]{.underline} [orabin]{.underline} [oracle]{.underline}
> [owners]{.underline} [DSB]{.underline}
>
> afpsp \_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_\_ \_\_\_\_\_\_
>
> pacf \_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_\_ \_\_\_\_\_\_
>
> nihdirp2 \_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_\_
> \_\_\_\_\_\_
>
> gmp \_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_\_ \_\_\_\_\_\_
>
> gmpub \_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_\_ \_\_\_\_\_\_
>
> =======================================================================

### drgarnet (application-restore):

Update the DR Web Page Status with the onsite NIH/DR coordinator.
Suggested text: "PMS DR application files are being restored"

Get the name of the tape drive and write the information below on the
white board for reference.

Tape Drives: \_\_\_\_\_\_\_\_\_\_\_\_\_\_

1)  Request tape "**garnet pmsdrbkup**". The backup may span multiple
    tapes, once the first is done, request "garnet pmsdrbkup 2".

    -   \_\_\_\_\_ initial

2)  Restore vdump files from tape (approx 3 hours)

    -   \_\_\_\_\_ initial

> \# /usr/local/dr/**vdmprst.scr --d** **/dev/ntape/tape#\_d1 --s
> pmsprod**

The command above restores the following files:

> /dumps/pmsprod/clone_ora\*\_dpm-pms_pmsprod.dump.\*
>
> /backups/pmsprod/appl/pmsprod.ufiles.tar.gz
>
> **7/06**: \~3 hour 35 minutes to complete (tape1 - \~3 hours; tape2 -
> \~35 minutes)

-   Verify data in */dumps/pmsprod* and */backups/pmsprod/appl*

3)  Run vrestore for /oracle and /orabin backups. (uncompresses vdump
    file, issues vrestore command to restore files to appropriate
    directory.) Note times restores started/finished. (Approx 10 min for
    /orabin directory and 2+ hours for /oracle directory)

-   \_\_\_\_\_ initial

> \# ls /dumps/pmsprod

\# /usr/local/dr/**vdmprestore** \\

/dumps/pmsprod/clone_oracle_dpm-pms_pmsprod.dump.HHMM.DATE.gz \\

> /oracle/dpm-pms/pmsprod/
>
> 7/06: \~1 hour to complete

-   \_\_\_\_\_ Verify data in */oracle/dmp-pms/pmsprod*

\# /usr/local/dr/**vdmprestore** \\

/dumps/pmsprod/clone_orabin_dpm-pms_pmsprod.dump.HHMM.DATE.gz \\

> /orabin/dpm-pms/pmsprod/
>
> 7/06: \~20 minutes to complete

-   \_\_\_\_\_ Verify data in */orabin/dmp-pms/pmsprod*

4)  Check the ACLs on /oracle/dpm-pms/pmsprod/plsql

-   \_\_\_\_\_ initial

> The ACL should be
>
> \# file: /oracle/dpm-pms/pmsprod/plsql
>
> \# owner: pmsbatch
>
> \# group: pmsread
>
> \#
>
> user::rwx
>
> group::\-\--
>
> group:pmsread:r-x
>
> group:pms:rwx
>
> other::\-\--
>
> \# getacl /oracle/dpm-pms/pmsprod/plsql
>
> Fix if not correct -- run /usr/local/dr/setacl.dr
>
> \# /usr/local/dr/setacl.dr

5)  Create the needed /usr/users/ files by running

-   \_\_\_\_\_ initial

> \# **/usr/local/dr/siduser.dr --x --s pmsprod**
>
> Verify owner:group in /usr/users directory
>
> \# ls --l /usr/users
>
> If owner:group are incorrect, run script:
>
> \# /etc/dr/dr.acct_fxgmp
>
> **\#** ls --l /usr/users (to verify owner:group are correct)

6)  Reboot the system.

-   \_\_\_\_\_ initial

7)  Notify DBAs when restore is complete so they can start the database
    and update the DR web page that the database is available.

-   \_\_\_\_\_ initial

**TIMING NOTES**

=========================================================================

Instance ddrestore vdmprestore times verify notify

> time orabin oracle owners DSB

pmsprod \_\_\_\_\_ \_\_\_\_\_\_ \_\_\_\_\_\_\_ \_\_\_\_\_\_\_
\_\_\_\_\_\_

### drlapis (application-restore):

-   \_\_\_\_\_ initial

    1.  The applications need to be restored are on the same tape as the
        system backup tape. List of filesets included on lapis tape (in
        order): /, /usr, /usr/var, /usr/local, /usr/users,
        /backups/OAS/pmspoas, /oramaint/orasoft/OAS/,
        /orabin/dpm-pms/pmspoas

> \# mt --f /dev/ntape/tape0_d1 rewind
>
> \# mt --f /dev/ntape/tape0_d1 fsf 5

Run the following scripts:

\# cd /etc/dr

\# ./**dr.res_oas** tape0_d1

\# ./**dr.res_oramaint** tape0_d1

\# **./dr.res_binoas** tape0_d1

(OR)

Manually type in the restore commands as follows:

> \# cp /etc/dr/scripts/\* /oramaint/scripts
>
> \# cd /backups/OAS/pmspoas
>
> \# **vrestore --vx --o no --f** /dev/ntape/tape0_d1 --D
> /backups/OAS/pmspoas
>
> \# **vrestore --vx --o no --f** /dev/ntape/tape0_d1 --D
> /oramaint/orasoft/OAS
>
> \# **vrestore --vx --o no --f** /dev/ntape/tape0_d1 --D
> /orabin/dpm-pms/pmspoas
>
> **[7/05:]{.underline}** \~3 hours to complete -- it took much longer
> than previous times

2.  Once the files are restored from tape, the /oracle/dpm-pms/pmspoas
    directory needs to be untarred from /backups/OAS/pmspoas

> Run the following scripts:

\# cd /usr/local/dr

\# **./pmsuntar**

(OR)

Manually type in the restore commands as follows:

Determine newest file in /backups/OAS/pmspoas/application directory

\# cd /

\# /usr/local/bin/tar --xzf
/backups/OAS/pmspoas/application/pmspoas.DOW.tar.gz

(with DOW replaced by the appropriate day of the week to indicate the
newest file)

\# mkdir --p /oracle/dpm-pms/pmspoas/Apache/Apache/logs

\*The pmspoas binaries took about an hour to restore from tape. The
others are small and took a few seconds.

3.  Reboot the system after the application restore is completed

4.  Notify the DBAs when restore is complete so they can complete the
    OAS restore and update the DR web page that the OAS is available.

5.  Once all databases are ready, or Tuesday AM, update DR web page
    status with onsite NIH DR coordinator. Suggested text: "DRGARNET and
    DRLAPIS are available for testing".

**TIMING NOTES**

=========================================================================

start end

pmspoas :backups

pmspoas: oramaint

pmspoas: orabin

=========================================================================

### drzinc (application-restore): 

1)  Update DR Web Page status with onsite DR coordinator. Suggested text
    "NBS DR application files are being restored.

    -   \_\_\_\_\_ initial

2)  Note names of tape drives.

    -   \_\_\_\_\_ initial

> Write the information below on the white board for reference.
>
> DAT72: /dev/tape/\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

3)  Start a script session to capture commands/output.

    -   \_\_\_\_\_ initial

4)  Request tape "**zinc nbsdrbkup**" in dat72 drive. This will restore
    data from halite and zinc.

    -   \_\_\_\_\_ initial

> Run **/usr/local/dr/vdmprst.scr** to get the data off the tape.
>
> \# **/usr/local/dr/vdmprst.scr --d /dev/ntape/tape**\#**\_d1 --s
> g816prod**
>
> This will restore:

-   /oraappl/od-nbs/backups/drcold/

-   /oraappl/od-nbs/backups/drhot/

-   /backups/g816prod/appl

> Tape 1 Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_
>
> Verify ownership and permissions of backup files. They should be owned
> by the application ID/name.

5)  Restore non /usr/users files needed for g816prod that aren't
    restored using other methods. (Or could restore
    /oraappl/od-nbs/staging/dbarep from TSM)

    -   \_\_\_\_\_ initial

> \# **/usr/local/dr/siduser.dr --x --s g816prod**

6)  Restore any user files from systems other than zinc that were
    needed. Files should get restored from tape to /backups that will
    have a tar of user specific files needed.

    -   \_\_\_\_\_ initial

> Run:
>
> \% sudo /usr/local/dr/siduser.dr --x --s iappprod
>
> \% sudo /usr/local/dr/siduser.dr --x --s igelprod

7)  Reboot the system

    -   \_\_\_\_\_ initial

8)  Let NBS know when the files have been restored

    -   \_\_\_\_\_ initial

## Manual Instructions

### Network Setup

Manually modify the following files:

\# ifconfig --a (to get network interface)

\# cd /**var/root/etc**

-   **[sysconfigtab]{.underline}**

> \# vi sysconfigtab (Update swap device, e.g.
> swapdevice=/dev/disk/dsk0b)

-   **[motd]{.underline}**

> \# cp /etc/dr/system_files/motd.dr motd

-   **[fstab]{.underline}**

> \# cp /etc/dr/system_files/fstab.dr fstab
>
> \# vi fstab
>
> Verify the domain name and mount point for the boot disk.
>
> Verify tmp domain is defined.
>
> Verify no other mount point beside the boot disk.

-   **[hosts]{.underline}**

> \# cp /etc/dr/system_files/hosts.dr hosts
>
> \# vi hosts
>
> Verify hostname and IP
>
> (e.g. 165.112.213.240 dreos.cit.nih.gov dreos)

-   **[rc.config]{.underline}**

> \# cp /etc/dr/system_files/rc.config.dr rc.config
>
> \# vi rc.config
>
> **[eos:]{.underline}**
>
> HOSTNAME="dreos.cit.nih.gov"
>
> NUM_NETCONFIG="1"
>
> NETDEV_0="tu2"
>
> NETDEV_1=""
>
> IFCONFIG_0="165.112.213.240 netmask 255.255.255.224"
>
> IFCONFIG_1=""
>
> GATED="no"
>
> [Original rc.config on eos]{.underline}
>
> HOSTNAME="eos.nih.gov"
>
> NUM_NETCONFIG="1"
>
> NR_DEVICES="1"
>
> NRDEV_0="nr0"
>
> NRCONFIG_0="tu2,tu3"
>
> IFCONFIG_0="128.231.56.102 netmask 255.255.254.0"
>
> GATED="no"
>
> **[lapis:]{.underline}**
>
> HOSTNAME="drlapis.cit.nih.gov"
>
> NUM_NETCONFIG="1"
>
> NETDEV_0="tu0"
>
> NETDEV_1=""
>
> IFCONFIG_0="128.231.164.3 netmask 255.255.255.248"
>
> IFCONFIG_1=""
>
> GATED="no"

**[garnet:]{.underline}**

> HOSTNAME="drgarnet.cit.nih.gov"
>
> NUM_NETCONFIG="1"
>
> NETDEV_0="tu0"
>
> NETDEV_1=""
>
> IFCONFIG_0="128.231.164.11 netmask 255.255.255.248"
>
> IFCONFIG_1=""
>
> GATED="no"

**[zinc:]{.underline}**

> HOSTNAME="drzinc.cit.nih.gov"
>
> NUM_NETCONFIG="1"
>
> NETDEV_0="tu2"
>
> NETDEV_1=""
>
> IFCONFIG_0="128.231.164.19 netmask 255.255.255.248"
>
> NRDEV_0=""
>
> NRDEV_0=""
>
> NRCONFIG=""
>
> NR_DEVICES=""
>
> GATED="no"
>
> \# grep NR rc.config (verify all netrain devices are removed -- eos &
> copper)
>
> \# grep CONFIG rc.config (verify network configurations)

-   **[routes]{.underline}**

> \# cp /etc/dr/system_files/routes.dr routes
>
> \# vi routes
>
> Verify "defaut 165.112.213.225" for *dreos*
>
> Verify "defaut 128.231.164.9" for *drgarnet*
>
> Verify "defaut 128.231.164.1" for *drlapis*
>
> Verify "defaut 128.231.164.17" for *drzinc*

-   **[inet.local]{.underline}**

> \# vi inet.local (**[drzinc]{.underline}** only)
>
> Change network interface (e.g. "/usr/sbin/lan_config --i tu2 --a 0 --s
> 100 --x 1")

### Start/Stop rc Scripts

Manually disable start/stop scripts as follows:

#### dreos

> /var/root/sbin/rc0.d

-   Disable: K01conndir, K01spongcl, K02oracle_ora, K03listctl

> /var/root/sbin/rc0.d

-   Disable: S40sendmail, S96class, S99conndir, S99spong2, S99spongcl,
    S99swatch

#### drlapis:

> /var/root/sbin/rc0.d

-   Disable: K01spongcl, K02oasctl

> /var/root/sbin/rc3.d

-   Disable: S92swatch, S98oasctl, S99spong2, S99spongcl

#### drgarnet:

> /var/root/sbin/rc0.d

-   Disable: K01conndir, K01spongcl, K02oracle_ora

> /var/root/sbin/rc3.d

-   Disable: S99conndir, S99spong2, S99spongcl, S99swatch

#### drzinc:

> /var/root/sbin/rc0.d

-   Disable: K01conndir, K01spongcl

> /var/root/sbin/rc3.d

-   Disable: S99spong2, S99spongcl, S99swatch

### Boot Disk Configuration

Manually create file domains and filesets for the boot disk as follows:

\# mkfdmn /dev/disk/dsk0**d** usr_dom

\# mkfset usr_dom usr

\# mkfdmn /dev/disk/dsk0**e** var_dom

\# mkfset var_dom var

\# mkfdmn /dev/disk/dsk0**f** tmp_dom

\# mkfset tmp_dom tmp

\# mkfdmn /dev/disk/dsk0**g** local_dom

\# mkfset local_dom local

\# mkdir /var/usr

\# mount usr_dom#usr /var/usr

\# mkdir /var/**var** /var/**usr/local**

\# mount var_dom#var /var/var

\# mount local_dom#local /var/usr/local

**[Dreos/drlapis/drzinc:]{.underline}** (only)

\# mkfdmn /dev/disk/dsk0h home_dom

\# mkfset home_dom home

**[drlapis/drzinc:]{.underline}** (only)

\# mdkir /var/**usr/users**

\# mount home_dom#home /var/usr/users

**[dreos:]{.underline}** (only)

\# mdkir /var/**home**

\# mount home_dom#home /var/home

### Fdmns Links setup

Manually setup the fdmns links as follows:

[Remove old fdmns links]{.underline}

\# cd /var/root/**etc/fdmns**

\# rm --fr /var/root/etc/fdmns/\*

[Create new directory]{.underline}

\# mkdir **root_dom usr_dom var_dom tmp_dom local_dom**

**[dreaos/drlapis/drzinc:]{.underline}** (only)

\# mkdir **root_dom usr_dom var_dom tmp_dom local_dom home_dom**

[Create new directory]{.underline}

\# cd root_dom

\# ln --s /dev/disk/dsk0**a**

\# cd ../ var_dom

\# ln --s /dev/disk/dsk0**e**

\# cd ../tmp_dom

\# ln --s /dev/disk/dsk0**f**

\# cd ../local_dom

\# ln --s /dev/disk/dsk0**g**

**[Dreos/drlapis/drzinc:]{.underline}** (only)

\# cd ..

\# mkdir home_dom

\# cd home_dom

\# ln --s /dev/disk/dsk0**h**

### Connect:Direct Setup

Manually modify the following files:

1)  Install the DR license file (**license.key**)

> \% cd /usr/opt/conn_dir/ndm/cfg/\[copper\|eos\|drgarnet\].ndm
>
> \% cp /etc/dr/conn_dir/license.key.dr **license.key**

2)  Modify netmap.cfg

> \% vi **netmap.cfg**
>
> local.node:
>
> **:tcp.api**=\[drzinc\|dreos\|drgarnet\].cit.nih.gov
>
> \[zinc\|eos\].ndm
>
> **:comm.info**=\[drzinc\|dreos\|drgarnet\].cit.nih.gov
>
> Copper: **(only)**
>
> Add **nih.std.ndm** node (see netmap.cfg file for example of a node
> configuration)
>
> **:comm.info**=165.112.213.229 (drtn3270.titan.nih.gov)

3)  Modify ndmapi.cfg

> \# cd /usr/opt/conn_dir/ndm/cfg/cliapi
>
> \# vi **ndmapi.cfg**
>
> api.parms:\\
>
> **:tcp.hostname**=\[drcopper\|dreos\|drgarnet\].cit.nih.gov\]:\\

### Gather system logs

Gather system logs and copy it over to eosrnde.

\% cd /etc/dr

\% sudo ./**dr.collectlogs** \<path\>

(e.g. dr.collectlogs /usr/users --or- where space available)

\% cd \<path\>

(e.g. cd /usr/users)

\% scp \<hostname\>\_\<mon\>\<yr\>.tar eosrnde:\<path\>

> Where \<hostname\> = *drzinc*, *dreos*, *drgarnet*, *drlapis*)

(e.g. scp drcopper_Jul05.tar eosrnde:/usr/local/drlogs)

# HP-UX

Last Modified: 4/16/07

## Network Information

**drracer.cit.nih.gov** 128.231.164.35

default router 128.231.164.33

netmask 255.255.255.248

racer.cit.nih.gov 128.231.92.142

## Screen Commands

(start session as root so someone else can pick it up if needed)

\% screen start screen session

\% screen --ls list the screen sessions

CTRL-a d detach screen

\% screen --r attach screen

\% screen --r pid.tty.hostname attach specific screen session (if you
have more than one open)

## Set terminal type to vt100

CTRL -- b

GSP\> he li

GSP\> ca (to set terminal type to vt100)

GSP\> co (return to console mode)

## Restore from make_recovery tape

At the HP console Main Menu

\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-- Main Menu
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--

Command Description

\-\-\-\-\-\-- \-\-\-\-\-\-\-\-\-\--

BOot \[PRI\|ALT\|\<path\>\] Boot from specified path

PAth \[PRI\|ALT\|\<path\>\] Display or Modify a path

SEArch \[Display\|IPL\] \[\<path\>\] Search for boot device

COnfiguration menu Displays or sets boot values

INformation menu Displays hardware information

SERvice menu Displays service commands

Help \[\<menu\>\|\<command\>\] Displays help for menu or cmd

RESET Restart the system

\-\-\-\-\-\-\-\-\-\-\--

Main Menu: Enter command or menu \> **sea** (to search for tape device)

Path Number Device Path (dec) Device Type

\-\-\-\-\-\-\-\-\-\-- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--
\-\-\-\-\-\-\-\-\-\--

P0 10/0/6 Random Access Media

P1 10/0/5 Random Access Media

\...

Main Menu: Enter Command or menu \> **boot p1**

(p1 is the path to make_recovery tape drive)

Interact with IPL (y, n, or cancel)?\> **n**

At the **Welcome the HP-UX installation/recovery process!** screen

> \[ [I]{.underline}nstall HP UX \]
>
> \[ [R]{.underline}un a Recovery Shell \]
>
> \[ [A]{.underline}dvanced Options \]

Select \[ Advanced Options \]

At the **Advanced Options** screen

> \[ Show System Info \]
>
> \[ Edit (vi) config file \]
>
> \[ Edit (vi) environment vars \]
>
> \[ \* \] Enable use of DHCP for network defaults
>
> \[ \^H \] Erase Character
>
> \[ 0 \] Debug Level

Disable use of DHCP by pressing the spacebar key to toggle the Enable
and Disable

Select \[ [O]{.underline}K \] to get back to HP-UX installation/recovery
screen.

At the **Welcome to the HP-UNX installation/recovery process!** screen

> \[ [I]{.underline}nstall HP UX \]
>
> \[ [R]{.underline}un a Recovery Shell \]
>
> \[ [A]{.underline}dvanced Options \]

Select \[Install HP UX\]

At the **User Interface and Media Options** screen

Source Location Options:

\[ \* \] [M]{.underline}edia only installation

\[ \] Media with [N]{.underline}etwork enabled (allow use of SD depots)

\[ \] [I]{.underline}gnite-UX server based installation

User Interface Options:

\[ \] [G]{.underline}uided Installation (recommended for basic installs)

\[ \* \] [A]{.underline}dvanced Installation (recommended for disk and
file system management)

\[ \] No [u]{.underline}ser interface -- use all the defaults and go

Set [M]{.underline}edia only installation for Source Location Options
(as shown above)

Set Advanced Installation for User Interface Options (as shown above)

Select \[ [O]{.underline}K \] to continue

At **/opt/ignite/bin/rtool()** screen

/\-\-\-\-\-\-\-\-\-\-\--\\/\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--\\/\-\-\-\-\-\-\-\-\-\-\-\-\-\--\\/\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--\\/\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--\\

\| Basic \|\| Software \|\| System \|\| File System \|\| Advanced \|

Select **Basic**

> Change \[ [R]{.underline}oot Disk\... \] to the desired boot disk
>
> Change \[ Root S[w]{.underline}ap (MB)\... \] to the desired size

Select **System**

> Change **hostname** to drracer.cit.nih.gov
>
> Change **IP address** to 128.231.164.35
>
> Change **Subnet Mask** to 255.255.255.248

Set Root password

[See the attached "Reference Section" to verify network information
above.]{.mark}

Select **File System**

> Change partition sizes as needed
>
> (11/12/02 -- keep the original partition sizes)

Select \[Go!\] to start the tape recovery.

\...

Archive extraction from tape is beginning. Please wait.

(11/12/02 - at this point, it took about an hour and 25 minutes to
complete)

After the tape recovery is completed, it returns to the "HP console Main
Menu."

Main Menu: Enter command or menu \> bo pri (to boot up the system)

(11/12/02 -- it took about 40 minutes to boot)

When the machine comes up, login drracer and do the following:

-   Review the log file (/etc/rc.log) for errors.

-   Type **bdf** to verify file systems created on drracer are correct
    ([see the attached bdf output of racer]{.mark}).

-   Add the default router.

> \% sudo vi **/etc/rc.config.d/netconf**
>
> Set ROUTE_GATEWAY=128.231.164.33
>
> \% netstat --nr
>
> \% ifconfig lan0
>
> \% sudo route add default 128.231.164.33 1
>
> \% sudo ifconfig lan0 up

-   Ping out to verify network interface lan0 is up.

-   To check to see if lan card is set to 100 full duplex run : lanadmin
    --x lan0

-   To set the lan card to 100 full duplex run (this automatically means
    auto negociation is off:

> lanadmin --X FD100 lan0

-   If the network connection is not set to 100 Mbs full duplex, then
    set the Network Card configuration to 100 Full duplex, this is how
    to do it in sam.

> \% sudo **sam**
>
> Select "Networking and Communications"
>
> Select "Network Interface Cards"
>
> Select "Actions" and "Modify"
>
> Set Autoneg: **OFF**
>
> Set Speed (million bps): **100**
>
> Set Duplex Mode: **FULL**
>
> Select OK to save
>
> Exit sam

-   Verify drracer entry in /etc/hosts file.

> 128.231.164.35 drracer.cit.nih.gov drracer

-   Remove --a flag from /etc/inetd.conf

> \% sudo vi /etc/inetd.conf
>
> Search ftp entry
>
> ftp stream tcp nowait root /usr/local/etc/tcp ftpd --oil -**a**
>
> Remove "-a" at the end of ftp
>
> [Restart inetd]{.underline}
>
> \% sudo --HUP inet

## Prepare for Application Restores

1)  Create physical volumes if necessary

-   \_\_\_\_\_ initial

> \# ioscan -funC disk \> ioscan.out
>
> edit ioscan.out, leaving a list of only UNCLAIMED raw devices
>
> (/dev/rdsk/c#t#d#)
>
> run pvcreate -f for all items in the list
>
> \# for x in \`cat ioscan.out.mod\`
>
> do
>
> pvcreate -f \$x
>
> done

2)  Create a new volume group for application restore (in this step you
    can choose to create several volume groups. the number of volume
    groups will be determined by the size of each disk.)

-   \_\_\_\_\_ initial

> The format of the command that will be used to create the new volume
> group or vg is:
>
> /usr/sbin/vgcreate \[-f\] \[-A autobackup\] \[-x extensibility\] \[-e
> max_pe\]
>
> \[-l max_lv\] \[-p max_pv\] \[-s pe_size\] \[-g pvg_name\] vg_name
>
> pv_path \...
>
> The pv_path are the disk paths that will be used in the vg. Use the
> disks from ioscan.out.mod to find out what size the disks you will use
> to create a new vg are. The disk size will help approximate what pe
> size and max pv you will need. Use the name of each disk to see what
> size the disks are by running the below for loop.
>
> \# for x in \`cat ioscan.out.mod\`
>
> do
>
> diskinfo \$x \>\> /tmp/dsize
>
> done
>
> Edit the /tmp/dsize file to look at the disk sizes, most likely the
> disks will be all one size. As an example disks of 35GB will be used
> though the document.
>
> The size of the disk is a consideration in creating a vg as there are
> hard limits set by the logical volume manager per volume group. The
> major factor is usually the hard limit set on maximum physical extents
> a volume group is allowed to have. A physical extent is basically a
> chunk of disk
>
> in megabytes that the volume manager of the OS logically divides the
> disk in at vg creation.
>
> For instance if the physical extent or PE is left at 4MB which is the
> default on a 35GB disk that means each disk can have a maximum of 8750
> PEs. The hard limit of PEs per entire volume group that is allowed is
> 65535, so that means that if the PE is left at 4MB there can be only
> up to seven 35GB disks allocated to a volume group if all the disks
> are 35GB. Otherwise another disk would push the limit of the PE beyond
> 65535 and this is not allowed by the OS. (65535 / 8750 = 7.49)
>
> So you can pick a small PE as long as you have a small set of disks
> per volume group or another option is to have a larger PE size which
> will allow more disks in the vg.
>
> For example picking a larger PE of size 32MB per 35GB disk would yield
> a PE max of number of 1093 PEs per disk. This would mean that it would
> take about 59 35GB disks to reach the 65535 limit of max PEs per
> volume group. (65535 / 1093 = 59.95).
>
> The next step is to place the command in a script to run later. Edit a
> file called vgcrt.scr and place each of the disk device paths from
> ioscan.out.mod but modify the dev path with "rdsk" where "dsk" is
> listed. Then add the vgcreate and it's options just before the list of
> disk paths in the script. The script should look something like this
> the sizes will change depending on your disk sizes and your choice of
> PE per disk:
>
> vgcreate --e \<max pe or 65535\> -max_lv \<number of logical volumes
> to be assigned to this vg\> --p \<number of maximum disks per vg\> -s
> \<PE size\> \<vg name\> \<disk names from ioscan.out.mod\>
>
> Assuming that each disk is 35GB:
>
> \>view vgcreate.src
>
> vgcreate --e 65535 --max_lv 100 --p 50 --s 32 vg04 /dev/rdsk/c5t0d0
> /dev/dsk/c5t1d0 /dev/rdsk/c5t2d0 /dev/dsk/c5t3d0 /dev/rdsk/c5t4d0
> /dev/dsk/c5t5d0 /dev/rdsk/c5t6d0 /dev/dsk/c5t7d0 /dev/rdsk/c5t8d0
> /dev/dsk/c5t9d0 /dev/rdsk/c5t10d0 /dev/dsk/c5t11d0
>
> Save the vgcreate.scr and change it's permissions so it's executable.
>
> Remove any reference to existing logical volume
>
> \# rm -rf /dev/vg04 - this is to remove reference to old vg04
>
> Create new volume group
>
> \# mkdir /dev/vg04
>
> \# cd /dev/vg04
>
> \# grep group /dev/\*/group - Look at the 0x000000 pattern numbers
> listed and choose a unique number not listed for the next step
>
> \# mknod group c 64 0x040000 - make sure number is unique
>
> \# ./vgcreate.scr

3)  Create logical volumes for **/u01** to **/u17**, **/opt/psoft8**,
    **/opt/app/oracle** and **/backups**:

-   \_\_\_\_\_ initial

> (Modify /etc/dr/dr.makelv to change volume group to vg04)
>
> Execute the script /**etc/dr/dr.makelv**
>
> \% sudo /etc/dr/dr.makelv vg04
>
> OR manually create the logical volumes:
>
> [Create logical volume /**u01** to /**u17**]{.underline}
>
> \% sudo /usr/sbin/lvcreate --L 10240 vg04
>
> \% sudo /usr/sbin/newfs --F vxfs --o largefiles /dev/vg04/rlvol1
>
> \% sudo /usr/bin/mount /dev/vg04/lvol1 /u01
>
> Repeat the commands above (lvcreate, newfs and mount) to create
> logical volumes from 1 through 17 (lvol1, lvol2, \... lvol17).
> Remember to use --o largefiles option.
>
> [Create logical volume for /**opt/psoft8** and /**opt/app/oracle** and
> /**backups**/]{.underline}
>
> \% sudo mkdir --p /opt/psoft8 /opt/app/oracle /backups
>
> \% sudo /usr/sbin/lvcreate --L 15000 vg04
>
> \% sudo /usr/sbin/newfs --F vxfs --o largefiles /dev/vg04/rlvol18
>
> \% sudo /usr/sbin/mount /dev/vg04/lvol16 /opt/psoft8
>
> \% sudo /usr/sbin/lvcreate --L 4000 vg04
>
> \% sudo /usr/sbin/newfs --F vxfs --o largefiles /dev/vg01/rlvol19
>
> \% sudo /usr/sbin/mount /dev/vg04/lvol17 /opt/app/oracle
>
> \% sudo /usr/sbin/lvcreate --L 1000 vg04
>
> \% sudo /usr/sbin/newfs --F vxfs --o largefiles /dev/vg01/rlvol20
>
> \% sudo /usr/sbin/mount /dev/vg04/lvol18 /backups

4)  Create directories under the mount points.

-   \_\_\_\_\_ initial

> Execute the script /**etc/dr/dr.makedir**
>
> OR manually create the directories:
>
> /u01/oradata/EHRPPRD
>
> /u02/oradata/EHRPPRD
>
> /u03/oradata/EHRPPRD
>
> /u04/oradata/EHRPPRD
>
> /u05/oradata/EHRPPRD
>
> /u06/oradata/EHRPPRD
>
> /u07/oradata/EHRPPRD
>
> /u08/oradata/EHRPPRD
>
> /u09/oradata/EHRPPRD
>
> /u10/oradata/EHRPPRD
>
> /u11/oradata/EHRPPRD
>
> /u12/oradata/EHRPPRD
>
> /u13/oradata/EHRPPRD
>
> /u14oradata/EHRPPRD
>
> /u14/oradata/EHRPPRD
>
> /u15/oradata/EHRPPRD
>
> /u16/oradata/EHRPPRD
>
> /u17/oradata/EHRPPRD
>
> /opt/psoft8
>
> /opt/app/oracle
>
> /backups/oradata/drtest

5)  Modify the **/etc/fstab** as needed.

-   \_\_\_\_\_ initial

6)  Unlock and reset password for account psoft8

-   \_\_\_\_\_ initial

> \% sudo /usr/lbin/modprpw --k psoft8

7)  Add drracer to **/etc/hosts.allow**: allow drracer to ftp to itself
    (emulating cobra to viper)

> Uncomment from /etc/hosts.allow, lines after "ENTRIES FOR DR TESTING"

-   \_\_\_\_\_ initial

8)  Comment out tsm restart (dsm.runchk) from **cron**

-   \_\_\_\_\_ initial

9)  Modify **dsm.sys**.

-   \_\_\_\_\_ initial

> \% cd /opt/tivoli/tsm/client/ba/bin
>
> \% sudo vi dsm.sys
>
> Change **Nodename** from racer to drracer in the stanza(s) for the TSM
> server that will be used. If the production TSM server at NIH is used,
> the "aixtsm" stanza needs to be changed. If TSM has been restored
> offsite, then the "dr" stanza needs to be changed.

10) Modify **/etc/sudoers** -- uncomment lines at end for psoft8

-   \_\_\_\_\_ initial

> PSC ALL=/pt/psoft8/pt819/start_WebLogic.sh
>
> psoft8 ALL=/pt/psoft8/pt819/start_WebLogic.sh
>
> OR add psoft8 to PSC group in sudoers file and add or uncomment the
> line:
>
> PSC ALL=/pt/psoft8/pt819/start_WebLogic.sh

11) Notify Adrienne that the system is up and ready for application
    restores.

-   \_\_\_\_\_ initial

## Restore Customer Applications

1)  Start a script session to document any commands run.

-   \_\_\_\_\_ initial

2)  Restore /opt/app/oracle and /backups/drtest from tape. Ask for tape
    "racer sysbackup.app".

-   \_\_\_\_\_ initial

> Run the script "/usr/local/dr/apprestore" to restore the directories
> /opt/app/oracle and /backups/oradata/drtest. Make sure you use the
> non-rewinding tape designation. (i.e. /dev/rmt/0mn)
>
> \# /usr/local/dr/apprestore --d DEV
>
> OR manually restore as follows:
>
> \# mt --f DEV rewind

\# cd /opt/app/oracle

> \# vxrestore --f DEV--vx
>
> Vxfs vxrestore warning: ./lost+found: File exists
>
> Vxfs vxrestore: you have not read any tapes yet.
>
> Unless you know which volume your file(s) are on you should start with
> the last volume and work towards the first
>
> Specify next volume #: 1
>
> \# cd /backups
>
> \# vxrestore --f DEV --vx ./oradata/drtest
>
> Restore times:
>
> Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_

3)  Restore /opt/psoft8 from cobra. Ask for tape "cobra cobra.app". This
    is a DLT tape so it will be mounted in a different drive from the
    racer tapes.

-   \_\_\_\_\_ initial

\# mt --f DEV rewind

\# cd /opt/psoft8

\# vxrestore --f DEV

Specify next volume \# : 1

Set owner mode for . ? \[yn\] y

> Restore times:
>
> Start:\_\_\_\_\_\_\_\_\_\_\_ End: \_\_\_\_\_\_\_\_\_\_\_

4)  Update the DR web page and notify EHRP when restore is complete

-   \_\_\_\_\_ initial

## Command Syntax References

A.  vgcreate(1M)

NAME

> vgcreate - create LVM volume group

SYNOPSIS

> /usr/sbin/vgcreate \[-f\] \[-A autobackup\] \[-x extensibility\] \[-e
> max_pe\]
>
> \[-l max_lv\] \[-p max_pv\] \[-s pe_size\] \[-g pvg_name\] vg_name
> pv_path \...

DESCRIPTION

> The vgcreate command creates a new volume group. vg_name is a symbolic
> name for the volume group and must be used in all references to it.
> vg_name is the path to a directory entry under /dev which must contain
> a character special file named group. Except for the group entry, the
> directory vg_name should be empty. The vg_name directory and the group
> file have to be created by the user (see lvm(7)).
>
> vgcreate leaves the volume group in an active state.
>
> Before assigning a physical volume to a volume group, the physical
> volume has to be created using the pvcreate command (see
> pvcreate(1M)).
>
> If vgcreate fails to install the first specified physical volume into
> the volume group, the volume group is not created. If, for any reason,
> one of the remaining specified physical volumes cannot be installed
> into the volume group, an error message is printed, but the
> installation continues until the end of the list of physical volumes.
>
> Options and Arguments
>
> vgcreate recognizes the following options and arguments:

  ------------- ---------------------------------------------------------
  pv_path       The block device path name of a physical volume that will
                be assigned to the new volume group. You can specify
                physical volume links (pv-links) for a physical volume
                providing different paths that reference the same
                physical volume in the pv_path list. The order in which
                the paths are listed is important. The first path becomes
                the primary link to the physical volume, the second
                becomes an alternate link to the physical volume. The
                primary link is the default path used to access the
                physical volume. If the primary link becomes unavailable,
                LVM automatically switches to the alternate link to
                access the physical volume. Currently LVM supports a
                maximum of 8 paths to a physical volume (7 alternate and
                one primary).

  ------------- ---------------------------------------------------------

  ------------- ---------------------------------------------------------
  vg_name       The path name of a subdirectory of the /dev directory.
                vg_name must be empty except for a character special file
                named group. Typically, this directory name is in the
                form /dev/vgNN, where NN numbers sequentially from 00.

  ------------- ---------------------------------------------------------

  ------------- ------------ ------------------------------------------------------
  -A autobackup Set          
                automatic    
                backup for   
                this         
                invocation   
                of this      
                command.     
                autobackup   
                can have one 
                of the       
                following    
                values:      

                             

                y            Automatically back up configuration changes made to
                             the volume group. This is the default

                             

                             After this command executes, the vgcfgbackup command
                             (see vgcfgbackup (1M)) is executed for the volume
                             group.

                             

                n            Do not back up configuration changes this time.
  ------------- ------------ ------------------------------------------------------

  ------------- ---------------------------------------------------------
  -e max_pe     Set the maximum number of physical extents that can be
                allocated from any of the physical volumes in the volume
                group. The default value for max_pe is 1016. However, if
                the size of any physical volume exceeds 1016 times the
                pe_size, the default value for max_pe is adjusted to
                match the physical volume size. The maximum number of
                physical extents can be a value in the range 1 to 65535.

  ------------- ---------------------------------------------------------

  ------------ ----------------------------------------------------------
  -f           This option will force a volume group to be created with a
               physical volume which has alternate block(s) already
               allocated, (i.e. this physical volume was not initialized
               using pvcreate -f.) This option should be used with
               extreme caution. If the volume group to be created has a
               different physical extent size, the alternate block(s)
               might be inside the user data area. Potential data
               corruption could occur.

  ------------ ----------------------------------------------------------

+------------+---------------------------------------------------------+
| -g         | Create a new physical volume group with the name        |
| pvg_name   | pvg_name. All physical volumes specified in the pv_path |
|            | parameter become a member of the newly created physical |
|            | volume group.                                           |
+------------+---------------------------------------------------------+
|            |                                                         |
+------------+---------------------------------------------------------+
|            | The physical volume group information is stored in an   |
|            | ASCII file, /etc/lvmpvg. The file can be edited to      |
|            | create a physical volume group instead of using the     |
|            | vgcreate command. However, ensure that the physical     |
|            | volumes to be used have already been installed in the   |
|            | volume group prior to creating the physical volume      |
|            | group.                                                  |
+------------+---------------------------------------------------------+
|            |                                                         |
+------------+---------------------------------------------------------+
|            | The physical volume group name must be unique within a  |
|            | volume group although identical                         |
|            |                                                         |
|            | physical volume group names can appear in different     |
|            | volume groups (see lvmpvg(4) for format details).       |
+------------+---------------------------------------------------------+

  ------------- ---------------------------------------------------------
  -l max_lv     Set the maximum number of logical volumes that the volume
                group is allowed to contain. The default value for max_lv
                is 255. The maximum number of logical volumes can be a
                value in the range 1 to 255.

  ------------- ---------------------------------------------------------

  ------------- ---------------------------------------------------------
  -p max_pv     Set the maximum number of physical volumes that the
                volume group is allowed to contain. The default value for
                max_pv is 16. The maximum number of physical volumes can
                be a value in the range 1 to 255.

  ------------- ---------------------------------------------------------

  ------------- ---------------------------------------------------------
  -s pe_size    Sets the number of megabytes in each physical extent,
                where pe_size is expressed in units of megabytes (MB) in
                the range 1 to 256. pe_size must be equal to a power of 2
                (1, 2, 4, 8, etc.). The default value for pe_size is 4
                (four megabytes).

  ------------- ---------------------------------------------------------

  --------------- --------------- ------------------------------------------------------
  -x              Set the         
  extensibility   allocation      
                  permission for  
                  adding physical 
                  extents on the  
                  physical        
                  volumes         
                  specified by    
                  the pv_path     
                  parameter.      
                  extensibility   
                  can have one of 
                  the following   
                  values:         

                                  

                  y               Allow allocation of additional physical extents on the
                                  physical volume. This is the default.

                                  

                  n               Prohibit allocation of additional physical extents on
                                  the physical volume. Logical volumes residing on the
                                  physical volume can still be accessed after the volume
                                  group has been activated by the vgchange -a y command.
  --------------- --------------- ------------------------------------------------------

EXTERNAL INFLUENCES

Environment Variables

> LANG determines the language in which messages are displayed.
>
> If LANG is not specified or is null, it defaults to \"C\" (see
> lang(5)).
>
> If any internationalization variable contains an invalid setting, all
> internationalization variables default to \"C\" (see environ(5)).

EXAMPLES

> Create a volume group named /dev/vg00 containing two physical volumes
> with extent size set to 2 MB, from scratch.
>
> First, create the directory /dev/vg00 with the character special file
> called group.
>
> mkdir /dev/vg00
>
> mknod /dev/vg00/group c 64 0x030000
>
> The minor number for the group file should be unique among all the
> volume groups on the system. It has the format 0xNN0000, where NN runs
> from 00 to 09. The maximum value of NN is controlled by the kernel
> tunable parameter maxvgs.
>
> Initialize the disks using pvcreate(1M).
>
> pvcreate /dev/rdsk/c1t0d0
>
> pvcreate /dev/rdsk/c1t2d0
>
> Create the volume group.
>
> vgcreate -s 2 /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c1t2d0
>
> Create a volume group named /dev/vg01 that can contain a maximum of
> three logical volumes, with extent size set to 8 MB:
>
> vgcreate -l 3 -s 8 /dev/vg01 /dev/dsk/c3t4d0
>
> Create a volume group named /dev/vg00 and a physical volume group
> named PVG0 with two physical volumes:
>
> vgcreate -g PVG0 /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
>
> Using the PVLinks feature to create a volume group named /dev/vg00
> with a physical volume which can be referenced by two different paths.
> /dev/dsk/c3t0d0 and /dev/dsk/c4t0d0 refer to the same physical volume,
> accessed via different controller hardware paths. In this example,
> /dev/dsk/c3t0d0 becomes the primary link to the physical volume.
> /dev/dsk/c4t0d0 becomes an alternate link to the physical volume.
>
> vgcreate /dev/vg00 /dev/dsk/c3t0d0 /dev/dsk/c4t0d0

WARNINGS

> It is not possible to create a volume group that contains both HP-IB
> devices and devices using another type of interface.

B.  Extending a jfs filesystem on-line

> Fsadm --F vxfs --b \<entire new size of filesystem in MB = current
> size + increase\>M \<mountpoint\>

[Example:]{.underline}

Fsadm --F vxfs --b 4000M /u01

## Gather system logs

Gather system logs and copy it over to eosrnde.

\% cd /etc/drsun

\% sudo **./dr.collectlogs** \<path\>

> (e.g. dr.collectlogs /home --or- where space available)

\% cd \<path\>

> (e.g. cd /home)

\% scp drracer\_\<mon\>\<yr\>.tar eosrnde:\<path\>

> (e.g. scp drracer_Jul05.tar eosrnde:/usr/local/drlogs)

# Solaris

Last Modified: 7/10/07

## Network Information

**drdanica.cit.nih.gov** 128.231.164.20

**drandretti.cit.nih.gov** 128.231.164.21

default router 128.231.164.17

netmask 255.255.255.248

**drandromeda.cit.nih.gov** 128.231.164.27

default router 128.231.164.25

netmask 255.255.255.248

**drcorvus.cit.nih.gov** 165.112.213.238

**drpuppis.cit.nih.gov** 165.112.213.239

**drafpsp.cit.nih.gov** 165.112.213.242

default router 165.112.213.225

netmask 255.255.255.224

**drweb1.cit.nih.gov** 137.187.22.118

**drcrisp.cit.nih.gov** 137.187.22.126 (virtual host of drweb1)

default router 137.187.22.65

netmask 255.255.255.192

## Screen Commands

\% screen start screen session

\% screen --ls list the screen sessions

CTRL-a d detach screen

\% screen --r attach screen

\% screen --r pid.tty.hostname attach specific screen session (if you
have more than one open)

## Define console

Local\> prompt

Type show serv

Type connect wdpcm1

Username: ccs

Password: ccs

Type ccon \<conn_name\>

The point-of-contact of SUN servers will tell you the connection name
and network interface to use for each system. Write the information
below on the white board for reference.

> Connection Network Interface

drdanica (V880) \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

drandretti (280R) \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

drandromeda (E420R) \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

drcorvus (280R) \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

drafpsp (UE 5000) \_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_

(drweb1)

\*\* **drafpsp is part of drweb1; drweb1 is being restored at NIH \*\***

**\*\* drandretti is drpuppis; the system was borrowed from ERA
\*\*Build system**

## Build the System

The **drsun** image directory is saved in /usr/local/drsun on eosrnde.

Skip this section if the system is being built at NIH.

Check and initial after each step is completed.

1)  Logon as root.

-   \_\_\_\_\_ initial

2)  Untar tar file 'drsun.tar'.

-   \_\_\_\_\_ initial

> Ask to have the CD "**DRSUN V2.1**" put in the CDROM drive.
>
> Find a directory with the most space to untar the tar files for
> srcripts, patches, and java..
>
> [Untar *drsun.tar*]{.underline}
>
> \# cd \<*path*\>
>
> \# tar xf /cdrom/cdrom0/**drsun.tar**
>
> \# cd \<*path*\>/drsun
>
> \# tar xf **SunOS.tar**
>
> [Untar *patches.tar*]{.underline}
>
> \# cd \<*path*\>
>
> \# tar xf /cdrom/cdrom0/**patches.tar**
>
> [Untar *Java.tar*]{.underline}
>
> \# cd \<*path*\>
>
> \# tar xf /cdrom/cdrom0/**Java.tar**
>
> **[drandromeda]{.underline}: (only)**
>
> Because drandromeda does not have DVD drive, you need to put in a
> total of 3 CDs to retrieve all the tar files.
>
> Find a directory with the most space to untar the tar files for
> srcripts, patches, and java.
>
> Ask to have the CD "**drsun 7**/07" put in the CDROM drive.
>
> [Untar *drsun.tar*]{.underline}
>
> \# cd \<*path*\>
>
> \# tar xf /cdrom/cdrom0/**drsun.tar**
>
> \# cd \<*path*\>/drsun
>
> \# tar xf **SunOS.tar**
>
> Ask to have the CD "**patches 7/07**" put in the CDROM drive.
>
> [Untar *patches.tar*]{.underline}
>
> \# cd \<*path*\>
>
> \# tar xf /cdrom/cdrom0/**patches.tar**
>
> Ask to have the CD "**Java 7/07**" put in the CDROM drive.
>
> [Untar *Java.tar*]{.underline}
>
> \# cd \<*path*\>
>
> \# tar xf /cdrom/cdrom0/**Java.tar**

3)  Add oracle settings to /etc/system file.

-   \_\_\_\_\_ initial

> **[drdanica]{.underline}: (only)**

\# cd \<path\>/drsun/*drdanica*

\# **./dr.os_system**

4)  Install patches.

-   \_\_\_\_\_ initial

> \# cd \<*path*\>/patches

\# cd 5.9

\# unzip 9_Recommended.zip

\# cd 9_Recommended

\# **./install_cluster**

\# tar xf Misc_patches.tar

\# cd Misc_patches

\# **./installpatches.ksh**

5)  Reboot the system.

-   \_\_\_\_\_ initial

\# init 6

6)  Verify the network is up.

-   \_\_\_\_\_ initial

> \% ping *eosrnde*
>
> If the network is not up, then do the following:

a)  Copy the network files to the system

> \# cd \<*path*\>/drsun
>
> \# **./dr.os_netfiles** \<*hostname*\>
>
> Where \<*hostname*\> = *drandromeda, drandretti, drdanica, drcorvus,
> drafpsp*
>
> (Notes: you must run the script above from the *drsun* directory)
>
> OR manually modify the following files in */etc* directory:
> *resolv.conf*, *nsswitch.conf*, *hosts*, *defaultrouter*, and
> *netmasks*.

b)  Bring up the network interface

> \# ifconfig --a (to get the network interface)
>
> \# cd \<*hostname\>*
>
> Where \<*hostname*\> = *drandromeda, drandretti, drdanica, drcorvus,
> drafpsp*
>
> \# **./dr.os_netup**
>
> (OR) manually bring up the network interface:
>
> \# ifconfig --a
>
> \# route add default \<*default router*\> **1**

\# ifconfig \<*network interface*\> down

\# ifconfig \<*network interface*\> inet \<*IP*\> netmask \<*netmask
ip*\>

\# ifconfig \<*network interface*\> up

Reboot the system if the network is not up.

7)  Check system date.

-   \_\_\_\_\_ initial

> \# date
>
> If the time zone is other than **EST** or **EDT**, then it need to be
> changed.
>
> \# vi /etc/TIMEZONE
>
> Change "TZ=US/Central" to "TZ=US/Eastern"
>
> The system needs a reboot for the change to take effect, but do not
> reboot the system at this time. The system will get rebooted after the
> patches are installed.

8)  Install software packages.

-   \_\_\_\_\_ initial

> Shutdown sshd daemon that comes with Solaris 9

\# pkill sshd

[Run script below to install software packages]{.underline}:

\# cd \<*path* \>/drsun

\# **./dr.os_pkgadd**

> OR manually install the software packages in **Sol5.9_pkgs**:

-   Verify */usr/local/sbin/sshd* is running (ps --ef \| grep sshd)

9)  Get location of home directory.

-   \_\_\_\_\_ initial

> Find the location of home directory. It can be a separate partition or
> part of another partition depending the system setup.
>
> \% df --k
>
> \% ls */home /export/home*
>
> If ***/home*** directory is used as the home directory, do the
> following:
>
> \% sudo vi /etc/auto_master
>
> Comment out the */home* entry in this file
>
> \% sudo /etc/init.d/autofs stop
>
> \% sudo /etc/init.d/autofs start
>
> \% sudo chmod 755 /home

10) Run mini-admin setup.

-   \_\_\_\_\_ initial

\# cd \<path\>/drsun

\# ls SunOS (to verify SunOS directory is untar)

\# **./dr.os_admsetup** \<*hostname*\>

Where \<*hostname*\> = *drandromeda, drandretti, drdanica, drcorvus,
drafpsp*

> The script above copies customized files such as hosts.allow, sudoers,
> ntp.conf, pam.conf, etc.

11) Create admin accounts.

-   \_\_\_\_\_ initial

> \# cd \<*path*\>/drsun
>
> \# df --k
>
> Get the home directory path
>
> [Create admin accounts]{.underline}:
>
> \# **./dr.os_admaccts** \<*home_directory*\>
>
> (e.g. dr.os_admaccts /export/home)
>
> [Setup admin accounts]{.underline} (creates .forward and copy
> .profiles/.cshrc files)
>
> \# cd SunOS
>
> \# ./**setup_admin_accts**

12) Create dba accounts.

-   \_\_\_\_\_ initial

> **[drafpsp, drweb1 (@NIH)]{.underline}: (only)**

\# cd \<*path*\>/drsun/**\<hostname\>**

> Where /**\<hostname\>** = **drafpsp, drweb1**
>
> \# df --k
>
> Get the home directory path
>
> \# **./dr.app_accts** \<home_directory\>
>
> (e.g. dr.app_accts /export/home)

13) Install Java.

> **[drdanica, drandretti]{.underline}: (only)**

-   \_\_\_\_\_ initial

[Install Java 1.3.1_19 and make it as the default]{.underline}

\# cd /usr

\# tar xf \<*path\>*/Java/**java1.3.1_19.tar**

\# mv java java.orig

\# ln --s java1.3.1_19 java

**[drdanica]{.underline}: (only)**

[Install Java 1.4.2_08]{.underline}

\# cd /usr

\# tar xf \<*path*\>/Java/**jdk.tar**

**[drandretti]{.underline}: (only)**

[Install Java 1.4.2_10]{.underline}

\# cd /usr

\# tar xf \<*path*\>/Java/**java1.4.2_10.tar**

> **[drandromeda, drafpsp, drweb1 (@NIH)]{.underline}:**

-   \_\_\_\_\_ initial

[Install Java 1.5.0_11 and make it as the default]{.underline}

\# cd /usr

\# tar xf \<*path\>*/Java/**java1.5.0_11.tar**

\# mv java java.orig

\# ln --s java1.5.0_11 java

14) Install X11R6

-   \_\_\_\_\_ initial

> **[drdanica, drandretti, drcorvus, drafpsp, drweb1 (@
> NIH)]{.underline}:**

\# cd \<*path\>*/drsun

\# ./**dr.os_installX11**

Verify xvfb is running

\# ps --ef \| grep --i xvfb

You should see "/usr/X11R6/bin/Xvfb :1" process running

## Prepare for Application Restores

Use *Veritas* file system for ***drbiffle** and **drpenske***.

Use *Sun Volume Management* for ***drandromeda***, ***drcorvus***, and
***drafpsp***

1)  Create accounts

-   \_\_\_\_\_ initial

\# cd \<*path*\>/drsun/**\<hostname\>**

> Where /**\<hostname\>** = **drandromeda, drandretti, drdanica,
> drcorvus, drafpsp**
>
> \# df --k
>
> Get the home directory path
>
> \# **./dr.app_accts** \<home_directory\>
>
> (e.g. dr.app_accts /export/home)

2)  Install Veritas

-   \_\_\_\_\_ initial

**[drandretti, drdanica]{.underline}: (only)**

This step only applies to **drandretti** and **drdanica.**

-   Install Veritas software by following the document "**Veritas
    Storage Foundation for Oracle installation**"

> Request the following CDs mounted in the following order:
>
> **SF V4.1 Disk 01**
>
> **SF V4.1 Disk 02**
>
> **SF V4.1 Disk 03**

-   Install Veritas temporary license

> Temporary license for 7/07 test:
>
> **RJPG-NPCZ-H7MH-VL4I-HSFT-ONCC-O6** for **drandretti** and
> **drdanica**

3)  Create *Veritas* disk group.

-   \_\_\_\_\_ initial

This step is for **drandretti** and **drdanica** only.

Before you begin, verify the following directories are in your path:

> **/opt/VRTS/bin:/opt/VRTSob/bin:/usr/lib/vxvm/bin**

**[Veritas commands]{.underline}**

\# **vxdisk list --o alldgs list** (List all disks including deported
disk groups)

\# **vxprint --g** \<grpname\> (List logical volumes and internal group
names)

\# **vxprint --g** \<grpname\> \| grep \^v (List logical volumes)

\# **vxassist --g** \<grpname\> maxsize (List current available size of
a disk group)

\# **vxassist --g** \<grpname\> **help space** \\

\| **grep "Disk:"** (List all free space of a disk group)

\# **vxresize --g** \<grpname\> \<volname\> \\

\[50m \| +50m \| -50m \] (Set 50mb \| add by 50mb \| shrink by 50mb

> **[drandretti]{.underline}: (7/07)**
>
> Application main directory : **/oraappl/od-nbs/staging/dbaproj**
>
> Disk size requirement : 100 MB
>
> Application main directory : **/oraappl/od-nbs/a159prod**
>
> Disk size requirement : 40 GB
>
> Application main directory : **/oraappl/od-nbs/s380prod**
>
> Disk size requirement : 15 GB
>
> Application main directory : **/oraappl/od-nbs/m551prod**
>
> Disk size requirement : 5 GB
>
> Application main directory : **/oraappl/od-nbs/backups**
>
> Disk size requirement : 50 GB
>
> The space requirement for **/var/opt/oracle** directory is small
> enough that it going to be part of the boot disk.
>
> [Format the disk]{.underline}
>
> \% sudo format
>
> (Label all the disks you need for \~150GB space requirement)
>
> [Initialize the disk]{.underline}
>
> \% sudo /opt/VRTS/bin/**vxdiskadm**
>
> Select an operation to perform: **1**
>
> (type 1 to select "*Add or initialize one or more disks*")
>
> Type in the disk pattern type **list** to see the list of disks;
>
> Add the disk the disk group "**drandretti_dg**"
>
> (OR) create the disk group using *vxdg* command
>
> \% sudo **vxdg init** drandretti_dg \<disk_device1\>
>
> \% sudo **vxdg --g** drandretti_dg **adddisk** \<disk_device2\>
> \<disk_device3\> ...
>
> [NOTES]{.underline}: Make sure you name the disk group
> "**drandretti_dg**" or the script that create volumes will not work.
>
> [Verify the disks are intiaized and disk group is created]{.underline}
>
> \% **vxdisk list --o alldgs list**
>
> **[drdanica]{.underline}: (7/07)**
>
> Application main directory : **/oraappl/od-nbs/staging/dbaproj**
>
> Disk size requirement : 100 MB
>
> Application main directory : **/oraappl/od-nbs/a159prod**
>
> Disk size requirement : 500 GB
>
> Application main directory : **/oraappl/od-nbs/s380prod**
>
> Disk size requirement : 40 GB
>
> Application main directory : **/oraappl/od-nbs/c500prod**
>
> Disk size requirement : 30 GB
>
> Application main directory : **/oraappl/od-nbs/backups**
>
> Disk size requirement : 300 GB
>
> The space requirement for **/var/opt/oracle** directory is small
> enough that it going to be part of the boot disk.
>
> [Format the disk]{.underline}
>
> \% sudo format
>
> (Label all the disks you need for \~900GB space requirement)
>
> [Initialize the disk]{.underline}
>
> \% sudo /opt/VRTS/bin/**vxdiskadm**
>
> Select an operation to perform: **1**
>
> (type 1 to select "*Add or initialize one or more disks*")
>
> Type in the disk pattern type **list** to see the list of disks;
>
> Add the disk the disk group "**drdanica_dg**"
>
> (OR) create the disk group using *vxdg* command
>
> \% sudo **vxdg init** drdanica_dg \<disk_device1\>
>
> \% sudo **vxdg --g** drdanica_dg **adddisk** \<disk_device2\>
> \<disk_device3\> ...
>
> [NOTES]{.underline}: Make sure you name the disk group
> "**drdanica_dg**" or the script that create volumes will not work.
>
> [Verify the disks are intiaized and disk group is created]{.underline}
>
> \% **vxdisk list --o alldgs list**

4)  Create *Veritas* volumes.

-   \_\_\_\_\_ initial

> This step is for **drandretti** and **drdanica** only.
>
> **[drandretti]{.underline}: (7/07)**
>
> \# cd \<path\>/drsun
>
> \# cd *drandretti*
>
> \# **./dr.app_vols**
>
> The script creates the following volumes:
>
> a159prod, s380prod, m551prod, staging, backups
>
> **[drdanica]{.underline}: (7/07)**
>
> \# cd \<path\>/drsun
>
> \# d *drdanica*
>
> \# **./dr.app_vols**
>
> The script creates the following volumes:
>
> a159prod, s380prod, c500prod, staging, backups

5)  Prepare the disk for application directories.

-   \_\_\_\_\_ initial

> This step is for **drandromeda**, **drcorvus** and **drafpsp** only.
>
> Use the instructions below to create the application directories:

-   Run **format** to determine the sizes of the available disks.

-   Pick a disk for [each]{.underline} directory that is large enough
    for the data restore.

-   Pick a partition number 3,4,5,6 or 7 for the application directory

-   Write down the file system for each application directory.

-   Remember to type **label** at the main format menu to save the
    changes.

-   Run **newfs** and **fsck** on the new partitioned disks

> [Example]{.underline}:
>
> \# newfs /dev/dsk/c0t8d0s**4**
>
> \# fsck /dev/dsk/c0t8d0s**4**
>
> [Notes:]{.underline} If the disk requirement size is larger than the
> size of the disk, then you need to concatenate the disks. See
> "Concatenate disks using SVM" section below for instructions.
>
> **[drandromeda]{.underline}: (7/07)**
>
> Application main directory : **/oraappl/od-nbs/w133prod**
>
> Disk size requirement : 500 MB
>
> **[drcorvus]{.underline}: (7/07)**
>
> Application main directory : **/opt/oracle**
>
> Disk size requirement : 25 GB
>
> File system : \_\_\_\_\_\_\_\_\_\_
>
> Application main directory : **/oracle/apps**
>
> Disk size requirement : 3 GB
>
> File system : \_\_\_\_\_\_\_\_\_\_
>
> **[drafpsp]{.underline}: (7/07) -- afpsp only**
>
> Application main directory : **/oramount**
>
> size requirement : 12 GB
>
> Disk File system : \_\_\_\_\_\_\_\_\_\_
>
> Application main directory : **/backups**
>
> Disk size requirement : 5 GB
>
> File system : \_\_\_\_\_\_\_\_\_\_

**[drweb1]{.underline} (restore @ NIH) -- restore afpsp and crispias**

> Application main directory : **/oramount**
>
> size requirement : 20 GB
>
> Disk File system : \_\_\_\_\_\_\_\_\_\_
>
> Application main directory : **/backups**
>
> Disk size requirement : 5 GB
>
> File system : \_\_\_\_\_\_\_\_\_\_
>
> Application main directory : **/apps**
>
> Disk size requirement : 5 GB
>
> File system : \_\_\_\_\_\_\_\_\_\_
>
> ***[Concatenate disks using SVM]{.underline}***
>
> The procedures below are for disk concatenation.
>
> **\*\*\* Skip this section if the disks are large enough for
> application data \*\*\***
>
> [Example]{.underline}: If an individual disk size is 8GB and the total
> required disk size is 30GB, then 4 disks need to be concatenated.
>
> Create the meta database
>
> \# metadb --i
>
> \# metadb --a --c3 --f c0t1d0s7
>
> (substitute the controller, target# and slice# for meta database
> accordingly)
>
> Concatenate the disk
>
> \# metainit d20 **4** 1 c0t2d0s2 1 c0t3d0s2 1 c0t4d0s2 1 c0t5d0s2
>
> \# vi /etc/vfstab
>
> Add "/dev/md/dsk/d20 /dev/md/rdsk/d20 /apps ufs 2 yes --"
>
> \% mkdir /apps
>
> \% sudo mount /apps
>
> \% sudo growfs **--M** /apps /dev/md/rdsk/**d20**

6)  Create application directories and mount the file systems.

> [NOTES]{.underline}: Make sure to 'cd' to the host director before
> running *dr.app_dirs* script.
>
> **[drandretti]{.underline}:**

-   \_\_\_\_\_ initial

> \# cd \<*path*\>/drsun/*drandretti*
>
> \# ./**dr.app_dirs**
>
> The script do the following:

A.  creates and mount the application directories

B.  updates /etc/vfstab file

C.  untar */var/opt/oracle* directory

D.  untar */oraappl/od-nbs/staging/dbaproj*

> **[drdanica]{.underline}:**

-   \_\_\_\_\_ initial

> \# cd \<*path*\>/drsun/*drdanica*
>
> \# ./**dr.app_dirs**
>
> The script do the following:

A.  creates and mount the application directories

B.  updates /etc/vfstab file

C.  untar */var/opt/oracle* directory

D.  untar */oraappl/od-nbs/staging/dbaproj*

> **[drandromeda]{.underline}:**

-   \_\_\_\_\_ initial

```{=html}
<!-- -->
```
-   Create application root directory.

> \# mkdir --p /oraappl/od-nbs
>
> \# chmod 755 /oraappl/od-nbs
>
> \# vi /etc/vfstab
>
> Add the disk device for the following directory:
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /oraappl/od-nbs ufs 2 yes logging

-   Verify permission of /oraappl directory is 755 before mounting

> \# mount /oraappl/od-nbs

-   Create application directory.

> \# cd \<*path*\>/drsun/**drandromeda**
>
> \# ./**dr.app_dirs**
>
> The script:
>
> creates /oraappl/od-nbs/w133prod directory
>
> changes owner on /oraappl/od-nbs/w133prod directory
>
> **[drcorvus]{.underline}:**

-   \_\_\_\_\_ initial

```{=html}
<!-- -->
```
-   Create application root directories.

> \# mkdir --p /opt/oracle
>
> \# mkdir --p /oracle/apps
>
> \# chmod 755 /opt/oracle /oracle/apps
>
> \# vi /etc/vfstab
>
> Add the disk device for the following directory:
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /opt/oracle ufs 2 yes logging
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /oracle/apps ufs 2 yes logging

-   Verify permission of /opt/oracle and /oracle/apps directories are
    755 before mounting

> \# mount /opt/oracle
>
> \# mount /oracle/apps

-   Create application directories

> \# cd \<*path*\>/drsun/**drcorvus**
>
> \# ./**dr.app_dirs**
>
> The script:
>
> creates /apps/oracle/apps/swlib directory
>
> changes owner on /opt/oracle directory
>
> **[drafpsp]{.underline}: - restore afpsp only**

-   \_\_\_\_\_ initial

```{=html}
<!-- -->
```
-   Create application root directories

> \# mkdir /oramount
>
> \# mkdir /backups
>
> \# chmod 755 /oramount /backups
>
> \# vi /etc/vfstab
>
> Add the disk device for the following directories:
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /oramount ufs 2 yes logging
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /backups ufs 2 yes logging

-   Verify permission of /oramount and /backups directories are 755
    before mounting

> \# mount /oramount
>
> \# mount /backups

-   Create application directories

> \# cd \<*path*\>/drsun/**drafpsp**
>
> \# ./**dr.app_dirs**
>
> The script:
>
> creates /oramount/oramaint/\[orasoft_polaris,others_polaris\]
> directory
>
> creates /oramount/orabin/dfo-afps/afpspoas directory
>
> creates /oramount/oracle/dfo-afps/afpspoas directory
>
> creates /backups/OAS/afpsppoas directory
>
> untar /usr/local/oracle, /var/opt/oracle, /oramount/oramaint/scripts
>
> link /oramount/orabin to /orabin
>
> link /oramount/oracle to /oracle
>
> **[drweb1]{.underline}: (restore @ NIH) -- restore afpsp & crispias**

-   \_\_\_\_\_ initial

> Three common directories on polaris and pisces: /usr/local/oracle,
> /var/opt/oracle, /oramount/oramaint/scripts -- these directories
> should be restored from polaris.

-   Create application root directories

> \# mkdir /oramount
>
> \# mkdir /backups
>
> \# mkdir /apps
>
> \# chmod 755 /oramount /backups /apps
>
> \# vi /etc/vfstab
>
> Add the disk device for the following directories:
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /oramount ufs 2 yes logging
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /backups ufs 2 yes logging
>
> /dev/dsk/cxtxdxsx /dev/rdsk/cxtxdxdx /apps ufs 2 yes logging

-   Verify permission of /oramount, /backups and /apps directories are
    755 before mounting

> \# mount /oramount
>
> \# mount /backups
>
> \# mount /apps

-   Create application directories

> \# cd \<*path*\>/drsun/**drweb1**
>
> \# ./**dr.app_dirs**
>
> The script:
>
> creates /oramount/oramaint/\[orasoft_polaris,other_polaris\] directory
>
> creates /oramount/orabin/dfo-afps/afpspoas directory
>
> creates /oramount/oracle/dfo-afps/afpspoas directory
>
> creates /backups/OAS/afpsppoas directory
>
> untar /usr/local/oracle, /var/opt/oracle, /oramount/oramaint/scripts
>
> creates /oramount/oramaint/\[orasoft_pisces,others_pisces\] directory
>
> creates /oramount/orabin/oer-commons/crispias directory
>
> creates /oramount/oracle/oer-commons/crispias directory
>
> link /oramount/orabin to /orabin
>
> link /oramount/oracle to /oracle
>
> NOTES: The script restores /usr/local/oracle, /var/opt/oracle,
> /oramount/oramaint/scripts from ***polaris***.
>
> The directories /usr/local/oracle, /var/opt/oracle can also restored
> from TSM or from tape.
>
> Restore from tape - /var/opt/oracle
>
> \# mt rewind
>
> Set tape into position:
>
> \# mt --f /dev/rmt/0hn fsf 2
>
> \# cd /var
>
> \# ufsrestore xf /dev/rmt/0hn ./opt/oracle
>
> Restore from tape - /usr/local/oracle
>
> \# mt rewind
>
> Se tape into position:
>
> \# mt --f /dev/rmt/0hn fsf 1
>
> \# cd /usr
>
> \# ufsrestore xf /dev/rmt/0hn ./local/oracle

-   Create virtual host drcrisp.cit.nih.gov.

> \# cd \<*path*\>/drsun/drweb1
>
> \# ifconfig --a (to get the network interface)
>
> \# **./dr.app_vhostnih**
>
> The script enable virtual host of *drcrisp.cit.nih.gov*
>
> Verify the virtual hosts are up:
>
> \# ping *drcrisp*
>
> **[drpuppis]{.underline}: (not for 7/07)**

-   \_\_\_\_\_ initial

```{=html}
<!-- -->
```
-   Create application root directories

> \# mkdir --p /opt/oracle
>
> \# chmod 755 /opt/oracle
>
> \# vi /etc/vfstab
>
> Add the disk device for the following directory:
>
> /opt/oracle

-   Verify permission of /opt/oracle directory is 755

> \# mount /opt/oracle
>
> \# mkdir /opt/oracle/product

7)  Update */etc/hosts.allow* file.

-   \_\_\_\_\_ initial

> **[drandromeda, drandretti, drdanica, drcorvus,
> drafpsp]{.underline}:**
>
> \% sudo /etc/*hosts.allow*
>
> Do the following:

-   Update sshdfwd-X11 to point the correct address

-   Go to the bottom of the file, uncomment all the **sshd:** entries
    under **DR 7/07** section (if exits)

    8.  Update */etc/sudoers* file.

> **[drandretti, drdanica]{.underline}: (only)**
>
> \% sudo visudo
>
> Go to the bottom of the file and uncomment all the entries under **DR
> 7/07** section

9)  Notify Adrienne that the system up and ready for application
    restores.

-   \_\_\_\_\_ initial

## Application Restores

Use ***ufsrestore*** for ufs file system restore and ***vxrestore*** for
*Veritas* file system restore. Two systems that has *Vertitas* file
systems are *drandretti* and *drdanica*.

To list files on a backup tape:

\# ufsrestore/vxrestore --ivf /dev/rmt/0hn

### drandretti (application restore)

drandretti backup tape will contain:

?

1)  Restore data from tape to /oraappl directory.

-   \_\_\_\_\_ initial

> Ask for tape 'D/R DRANDRETTI 1" to be mounted (first of two).
>
> [Notes]{.underline}: Use *ufsrestore* for the first part of the
> restore and *vxrestore* for the second part of the restore.
>
> \# mt --f /dev/rmt/0 rewind
>
> \# cd /
>
> \# ufsrestore x /dev/rmt/0hn (to get the file list back;
> /var/tmp/dmpfile.a159dru3)
>
> specify next volume #:" **1**
>
> set owner/mode for '.'? \[yn\] **n**
>
> \# vxrestore --x /dev/rmt/0hn (will ask for multiple tapes; the dialog
> was similar to:)
>
> specify next volume #:" **1**
>
> set owner/mode for '.'? \[yn\] **n**

2)  change ownership of restored files to nbsproj:oappdba

-   \_\_\_\_\_ initial

\# chown nbsproj:oappdba /oraappl/od-nbs/backups/drcold/\*

3)  Inform NBS that *drandretti* is restored.

-   \_\_\_\_\_ initial

### drdanica (application restore)

1)  Drdanica dr backup tape will contain:

?

2)  Restore data from tape to /oraappl directory.

-   \_\_\_\_\_ initial

> Ask for tape 'D/R DANICA 1" to be mounted (one of one)
>
> \# mt --f /dev/rmt/0 rewind
>
> \# cd /
>
> \# ufsrestore x /dev/rmt/0hn (to get the file list back;
> /var/tmp/dmpfile.s380dru3)
>
> specify next volume #:" **1**
>
> set owner/mode for '.'? \[yn\] **n**
>
> \# vxrestore --x /dev/rmt/0hn (will ask for multiple tapes; the dialog
> was similar to:)
>
> specify next volume #:" **1**
>
> set owner/mode for '.'? \[yn\] **n**

a.  d/\*

    3.  Change ownership of restored files to nbsproj:oappdba/

-   \_\_\_\_\_ initial

\# chown nbsproj:oappdba /oraappl/od-nbs/backups/drcold/\*

3.  Inform NBS that *drdanica* is restored.

-   \_\_\_\_\_ initial

### drandromeda (application restore)

Andromeda backup tape will contain:

> / (root) /usr /var /home
>
> /oraappl/od-nbs/backups

1)  Restore data from tape to /oraappl directory.

-   \_\_\_\_\_ initial

> Ask for tape drandromeda or 'andromeda sysbackup' to be mounted
>
> \# mt --f /dev/rmt/0 rewind
>
> \# mt --f /dev/rmt/0hn fsf **4**
>
> \# cd /oraappl/
>
> \# ufsrestore x /dev/rmt/0hn
>
> specify next volume #:" **1**
>
> set owner/mode for '.'? \[yn\] **n**
>
> OR run mt --f /dev/rmt/0 rewind; ufsrestore xfs /dev/rmt/0hn **4**

2)  Restore w133prod profile and other special files. These are found in
    a tar file in /backups/w133prod

-   \_\_\_\_\_ initial

> \# mt --f /dev/rmt/0 rewind
>
> \# cd /
>
> \# ufsrestore -ivf /dev/rmt/0hn
>
> Pick ***/backups/w133prod*** to restore
>
> specify next volume #:" **1**
>
> set owner/mode for '.'? \[yn\] **n**
>
> Untar the restored gzip files
>
> \# gtar --xvf /backups/w133prod/appl/w133prod.ufiles.tar.gz

3)  Inform NBS that drandromeda is restored.

-   \_\_\_\_\_ initial

### drcorvus (application-restore) 

Corvus sysbackup tape will contain:

> / (root) /usr /var /home /usr/local
>
> /oracle/apps/swlib/9ias.90201
>
> /oracle/apps/swlib/9ias.9023.patch

1)  Restore needed home directories: These files should be restored from
    the DR CD. If that isn't available for some reason, the TSM or the
    sysbackup tape can be used.

-   \_\_\_\_\_ initial

> The following files are needed:
>
> /home/eraadmin/.profile
>
> /home/eraadmin/.profilereports
>
> /home/eraadmin/.9023prd_eracommons
>
> /home/eraadmin/VNC/
>
> /home/fitzgers/.profile
>
> /home mendusch/.profile
>
> Verify that the file is there and if not restore from TSM or from
> corvus sysbackup tape.
>
> TSM: sudo dsmc restore /home/eraadmin/VNC/
>
> Tape: Ask for tape "corvus sysbackup" to be [Mount tape]{.underline}
>
> \# mt --f /dev/rmt/0 rewind
>
> \# mt --f /dev/rmt/0hn fsf 4
>
> \# cd /usr/local
>
> \# ufsrestore xf /dev/rmt/0hn ./dr \[takes approx 5-10 min\]
>
> \# /usr/local/dr/siduser.dr --x --s eraadmin --d /usr/local/dr

2)  Restore data.

-   \_\_\_\_\_ initial

> Restore the following files:
>
> /oracle/apps/swlib/9ias.90201 (sysbackup) \[\~40 min\]
>
> /oracle/apps/swlib/9ias.9023.patch (sysbackup)
>
> If the tape "**corvus sysbackup**" is already mounted and was used for
> the prior step, it is positioned correctly for the next set of
> restores.
>
> If the tape "corvus sysbackup" was not used for the prior step, ask
> for tape "corvus sysbackup" to be mounted and issue the next 2 "mt"
> commands to set tape into position:
>
> \# mt --f /dev/rmt/0 rewind
>
> \# mt --f /dev/rmt/0hn fsf **4**
>
> Restore data from "corvus sysbackup":
>
> \# cd /oracle/apps
>
> (12/06; needed to do "chown eraadmin:eraadmin /oracle")
>
> \# ufsrestore xf /dev/rmt/0hn (for /oracle/apps/swlib/9ias.90201)
>
> \# ufsrestore xf /dev/rmt/0hn (for /oracle/apps/swlib/9ias.9023.patch)
>
> (could also use "# ufsrestore if /dev/rmt/0hn" to restore files.)
>
> [To restore files from TSM:]{.underline}
>
> \# mkdir --p /oracle/apps/swlib
>
> \# dsmc restore --virtualnode=corvus.cit.nih.gov
> /oracle/apps/swlib/9ias.9023.patch

### drafpsp (application restore)

Note: the directories below are already restored from CDs
(/usr/local/drsun) in *step 6* of ***Prepare for Application
Restores***.

*/var/opt/oracle*

*/usr/local/oracle*

*/oramount/oramaint/scripts*

These directories are pulled from *polaris*.

***drafpsp* (polaris) -**

*polaris backup* tape will contain:

/ (*root*) /usr /var /home

/oramount/oracle

/oramount/orabin/dfo-afps/afpspoas

> /oramount/oramaint/orasoft_polaris
>
> /oramount/oramaint/others_polaris
>
> /backups/OAS/afpspoas

1)  Restore afpsp

Restore from tape - request tape 'polaris sysbackup' unless it was used
in a prior step

-   \_\_\_\_\_ initial

> \# mt rewind
>
> Set tape into position:
>
> \# mt --f /dev/rmt/0hn fsf 4
>
> \# cd **/oramount**
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oracle)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/orabin/dfo-afps/afpspoas)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oramaint/orasoft_polaris)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oramaint/others_polaris)
>
> \# cd **/backups**
>
> \# ufsrestore xf /dev/rmt/0hn (For / backups/OAS/afpspoas)
>
> (OR) -- Restore from TSM
>
> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/orabin/dfo-afps/afpspoas/**

> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/oracle/dfo-afps/afpspoas/**

> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/oramaint/orasoft_polaris/**

> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/oramaint/others_polaris/**

> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov
> **/backups/IAS/afpspoas**

### drweb1 (application restore)

> Note: the directories below are already restored from CDs
> (/usr/local/drsun) in *step 6* of ***Prepare for Application
> Restores***. These directories are pulled from *polaris* and they
> override the same directories existing on *pisces*.

*/var/opt/oracle*

*/usr/local/oracle*

*/oramount/oramaint/scripts*

#### Drafpsp (polaris)

polaris backup tape will contain:

> / (root) /usr /var /home
>
> /oramount/oracle
>
> /oramount/orabin/dfo-afps/afpspoas
>
> /oramount/oramaint/orasoft_polaris
>
> /oramount/oramaint/others_polaris /backups/OAS/afpspoas

1)  Restore afpsp.

-   \_\_\_\_\_ initial

> Restore from tape - request tape 'polaris sysbackup' unless it was
> used in a prior step
>
> \# mt rewind
>
> Set tape into position:
>
> \# mt --f /dev/rmt/0hn fsf 4
>
> \# cd /**oramount**
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oracle)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/orabin/dfo-afps/afpspoas)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oramaint/orasoft_polaris)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oramaint/others_polaris)
>
> \# cd /**backups**
>
> \# ufsrestore xf /dev/rmt/0hn (For / backups/OAS/afpspoas)
>
> (OR) -- Restore from TSM

\# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/orabin/dfo-afps/afpspoas/**

\# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/oracle/dfo-afps/afpspoas/**

\# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/oramaint/orasoft_polaris/**

\# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov

**/oramount/oramaint/others_polaris/**

\# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov
**/backups/IAS/afpspoas**

#### drcrisp (pisces)

pisces backup tape will contain:

> / (root) /usr /var /usr/local /home
>
> /opt /apps/web

pisces appdrbkup tape will contain:

> /oramount/oramaint/orasoft_pisces
>
> /oramount/oramaint/others_pisces
>
> /backups/crispias/jweb

1)  Restore crisp.

-   \_\_\_\_\_ initial

Restore from tape - request for tape 'pisces sysbackup' to be put in the
system

> \# mt --f /dev/rmt/0hn rewind
>
> \# cd **/oramount**
>
> \# ufsrestore xf /dev/rmt/0hn (For
> /oramount/orabin/oer-commons/crispias)
>
> \# ufsrestore xf /dev/rmt/0hn (For
> /oramount/oracle/oer-commons/criispias)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oramaint/orasoft_pisces)
>
> \# ufsrestore xf /dev/rmt/0hn (For /oramount/oramaint/others_pisces)
>
> \# cd **/apps**
>
> \# ufsrestore xf /dev/rmt/0hn (For /apps/web/N-crisp)
>
> (OR) -- Restore from TSM
>
> \# /usr/bin/dsmc restore --virtualnode=pisces.cit.nih.gov
>
> **/oramount/orabin/oer-commons/crispias/**
>
> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov
>
> **/oramount/oracle/oer-comons/crispias/**
>
> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov
>
> **/oramount/oramaint/orasoft_pisces/**
>
> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov
>
> **/oramount/oramaint/others_pisces/**
>
> \# /usr/bin/dsmc restore --virtualnode=polaris.cit.nih.gov
> **/apps/web/N-crisp**Gather system logs

## Gather system logs and copy it over to eosrnde.

Gather system logs and copy it over to eosrnde. This is done at the end
of the second test day.

\% cd \<*path*\>/drsun

\% sudo ./**dr.collectlogs** \<*path*\>

(e.g. dr.collectlogs /home --or- where space available)

\% cd \<*path*\>

(e.g. cd /home)

\% scp \<*hostname*\>\_\<mon\>\<yr\>.tar eosrnde:\<path\>

> Where \<*hostname*\> = *drandromeda, drcorvus, drpavo, drweb1*

(e.g. scp drandromeda_Jul06.tar eosrde:/usr/local/drlogs)