.chapter Disk Volume Rebuilds .hl 1 Background The RESTORE utility will handle the majority of file restores. There are times when a disaster occurs (say, a head crash had destroyed the disk) or a new version of the console disk is installed. These procedures are for those cases when the entire disk volume needs to be rebuilt. This action should only be performed by Tech Services personnel. The different restores from the different types of disk volumes are covered below. .s As a safety precaution, be sure to remove all write rings from the tapes before they are read. This will prevent their accidentally being overwritten. .hl 1 Save Set Topics .NO FLAGS ACCEPT A save set is the name of the file that the BACKUP utility generates. There is one save set associated with each disk backed up. New save sets always begin at the beginning of a reel. Large save sets may span more than one reel. .s We use long, descriptive names for our save sets (e. g., SADUA0_25JAN87.BK, the standalone backup performed on drive DUA0 on 1/25/87). As these procedures require that you know the save set name, here is a simple way to find it out. Mount the tape and do a BACK/LIST of the reel. The save set name is listed under the "Save Set" field. (This may be frozen on the console screen by toggling the "Hold Screen" key.) To abort the list, type in regular backup mode. To interrupt standalone backup, you must raise the cover of the tape drive to trigger a controller fault, as is not recognized by standalone backup. Close the top of the tape drive, and hit the reset, load, and online switches. Also, answer "QUIT" to standalone's query about continuing the process. .s Here is an example using regular backup. The save set name is "DUA3_VAX.BCK". .s .nf .FLAGS ACCEPT [RUCKER] $ ^&ALLOCATE_ MUA0\& .NO FLAGS ACCEPT %I, _MUA0: allocated .FLAGS ACCEPT [RUCKER] $ ^&MOUNT/FOREIGN_ MUA0\& .NO FLAGS ACCEPT %I, volume is write locked %I, DUA3_V mounted on _MUA0: .FLAGS ACCEPT [RUCKER] $ ^&BACK/LIST_ MUA0:*.*\& .NO FLAGS ACCEPT Listing of save set(s) Save set: DUA3_VAX.BCK Written by: WOLFFB UIC: [000002,000002] Date: 3-DEC-1988 07:57:08.67 Command: BACK/LOG/IGNORE=(INTERLOCK,LABEL)/... Operating system: VAX/VMS version V5.0 BACKUP version: V5.0 CPU ID register: 06800253 Node name: _MSPV1:: Written on: _MUA0: Block size: 8192 Group size: 10 Buffer count: 5 Image save of volume set Number of volumes: 1 Volume attributes Structure level: 2 Label: ALLIN1 Owner: RUCKERT Owner UIC: [000015,000001] Creation date: 21-MAR-1988 13:25:47.17 Serial number: 00000314567 Total blocks: 1216665 Access count: 3 Cluster size: 3 Data check: No Read, No Write Extension size: 5 File protection: System:RWED, Owner:RWED, Group:RE, World: Maximum files: 152083 Volume protection: System:RWCD, Owner:RWCD, Group:RWCD, World:RWCD Windows: 7 [000000]A1022.A;1 2016 27-MAY-1987 00:00 [000000]A1022.B;1 9424 27-MAY-1987 00:00 [000000]A1022.C;1 14912 27-MAY-1987 00:00 [000000]A1022.D;1 6656 27-MAY-1987 00:00 [000000]A1022.E;1 5520 27-MAY-1987 00:00 [000000]ALLIN1.DATA;1 768 31-MAR-1988 17:05 ^&\& .f .flags accept .HL 1 Console Volume Rebuild .HL 2 Background If the console volume is destroyed or damaged, it can be recreated from the diskettes included with the system. As the interfaces between the PRO/350 and the VAX 8530 are still somewhat imperfect, it is easiest to reedit the necessary files that need to be customized rather than try to reload them from a backup diskette copy. .HL 2 Detailed Procedures .HL 3 Reload Hard Disk Reload the P/OS and console diskettes. DEC field service will probably assist with this. Get to the P/OS prompt ($). .HL 3 Set Up Default Boot File Edit DEFBOO.COM as follows: .nf .s .c $ ^&EDIT_ DEFBOO.COM\& .f .s Change the boot command to "BOOT BCI0". Then press the "EXIT" key on the top row of the console. Now, edit BCIBOO.COM so the DEPOSIT commands are as follows (you may have to uncomment these lines by removing the leading "!" character): .nf .s .c ^&DEPOSIT_ R0_ 20\& ^&DEPOSIT_ R1_ 20\& ^&DEPOSIT_ R2_ 0\& ^&DEPOSIT_ R3_ 0\& ^&DEPOSIT_ R4_ %D0\& ^&DEPOSIT_ R5_ 80\& .f .s Also, add a "^&CLEAR_ RESTART\&" line right after the "$ SET VERIFY" command at the top of the procedure. Make these same changes to BCIGEN.COM, except R5 should have the value of 10. .HL 3 Set Up Standalone Backup Boot File First, .s .c $ ^©_ BCIBOO.COM_ XEFBOO.COM\& .s Next, modify the "DEPOSIT R5" command in XEFBOO.COM to read "^&DEPOSIT_ R5_ E0000080\&". .HL 3 Set Up Auto Reboot Flags Get to the ">>>" prompt by typing .s .c $ ^&RUN_ CONTROL\& .s Display the current reboot flags by typing .s .c >>> ^&SH_ ST\& .s If they are disabled, enable them with .nf .s >>> ^&EN_ A_ B\& for Auto Boot .c >>> ^&EN_ A_ P\& for Auto Poweron >>> ^&EN_ A_ R\& for Auto Restart .HL 2 Boot The System Type in .s .c >>> &B .s This will boot from BCIBOO.COM. .HL 1 System Volume Rebuild .HL 2 Background If the system volume is destroyed or damaged, it can be recreated from a combination of image (disaster, weekly, monthly) and incremental (daily) backups. What complicates the system volume rebuild is that it must be done with standalone backup running on the PRO/350. Once the image restore has been done, the system should be booted with a minimal configuration so that layered products don't come up and complicate the volume rebuild procedure. .HL 2 Example Overview The easiest way to explain this example is with a "real" example. Assume that your disk crashed on February 6th. The last image backup was done on February 1st. You would like to restore the disk to the previous daily backup, which was February 5th. .s .HL 2 Detailed Procedures .HL 3 Halt The System Needless to say, no users should be on the system at this time. If the current prompt is not ">>>", then halt the system with .s .nf .c ^&\& >>> &H .f .HL 3 Boot Standalone Backup From Diskettes Insert the first standalone backup diskette (labelled "S/A BACKUP - 1/4") into the top (furthest when the PRO/350 is on its side) diskette drive. Be sure to align the appropriate orange arrows on the diskettes with the orange lines on the diskette drive. Enter .s .c >>> ^&@CSBOO\& .s If a message appears that indicates the restart flag has already been set, enter .NF .s .c >>> ^&CLEAR_ RESTART\& >>> ^&@CSBOO\& .F .s Respond to the system requests by inserting subsequent diskettes ("2/4", "3/4", and "4/4") and answering messages. Leave the last diskette in during the following procedure. When the system successfully boots to diskette standalone backup, it identifies itself with a message like .S .C %BACKUP-I-IDENT,Stand-alone BACKUP v5.0, the date is 6-DEC-1988 .f .HL 3 Perform the Image Restore At this point, load the image backup tape (in our example, from February 1st). (Be sure to remove the write ring for safety's sake!) Armed with the save set name, enter the following command: .S .C $ ^&BACK/IMAGE/RECORD_ MUA0:_ DUA0:\& .S This will take about 20 to 30 minutes per reel. If you are fortunate enough to want only the data as of this date, you are done with the restoring part. .HL 3 Perform the Incremental Restore Now, the non-image backups are applied in reverse chronological order. (This should be verified with DEC software support, as this might change with new versions of Backup.) .hl 4 Boot a Minimal System Shut down standalone backup as follows: .s .nf .c ^&\& >>> &H .f Now, perform a conversational boot as follows: .s .nf .c ^&@BCIGEN\& .f After a few moments, enter the following (the SET command is not underlined, as there is an underscore in the command): .s .nf .NO FLAGS ACCEPT .c SYSBOOT> SET STARTUP_P1 "MIN" .FLAGS ACCEPT SYSBOOT> ^&CONTINUE\& .f .hl 4 Perform The Restore from Incremental Backup Tapes When the system comes up, sign into a Tech Services account. Give your process all privileges with "^&SET_ PROC/PRIV=ALL\&". Reset the reboot flag as follows (the SET command is not underlined, as there is an underscore in the command): .s .nf .c $ ^&RUN_ SYS$SYSTEM:SYSGEN\& .NO FLAGS ACCEPT SYSGEN> SET STARTUP_P1 " " .FLAGS ACCEPT SYSGEN> ^&AUTOCONFIGURE_ ALL\& SYSGEN> ^&EXIT\& $ ^&@SYS$SYSTEM:STARTUP_ CONFIGURE\& .S .f Perform an incremental restore from the last incremental backup as follows: .S .C $ ^&BACK/INCREMENTAL_ MUA0:_ DUA0:\& .HL 3 Miscellaneous Housecleaning After all of the restoring is done, log out, halt the system, and then boot the system. Log into a Tech Services account. Run the following: .s .nf .c $ ^&ANALYZE/DISK/REPAIR_ DUA0:\& .S .f Look around the disk and the system to make sure that things look OK, like the system time, number of free blocks, etc. .hl 1 User Volume Rebuild .HL 2 Background If a user volume is destroyed or damaged, it can be recreated from a combination of image (disaster, weekly, monthly) and incremental (daily) backups. .HL 2 Example Overview The easiest way to explain this example is with a "real" example. Assume that your disk crashed on February 6th. The last image backup was done on February 1st. You would like to restore the disk to the previous daily backup, which was February 5th. .s .HL 2 Detailed Procedures .HL 3 Boot a Minimal System Make the following change (the SET command is not underlined, as there is an underscore in the command): .s .nf .c $ ^&RUN_ SYS$SYSTEM:SYSGEN\& .NO FLAGS ACCEPT SYSGEN> SET STARTUP_P1 "MIN" .FLAGS ACCEPT SYSGEN> ^&EXIT\& .f .s Follow the steps in the "System Shutdown" procedure. Be sure to take the option for auto reboot. .s When the system comes up, sign into a Tech Services account. Give your process all privileges with "^&SET_ PROC/PRIV=ALL\&". Reset the reboot flag as follows (the SET command is not underlined, as there is an underscore in the command): .s .nf .c $ ^&RUN_ SYS$SYSTEM:SYSGEN\& .NO FLAGS ACCEPT SYSGEN> SET STARTUP_P1 " " .FLAGS ACCEPT SYSGEN> ^&AUTOCONFIGURE_ ALL\& SYSGEN> ^&EXIT\& $ ^&@SYS$SYSTEM:STARTUP_ CONFIGURE\& .S .f .HL 3 Perform the Image Restore At this point, load the image backup tape (in our example, from February 1st). (Be sure to remove the write ring for safety's sake!) Armed with the save set name, enter the following command: .S .C $ ^&BACK/IMAGE/RECORD_ MUA0:_ DUA3:\& .S This will take about 20 to 30 minutes per reel. If you are fortunate enough to want only the data as of this date, you are done with the restoring part. .HL 3 Perform the Incremental Restore Now, the latest incremental backup is used (in this example, from February 5th). Enter the following: .S .C $ ^&BACK/INCREMENTAL_ MUA0:_ DUA3:\& .hl 3 Miscellaneous Housekeeping After all of the restoring is done, log out, halt the system, and then boot the system. Log into a Tech Services account. Run the following: .s .nf .c $ ^&ANALYZE/DISK/REPAIR_ DUA3:\& .S .f Look around the disk and the system to make sure that things look OK, like the system time, number of free blocks, etc.