1 &  ***********************************************************
  2 &  *                                                         *
  3 &  * Copyright, (C) Honeywell Information Systems Inc., 1985 *
  4 &  *                                                         *
  5 &  ***********************************************************
  6 &
  7 &  HISTORY COMMENTS:
  8 &   1) change(2018-01-17,Swenson), approve(2018-01-17,MCR10043),
  9 &      audit(2018-01-17,GDixon), install(2018-01-17,MR12.6g-0010):
 10 &      In message to administrator, state which directory should contain the
 11 &      sys_vols.dump control file.  Make sure setup_volume_reloader_2.ec is
 12 &      back in >ddd>volume_backup directory.
 13 &                                                       END HISTORY COMMENTS
 14 &
 15 & Modified August 1981 by F. W. Martinson for MR9.0
 16 & Modified July 1982 by R. Holmstedt for MR10.0
 17 & Modified 85 May 5 by Art Beattie to correct instruction for starting part 2.
 18 &
 19 & exec com to set up directories and daemon queues
 20 & for volume backup/reload system.
 21 &
 22 &command_line off
 23 &goto &ec_name
 24 &label setup_volume_reloader
 25 &if [not [exists directory >sc1>volume_backup_accounts]] &then cd >sc1>volume_backup_accounts
 26 &if [not [exists directory >ddd>volume_retriever]] &then cd >ddd>volume_retriever
 27 &if [not [exists directory >ddd>volume_backup]] &then cd >ddd>volume_backup
 28 &if [not [exists directory >ddd>volume_backup>pvolog]] &then cd >ddd>volume_backup>pvolog
 29 &if [not [exists directory >ddd>volume_backup>contents]] &then cd >ddd>volume_backup>contents
 30 &if [not [exists segment >ddd>volume_retriever>volume_retriever_3.ms]] &then mscr >ddd>volume_retriever>volume_retriever_3
 31 &if [not [exists segment >ddd>volume_retriever>volume_retriever_2.ms]] &then mscr >ddd>volume_retriever>volume_retriever_2
 32 &if [not [exists segment >ddd>volume_retriever>volume_retriever_1.ms]] &then mscr >ddd>volume_retriever>volume_retriever_1
 33 &if [not [exists segment >sc1>vinc.message]] &then cr >sc1>vinc.message
 34 &if [not [exists segment >sc1>vcons.message]] &then cr >sc1>vcons.message
 35 &if [not [exists segment >sc1>vcomp.message]] &then cr >sc1>vcomp.message
 36 &
 37 & setting default access on message segments and volume_backup_accounts
 38 &
 39 sa >sc1>(vinc vcons vcomp).message rw *.SysDaemon.* rw *.Daemon.* null *
 40 sis >sc1>volume_backup_accounts rew *.SysDaemon.* rew *.Daemon.* rew *.SysAdmin.* rew *.SysMaint.* r *
 41 sis >daemon_dir_dir>volume_backup rew *.SysDaemon rew *.Daemon rew *.SysAdmin rew *.SysMaint
 42 sis >daemon_dir_dir>volume_backup>contents rew *.SysDaemon rew *.Daemon rew *.SysAdmin rew *.SysMaint
 43 sis >daemon_dir_dir>volume_backup>pvolog rew *.SysDaemon rew *.Daemon rew *.SysAdmin rew *.SysMaint
 44 sa >sc1>volume_backup_accounts sma *.SysDaemon.* sma *.Daemon.* sma *.SysAdmin.* sma *.SysMaint.* s *
 45 sa >ddd>volume_backup sma *.SysDaemon.* sma *.Daemon.* sma *.SysAdmin.* sma *.SysMaint.* s *
 46 sa >ddd>volume_retriever sma *.SysDaemon.* sma *.Daemon.* sma *.SysAdmin.* sma *.SysMaint.* s *
 47 sa >ddd>volume_backup>pvolog sma *.SysDaemon.* sma *.Daemon.* sma *.SysAdmin.* sma *.SysMaint.* s *
 48 sa >ddd>volume_backup>contents sma *.SysDaemon.* sma *.Daemon.* sma *.SysAdmin.* s *.SysMaint.* s *
 49 mssa >ddd>volume_retriever>*.ms adros *.SysDaemon.* adros *.Daemon.* adros *.SysAdmin.* adros *.SysMaint.* aros *
 50 cwd >ddd>volume_backup
 51 manage_volume_pool free dm001 dm002
 52 manage_volume_pool d dm001 dm002
 53 dl -bf *.volog dmpr_err.** *.*.control
 54 answer yes dl -bf >ddd>volume_backup>contents>**
 55 answer yes dl -bf >ddd>volume_backup>pvolog>**
 56 &
 57 &print Now, using an editor, create dump file sys_vols.dump in the
 58 &print >ddd>volume_backup directory containing names of volumes to
 59 &print be dumped.  This file should be of the form:
 60 &print
 61 &print (one entry per line)
 62 &print
 63 &print lv,<lvname> or
 64 &print pv,<pvname>
 65 &print
 66 &print After you have created this dump file continue initialization
 67 &print of volume dumper by typing "ec >t>setup_volume_reloader_2".
 68 &quit
 69 &label setup_volume_reloader_2
 70 & This part of setup initializes vtoces for incremental and
 71 & consolidated dumps.  All output is discarded.
 72 &
 73 &print Now beginning incremental dump setup.
 74 &
 75 cwd >ddd>volume_backup
 76 &print Creating dummy volume pool.
 77 manage_volume_pool u >ddd>volume_backup>Volume_Dumper
 78 manage_volume_pool a dm001 dm002
 79 incremental_volume_dump -control sys_vols -operator Init -output_volume_desc discard_ -no_object -no_update -auto -error_on -wakeup 480 -wd
 80 end_volume_dump
 81 &print Initialization complete for incremental dumper.
 82 &print Now beginning consolidated dump setup.
 83 consolidated_volume_dump -control sys_vols -operator Init -output_volume_desc discard_ -no_object -no_update -auto -error_on -wd
 84 &print Initialization complete for consolidated dumper.
 85 &
 86 & This section completes initialization by deleting
 87 & all dummy segments created by the initialization process.  At
 88 & completion use of the volume dumper/reloader system can begin.
 89 manage_volume_pool free dm001 dm002
 90 manage_volume_pool d dm001 dm002
 91 dl -bf *.volog dmpr_err.** *.*.control
 92 answer yes dl -bf >ddd>volume_backup>contents>**
 93 answer yes dl -bf >ddd>volume_backup>pvolog>**
 94 sa >udd>Daemon>Volume_Dumper sma Volume_Dumper.*
 95 sis >udd>Daemon>Volume_Dumper rew Volume_Dumper.*
 96 answer yes copy sys_vols.dump >udd>Daemon>Volume_Dumper>sys_vols.dump
 97 delete sys_vols.dump
 98 &print Initialization of Volume Dumper/Reloader system
 99 &print is now complete.  You must now use the manage_volume_pool
100 &print to register the tape volumes you will be using
101 &print for volume dumping/reloading.  To use this system operator
102 &print should type:
103 &print
104 &print x vinc <initials>  to start incremental dump
105 &print x vcons <initials> to start consolidated dump
106 &print x vcomp <initials> to start complete dump
107 &print