The copying of the old archive was done by Larry Strom. Larry made 2 copies, both of which are at the summit. There are backup logs available on disk, in subdirectories of DATA:[STROM] (this should really be in USER3:[STROM] but has never been copied there), in case somebody needs to find files on the (copies of the) old archive tapes.
Generally, archiving since February 1992 has been done like this:
BACKUP/LOG/REWIND MKB300:DATA*.BCK/SAVE DATA:[000000...]*.*.*/OWNER=PARENT
The email contains a list of all scans uploaded and so can get quite long. However, the end of these is the most important part for the person who has to dump the database. (I use a short DCL procedure, USER:[MAREN.COM]SYB.COM to deal with these).
It is necessary to watch the filling up of the database because if it fills up (usually the channel segment first, and when it gets to about 95% it comes to a screeching halt) it will stop uploading which can cause all sorts or problems (like not transferring and deleting the dump file in the VAX which causes the VAX to run low on disk space, you get the idea), in addition to that it won't be possible to do the normal database dump.
The following is from an email message from Darek Lis:
****** DATABASE ACCOUNTS ******
I set up two Sybase accounts (these are Sybase, not workstation accounts):
(1) Guest account (guest, password csoguest) can be used to view any information stored in the database. However, no modifications are allowed. There is a corresponding workstation account with the same username and password.
(2) Root account (root, ask me for password) can be used to view and update information in the database. Use this account with caution.
Both Sybase accounts can be accessed from any account on the workstation.
****** DATABASE DUMPS ******
The database dump will have to be done roughly every 17,000 scans. Log on to any account on the workstation. Make sure /opt/bin is in your path.
(1) Check the free space on the log segment for both databases using the command
> check_logs password
where password is the password for the Sybase root account. The log usage is reported in the following format:
Checking syslogs
The total number of data pages in this table is 1457.
*** NOTICE: Space used on the log segment is 2.85 Mbytes, 14.23%.
*** NOTICE: Space free on the log segment is 17.15 Mbytes, 85.77%.
Table has 52070 data rows.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
Checking syslogs
The total number of data pages in this table is 18217.
*** NOTICE: Space used on the log segment is 35.58 Mbytes, 29.65%.
*** NOTICE: Space free on the log segment is 84.42 Mbytes, 70.35%.
Table has 172031 data rows.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
The report for the log segment is also sent automatically each day by upload.csh which runs from the cron.
(2) When there is little free space left on the log device (logs for the second database will fill up first), dump both databases:
(a) Insert the tape labelled "Sybase database dump - Headers" into the DAT drive.
REMEMBER TO CYCLE BETWEEN TWO SETS OF TAPES
THE TAPE DRIVE OCCASIONALLY EATS TAPES!
AND WRITE THE DATE ON THE TAPE SO YOU KNOW
WHICH ONES WERE USED LAST.
(b) Execute the following command to dump the headers:
> dump_head password
where password is again the password for the root database account. If you get an error message saying that the backup server is not running, type
> start_backup_server
You will be prompted for the password of the sybase account on the workstation.
(c) Insert the tape labelled "Sybase database dump - Channel data" into the DAT drive.
(d) Execute the following command to dump the channel data:
> dump_chan password
(end of included email from Darek Lis)
isql -U root -P <password> < /opt/bin/trunc_chan_nolog.sql
cd ~sybase
tar cvf /dev/nrst4 .
/export/home/sybase/cso/upload.csh
----------------------------------------------------------------------
back to CSO documentation page
back to CSO reference page
Maren Purves, maren@poliahu.submm.caltech.edu
Nov. 7, 1996