From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653680321952.tru64-unix-managers.marc@archive.invalid> From: "Kirkland, Mike # IHTUL" Date: Fri, 14 Sep 2001 03:50:41 +0000 To: tru64-unix-managers Subject: remote system backup to server tape drive X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653680321952 Hi everyone, Heres the situation. I have a alpha800 run tru64 v4.0b that has a tz885 tape library attached to it. I want to backup a remote server that has tru64 v5.1 to it, / /usr and advfs. Here is the script and the error it produces. Any thoughts or suggestions on how to fix this or do it better is appreciated. BACKUP SCRIPT #!/bin/sh # DEFINE ALL VARIABLES USED IN THE SCRIPT # LOGFILE - Log file of backup; includes file list and other output and # is compressed at the backup script completion # LOGFILE=/usr/local/backupLogs/dumpKanga.`date +%m%d%Y` # # CREATE THE LOG FILE HEADER # echo "" >$LOGFILE echo "*******************************************" >>$LOGFILE echo "" >>$LOGFILE echo "KANGA DUMP Backup Log File.... `date`" >>$LOGFILE echo "" >>$LOGFILE # # REWIND THE TAPE # echo "LOADING Slot 1 Drive 0..." >>$LOGFILE robot load slot 1 drive 0 robot /dev/mc13b echo "REWINDING TAPE..." >>$LOGFILE /usr/bin/mt -f /dev/rmt0h rewind sleep 120 # # BACKUP /, /usr, /disk0, /disk1 # /usr/bin/rsh kanga /usr/sbin/dump -0u -b 64 -d 42500 -s 2453299 -f catbert:/dev/nrmt0h / 2>>$LOGFILE /usr/bin/rsh kanga /usr/sbin/dump -0u -b 64 -d 42500 -s 2453299 -f catbert:/dev/nrmt0h /usr 2>>$LOGFILE /usr/bin/rsh kanga /usr/sbin/dump -0u -b 64 -d 42500 -s 2453299 -f catbert:/dev/nrmt0h /var 2>>$LOGFILE /usr/bin/rsh kanga /usr/sbin/dump -0u -b 64 -d 42500 -s 2453299 -f catbert:/dev/nrmt0h /disk1 2>>$LOGFILE # # GENERATE THE FILE LISTING FOR THE BACKUP AND APPEND TO $LOGFILE # echo "REWINDING TAPE..." >>$LOGFILE /usr/bin/mt -f /dev/rmt0h rewind sleep 120 # echo "" >>$LOGFILE echo "FILESYSTEM / FILE 1" >>$LOGFILE /usr/sbin/restore -tvy -b 64 -s 1 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # echo "" >>$LOGFILE echo "FILESYSTEM /usr FILE 2" >>$LOGFILE /usr/sbin/restore -tvy -b 64 -s 2 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # echo "" >>$LOGFILE echo "FILESYSTEM /opt FILE 3" >>$LOGFILE /usr/sbin/restore -tvy -b 64 -s 3 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # echo "" >>$LOGFILE echo "FILESYSTEM /disk0 FILE 4" >>$LOGFILE /usr/sbin/restore -tvy -b 64 -s 4 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # # # REWIND THE TAPE AND OFFLINE IT # echo "REWINDING TAPE..." >>$LOGFILE /usr/bin/mt -f /dev/rmt0h rewind sleep 120 echo "UNLOADING Slot 1 Drive 0..." >>$LOGFILE robot unload slot 1 drive 0 robot /dev/mc13b # # CLEAN UP /usr/local/backupLogs # echo "" >>$LOGFILE echo "Cleaning up /usr/local/backupLogs..." >>$LOGFILE echo "" >>$LOGFILE find /usr/local/backupLogs -name "dumpKanga.*.Z" -mtime +14 -print | xargs ls -l >>$LOGFILE 2>>$LOGFILE find /usr/local/backupLogs -name "dumpKanga.*.Z" -mtime +14 -print | xargs rm -f >>$LOGFILE 2>>$LOGFILE cd / # # FINISH TIME STAMP THE LOG FILE # echo "" >>$LOGFILE echo "KANGA DUMP Backup Completed.... `date`" >>$LOGFILE echo "" >>$LOGFILE echo "***************************************" >>$LOGFILE echo "" >>$LOGFILE # # COMPRESS THE OUTPUT LOG FILE TO CONSERVE DISKSPACE # compress $LOGFILE # exit 0 ERRORS PRODUCED ******************************************* KANGA DUMP Backup Log File.... Thu Sep 13 22:29:53 CDT 2001 LOADING Slot 1 Drive 0... REWINDING TAPE... dump: Dumping from host kanga.tns.ndchealth.com dump: Date of this level 0 dump: Thu Sep 13 22:33:25 2001 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping root_domain#root (/) to catbert:/dev/nrmt0h dump: dump: Cannot open file-system file root_domain#root dump: Bad file system specification or bad file system. The raw device must dump: be entered when the file system's pathname has not been entered in the dump: fstab file. A bad file system is reported when the the magic number dump: is not found in the super block. main(): open(): No such file or directory dump: The ENTIRE dump is aborted dump: Dumping from host kanga.tns.ndchealth.com dump: Date of this level 0 dump: Thu Sep 13 22:33:25 2001 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping usr_domain#usr (/usr) to catbert:/dev/nrmt0h dump: dump: Cannot open file-system file usr_domain#usr dump: Bad file system specification or bad file system. The raw device must dump: be entered when the file system's pathname has not been entered in the dump: fstab file. A bad file system is reported when the the magic number dump: is not found in the super block. main(): open(): No such file or directory dump: The ENTIRE dump is aborted dump: Dumping from host kanga.tns.ndchealth.com dump: Date of this level 0 dump: Thu Sep 13 22:33:25 2001 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping usr_domain#var (/var) to catbert:/dev/nrmt0h dump: dump: Cannot open file-system file usr_domain#var dump: Bad file system specification or bad file system. The raw device must dump: be entered when the file system's pathname has not been entered in the dump: fstab file. A bad file system is reported when the the magic number dump: is not found in the super block. main(): open(): No such file or directory dump: The ENTIRE dump is aborted dump: Dumping from host kanga.tns.ndchealth.com dump: Date of this level 0 dump: Thu Sep 13 22:33:25 2001 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping /dev/rdisk/dsk0h (/disk1) to catbert:/dev/nrmt0h dump: Mapping (Pass I) [regular files] dump: Mapping (Pass II) [directories] dump: Cannot open device file catbert:/dev/nrmt0h dump: Cannot fopen /dev/tty for reading query(): fopen(): No such device or address dump: SIGTERM received dump: The ENTIRE dump is aborted dump: SIGTERM received dump: The ENTIRE dump is aborted REWINDING TAPE... FILESYSTEM / FILE 1 Tape read error while trying to set up tape Tape is not a dump tape FILESYSTEM /usr FILE 2 ioctl STFSF: I/O error Tape read error while trying to set up tape Tape is not a dump tape FILESYSTEM /opt FILE 3 ioctl STFSF: I/O error Tape read error while trying to set up tape Tape is not a dump tape FILESYSTEM /disk0 FILE 4 ioctl STFSF: I/O error Tape read error while trying to set up tape Tape is not a dump tape REWINDING TAPE... UNLOADING Slot 1 Drive 0... Cleaning up /usr/local/backupLogs... KANGA DUMP Backup Completed.... Thu Sep 13 22:37:10 CDT 2001 *************************************** Mike Kirkland Phone: (918) 481-2817 Fax: (918) 481-4275 mike.kirkland@ndchealth.com