Operating System - HP-UX
1753779 Members
7847 Online
108799 Solutions
New Discussion юеВ

Multiple copies with make_net_recovery

 

Multiple copies with make_net_recovery

I have a problem with number of Ignite UX copies. I have created a shell script to create a make_net_recovery image. Each night, the script is automatically launched with this options:

make_net_recovery -n 2 -v -P s -s ${SERV_IGNITE} -a ${NAS_IGNITE}:/${POOL_IGNITE}/${CLIENT} -x inc_entire=vg00

Where:

SERV_IGNITE: Servername of Ignite-UX Server
NAS_IGNITE: Servername of NFS container for backups
POOL_IGNITE: The place to hold Ignite-UX backups (I have two pools, one per week)
CLIENT: Directory to contain backup copy (usually, the hostname of the client)

How you can see, I use '-n' tag to indicate that I want only two copies per client, but when execute I get more than two, for example I get one client with four of them.

Can you tell me how can I change make_net_recovery to get exactly two copies per client or I have to manually delete the older ones?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Multiple copies with make_net_recovery

I would have a script create the new ones and delete the old ones.

Thats not really manually, you can check the date stamp by making a list of backups with a variation of the ls command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: Multiple copies with make_net_recovery

You're right, It's easy to delate the older ones including at the end of the shell-script some verifications, but It not clear enough and doesn't solve modifications on configuration files, for example CINDEX file on Ignite-UX Server for each CLIENT (/var/opt/ignite/clients/CLIENT/CINDEX):

root@Ignite-UX-Server:/var/opt/ignite/clients/CLIENT> more CINDEX
# CINDEX
# This file is used to define the Ignite-UX configurations
# and to define which config files are associated with each
# configuration. See the ignite(5), instl_adm(4), and
# manage_index(1M) man pages for details.
#
# NOTE: The manage_index command is used to maintain this file.
# Comments, logic expressions and formatting changes are not
# preserved by manage_index.
#
# WARNING: User comments (lines beginning with '#' ), and any user
# formatting in the body of this file are _not_ preserved
# when the version of Ignite-UX is updated.
#
cfg "2005-07-18,12:39 Recovery Archive" {
description "Recovery Archive"
"recovery/2005-07-18,12:39/system_cfg"
"recovery/2005-07-18,12:39/control_cfg"
"recovery/2005-07-18,12:39/archive_cfg"
}
cfg "2005-07-25,23:30 Recovery Archive" {
description "Recovery Archive"
"recovery/2005-07-25,23:30/system_cfg"
"recovery/2005-07-25,23:30/control_cfg"
"recovery/2005-07-25,23:30/archive_cfg"
}
cfg "2005-08-01,23:30 Recovery Archive" {
description "Recovery Archive"
"recovery/2005-08-01,23:30/system_cfg"
"recovery/2005-08-01,23:30/control_cfg"
"recovery/2005-08-01,23:30/archive_cfg"
.....................
.....................
.....................

Can you explain me what do you do to remove the older ones?
Uday_S_Ankolekar
Honored Contributor

Re: Multiple copies with make_net_recovery

Default is to create two copies and when third one creates it removes one oldest copy.

man pages for more info..

-USA..
Good Luck..

Re: Multiple copies with make_net_recovery

Yes, I know very well what man page explains. Reading it, I spect that, by default, 2 copies are storaged, but I really have more than 2, some of my clients four of them, even using '-n 2' option when launching make_net_recovery. Number of copies are per pool or per client? Because I have 2 pools, may be with '-n 2' I will get 2 copies per pool (four copies). What do you think about it?
Uday_S_Ankolekar
Honored Contributor

Re: Multiple copies with make_net_recovery

My understanding is when default is two you will get only 2 copies unless you mention in -n option

Look at /var/opt/ignite/recovery/defaults file it should have SAVE_NUM_ARCHIVE=2

-USA..
Good Luck..

Re: Multiple copies with make_net_recovery

Last night, one of the clients shows in make_net_recovery output:

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

======= 08/11/05 03:07:05 METDST Started /opt/ignite/bin/make_net_recovery.
(Thu Aug 11 03:07:05 METDST 2005)
@(#) Ignite-UX Revision C.6.1.44
@(#) net_recovery (opt) $Revision: 10.672 $

* Testing for necessary pax patch.
* Passed pax tests.
* Recovery Archive Description = Recovery Archive

* Recovery Archive Location = nasignite103:/IgnitePAR/CLIENT

* Number of Archives to Save = 2

* Pax type = tar

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

Cleary, 2 is the number of archives for the client CLIENT. I think ignite is storing two copies, not per client, but per pool. I have two pools, IgnitePAR and IgniteIMPAR. If I look there, I see two archives per client in both of them. Could be that the answer?