Showing posts with label make_tape_recovery. Show all posts
Showing posts with label make_tape_recovery. Show all posts

Monday, December 7, 2015

How to take the network Ignite-UX image backup for a system? How to take make_net_recovery backup?

Assuming that you have an Ignite-UX server in your environment, you can use the make_net_recovery command.

Some of the invocations of make_net_recovery are as below.

These commands are executed from the HP-UX server which is a client to the Ignite-UX server.

make_net_recovery -v -s <Ignite-UX_server_name> -x inc_entire=vg00

The above takes a verbose mode Ignite-UX make_net_recovery backup to the Ignite sever. It os noteworthy that by default the make_net_recovery archive of the client is put at the /var/opt/ignite/recovery/archives/<hostname> directory on the Ignite-UX server, where <hostname> is the client name for which you are making an archive in make_net_recovery format.

The above also updates the client information for the recent backup being taken for the client on the clients folder of the Ignite-UX server, the location on the Ignite-UX server being /var/opt/ignite/clients/<hostname>. Where hostname is the name of the client which you are creating a network make_net_recovery archive for.


make_net_recovery -v -s <Ignite-UX_server> -a <Archive_server>:<Archive_location>-x inc_entire=vg00 -x exclude=/var/adm/crash

In the above case my Ignite-UX server is different from the Network archive server and I want to exclude /var/adm/crash of the client from being backed up.

To be noted that the Ignite-UX backup takes help of NFS in the background where the Ignite-UX server and the archive server (in case in your environment the Ignite-UX and the archive servers are different) work as NFS server and the client is an NFS client.

This mandates that the folders /var/opt/ignite/recovery/archives and /var/opt/ignite/clients are NFS exported for read/write and access from the client which is being backed up.

To be more specific you can give access to the Ignite-UX clients in a more restrictive manner by exporting the individual /var/opt/ignite/recovery/archives/<hostname> and /var/opt/ignite/clients/<hostname> to the specific client (hostname which is being backed up using make_net_recovery) something like below.

/etc/exports on Ignite-UX server

/var/opt/ignite/clients/host1 -anon=2,access=host1.example.com:host1
/var/opt/ignite/recovery/archives/host1 -anon=2,access=host1.example.com:host1

Please note that if FQDN is used in your environment use of the FQDN as above helps to overcome some permission denied error messages.



-anon=2 above means that during the backup the userid "bin" is being used for NFS mounts to mount and write to the /var/opt/ignite/clients/<hostname> and /var/opt/ignite/recovery/archives/<hostname>

How to take OS backup using make_tape_recovery? How to take Ignite backups of the HP-UX system on to a Tape drive?



First identify if your system has a tape drive in place.

ioscan -fnC tape
or
ioscan -kfnC tape

Say the tape device is /dev/rmt/0m and has the no-rewind device file for the same tape as /dev/rmt/0mn

To make the Tape archive of the system use the no rewind device that is /dev/rmt/0mn.

Load the tape media in the tape device.

Confirm that the media is loaded and in case needed rewind the tape to the home position.

mt -t /dev/rmt/0mn status

To rewind to the original tape home position you can do

mt -t /dev/rmt/0mn rewind

or

in short

mt -t /dev/rmt/0mn rew

Confirm the tape is positioned

mt -t /dev/rmt/0mn status

To make a Tape archive backup you can use the command as

make_tape_recovery -Av

This automatically takes backup to the default tape drive configured on the system.

make_tape_recovery -v -a /dev/rmt/0mn -x include_entire=vg00 -x exclude=/var/adm/crash

The above command takes backup of the system into tape drive /dev/rmt/0mn and includes entire VG vg00 (which is included in Ignite backup by default) in -v (verbose mode) and excludes the Directory /var/adm/crash.



To include the other VGs apart from the rootvg vg00, the command becomes like this.

make_tape_recovery -v -a /dev/rmt/0mn -x inc_entire=vg00 -x inc_entire=vg02 -x exclude=/var/adm/crash


The above command additionally takes the vg02 data also in the Ignite tape backup.