- 3B2 tape restoral
- Stratus tape restoral
3B2 tape restoral
To restore a filesystem and an individual customer's data:
- If restoring data for a specific customer, determine the processor and filesystem of their home directory. For example, on any node processor type:
- cdflat account name
- Call site where processor is located and ask tech to put in tape with date of data which needs to be restored. Tell them in which tape drive, A, B or C (i.e. TOAU, TOBU or TOCU) to place the tape. All the processors on a 3B2 node should be able to access any available tape drive.
- Check to make sure correct tape is in the drive and it's readable.
- To read tape label and verify correct tape on an older drive, type:
- ttape -i -t /dev/rmt/etapeN
- Drive for A processor is etape1, B is etape2, C is etape3. You can use any of the tape drives and read them from any processor on the node.
- For a newer drive:
- dtape -i -t /dev/rmt/dat#
- To be sure of which one to use type ls -al /dev/rmt and look at bottom of output for etape or dat.
- Verify spare slice is available and usable.
- c10t6d0s8 and c6t6d0s8 are spare slices. Filesystem w/old date gives indication spare has been used previously is probably good
Must unmount /mnt directory before restoring tape!
mount -Fs5 /dev/dsk/c6t6d0s8 /mnt
ls -al /mnt
umount /mnt
- Restore:
- For etape, nohup ttape -i -t /dev/rmt/etapeN filesystem (i.e. dl05000) /dev/dsk/c6t6d0s8 &
- For DAT tape, nohup dtape -i -t /dev/rmt/datN filesystem /dev/dsk/c6t6d0s8 &
- tail -f nohup.out to watch process and find out when done
- mount -Fs5 /dev/dsk/c6t6d0s8 /mnt
- Copy files.
- For an individual customer's files, advisable to create a .RESTORED directory under customer's home directory. Note that this is a "dot" directory; this will prevent mmcleanup from touching it.
- Copy files from /mnt/(path to customer's home directory minus filesystem)/(directory with files customer wants) to directory where saving files.
- Example: cp /mnt/10000/10400/10445/in/* /mn10000/10000/10400/10445/.RESTORED/
- Set permissions and ownership of files so Customer Service can access them. Tell Customer Service where the files have been restored to.
Stratus tape restoral
Example:
S-lxau_root > srestore
Use 301.srestore for non-upgraded nodes using older version of Unix, 301.0 not .1.
Enter tape device for restore(ie c4a1d5): c6a1d2
Rewinding Tape
tape | device | filesystems |
1 | c4a1d2 | 05000,10000 |
2 | c4a1d5 | 15000,20000 |
3 | c6a1d2 | 25000,30000 |
4 | c6a1d5 | 35000,40000 |
etc |
Enter tape number(1-6[1]):
For POLO: drive 1 = c0a2d0, drive 2 = c0a2d1
tapecntl -w /dev/rmt/c6a1d2
Enter 1 for /restore1
2 for /restore2
[1]:
Backup made on Sat Feb 28 1998 at 04:05:43 GMT
Enter 0 exit
1 lx25000
2 lx30000
: 1
Enter f for full restore
d to enter file or directory
i for interactive
: i
vxrestore > pwd
/
vxrestore > ls
.:
25000/ economaster/ junkmail/ mortician/ shared/
autodeliver/ edi/ lost+found/ mtqueue/ surrogate/
crdir/ fxcnvt/ mime/ pomaster/ uucp/
dispatcher/ internet/ mm.compress premigrate/
cd to customer directory or whatever directory to restore.
vxrestore > cd 10000/10850/10853
vxrestore > pwd
/25000/25050/25097
add directory to restore
vxrestore > add in
Warning: ./25000: File exists
Warning: ./25000/25050: File exists
Warning: ./25000/25050/25097: File exists
Warning: ./25000/25050/25097/codes: File exists
vxrestore > extract
You have not read any tapes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 1
set owner/mode for '.'? [yn] n
vxrestore > quit
Procedure Complete - Rewinding Tape
It's done; copy the needed files over to .RESTORED/ in the customer directory.