addendum: remote tape backup

From: Kirkland, Mike # IHTUL <mike.kirkland_at_ndchealth.com>
Date: Thu, 04 Oct 2001 19:13:42 -0500

I want to thank everyone who responded to my question; Tru64 User,
alan_at_nabeth.cxo.dec.com, Jim Belonis, Phil Baldwin, Peyton Bland, and Octave
Orgeron. Sorry if I missed anyone.

Most said that I could load the vdump from the layer product cdrom for
V4.0b, and some suggested using rvdump. I chose to use rvdump.

List below is the script that I used, but not I get these errors while the
backup is going. Any assistance to correct these errors?


#!/bin/sh
############################################################################
####
#
# dumpKanga - shell script to backup the following filesystems on Kanga
# using RDUMP; executes every M-F to do a full system backup
# / : / filesystem (local files & directories only)
# /usr : /usr filesystem
# /var : /var filesystem
# /disk1 : /disk1 filesystem
#
# WRITTEN BY: Mike Kirkland
# WRITTEN ON: 09/13/2001
# MODIFIED ON: 09/13/2001 - Mike Kirkland
# - using remote tape changer
#
# FILES USED: /usr/local/backupLogs/rvdumpKanga.DATE
# - Backup log file; contains list of files backed up
# /usr/local/bin/rvdumpKanga
# - This shell script
#
# CRON COMMAND: 00 21 * * 1-5 /usr/local/bin/rvdumpKanga
# This will execute the backup job at 9:00pm each night; M-F
# NOTE: Tapes need to be changed every morning.
#
# HELP FILES: For additional infomation, see the rvdumpKanga(1) man page
# The source for the page is /usr/local/man/man1/rvdumpKanga.1
#
############################################################################
####
#
# 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/rvdumpKanga.`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
rsh catbert robot load slot 1 drive 0 robot /dev/mc13b
echo "REWINDING TAPE..." >>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/rmt0h rewind
sleep 120
#
# BACKUP /root_domain#root, /usr_domain#usr, /usr_domain#var, /disk1
#
/sbin/rvdump -0u -b 64 -f catbert:/dev/nrmt0h / 2>>$LOGFILE
/sbin/rvdump -0u -b 64 -f catbert:/dev/nrmt0h /usr 2>>$LOGFILE
/sbin/vrdump -0u -b 64 -f catbert:/dev/nrmt0h /var 2>>$LOGFILE
/sbin/vrdump -0u -b 64 -f catbert:/dev/nrmt0h /disk1 2>>$LOGFILE
#
# GENERATE THE FILE LISTING FOR THE BACKUP AND APPEND TO $LOGFILE
#
echo "REWINDING TAPE..." >>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/rmt0h rewind

sleep 120
#
echo "" >>$LOGFILE
echo "FILESYSTEM / FILE 1" >>$LOGFILE
/sbin/rvrestore -t -v -f catbert:/dev/rmt0h >>$LOGFILE 2>>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/rmt0h rewind
sleep 120
#
echo "" >>$LOGFILE
echo "FILESYSTEM /usr FILE 2" >>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/nrmt0h fsf 2
/sbin/rvrestore -t -v -f catbert:/dev/nrmt0h >>$LOGFILE 2>>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/rmt0h rewind
sleep 120
#
echo "" >>$LOGFILE
echo "FILESYSTEM /var FILE 3" >>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/nrmt0h fsf 3
/sbin/rvrestore -t -v -f catbert:/dev/nrmt0h >>$LOGFILE 2>>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/rmt0h rewind
sleep 120
#
echo "" >>$LOGFILE
echo "FILESYSTEM /disk1 FILE 4" >>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/nrmt0h fsf 4
/sbin/rrestore -t -v -f catbert:/dev/nrmt0h >>$LOGFILE 2>>$LOGFILE
#
#
# REWIND THE TAPE AND OFFLINE IT
#
echo "REWINDING TAPE..." >>$LOGFILE
rsh catbert /usr/bin/mt -f /dev/rmt0h rewind
sleep 120
echo "UNLOADING Slot 1 Drive 0..." >>$LOGFILE
rsh catbert 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 "vrdumpKanga.*.Z" -mtime +14 -print | xargs
ls -l >>$LOGFIL
E 2>>$LOGFILE
find /usr/local/backupLogs -name "vrdumpKanga.*.Z" -mtime +14 -print | xargs
rm -f >>$LOGFIL
E 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 from my restore log file:

*******************************************

KANGA DUMP Backup Log File.... Thu Oct 4 17:16:37 EST 2001

LOADING Slot 1 Drive 0...
REWINDING TAPE...
Trying to establish connection to host catbert using username root...
path : /
dev/fset : root_domain#root
type : advfs
advfs id : 0x3b6aae38.0001e430.1
rvdump: Date of last level 0 dump: the start of the epoch
rvdump: Dumping directories
rvdump: Dumping 91113255 bytes, 138 directories, 2058 files
rvdump: Dumping regular files

rvdump: Status at Thu Oct 4 17:20:15 2001
rvdump: Dumped 91238152 of 91113255 bytes; 100.1% completed
rvdump: Dumped 138 of 138 directories; 100.0% completed
rvdump: Dumped 2058 of 2058 files; 100.0% completed
rvdump: Dump completed at Thu Oct 4 17:20:15 2001
Trying to establish connection to host catbert using username root...
path : /usr
dev/fset : usr_domain#usr
type : advfs
advfs id : 0x3b6aae38.00097c90.1
rvdump: Date of last level 0 dump: the start of the epoch
rvdump: Dumping directories
rvdump: Dumping 1235184639 bytes, 1812 directories, 37741 files
rvdump: Dumping regular files

rvdump: Status at Thu Oct 4 17:25:31 2001
rvdump: Dumped 704533014 of 1235184639 bytes; 57.0% completed
rvdump: Dumped 1212 of 1812 directories; 66.9% completed
rvdump: Dumped 23271 of 37741 files; 61.7% completed

rvdump: Status at Thu Oct 4 17:29:29 2001
rvdump: Dumped 1237508881 of 1235184639 bytes; 100.2% completed
rvdump: Dumped 1812 of 1812 directories; 100.0% completed
rvdump: Dumped 37741 of 37741 files; 100.0% completed
rvdump: Dump completed at Thu Oct 4 17:29:29 2001
./rvdumpKanga: /sbin/vrdump: not found
./rvdumpKanga: /sbin/vrdump: not found
REWINDING TAPE...

FILESYSTEM / FILE 1
Trying to establish connection to host catbert using username root...
rvrestore: unable to use save-set; invalid or corrupt format


************* PROGRAM ABORT **************

rvrestore: can't obtain fileset attributes



FILESYSTEM /usr FILE 2
Trying to establish connection to host catbert using username root...
rvrestore: unable to use save-set; invalid or corrupt format


************* PROGRAM ABORT **************

rvrestore: can't obtain fileset attributes



FILESYSTEM /var FILE 3
Trying to establish connection to host catbert using username root...
remote error from read() is: No space left on device
or the filepath could be too long for remote rmt version
(older versions only allowed 64 characters): errno 28
rvrestore: unable to use save-set; invalid or corrupt format


************* PROGRAM ABORT **************

rvrestore: can't obtain fileset attributes



FILESYSTEM /disk1 FILE 4
./rvdumpKanga: /sbin/rrestore: not found
REWINDING TAPE...
UNLOADING Slot 1 Drive 0...

Cleaning up /usr/local/backupLogs...


KANGA DUMP Backup Completed.... Thu Oct 4 17:43:36 EST 2001

***************************************


My original posting is as follows:

Hi everyone,

I have an alpha 800 w/ tru64 V4.0b that has just ufs file systems. It does
not have the vdump binary on this system, but has a TZ891 DLT 5 tape library
attached to it.

I want to back-up a 2 each DS-10s, tru64 V5.1, that has an identical
configuration of advfs and ufs:

Filesystem 1024-blocks Used Available Capacity Mounted on
root_domain#root 524288 88126 430160 18% /
/proc 0 0 0 100% /proc
usr_domain#usr 2621440 1123641 1390048 45% /usr
usr_domain#var 2621440 88088 1390048 6% /var
/dev/disk/dsk0h 11148948 1544596 8489457 16% /disk1
mfs:5173 241631 1 217466 0% /mfsspace

1. Is this possible?

2. If so what are your thought about doing this, since the alpha 800 does
not have vdump on it. Since dump/rdump does not handle advfs (as far as I
know).

3. I have another system that has vdump on it, but its a V4.0f system, so
can I copy the vdump binary to the alpha 800 and do a rsh to back up the
DS10?

Due to rack space I am not able to connect the tape to a DS10 at this time,
but hopefully will in the future.




Mike Kirkland
Unix System Administrator
National Data Corporation
Phone: (918) 481-2817
Fax: (918) 481-4275
mike.kirkland_at_ndchealth.com <mailto:mike.kirkland_at_ndchealth.com>
NDC®| HEALTH
6100 South Yale Avenue
Suite 1900
Tulsa, OK 74136
Received on Fri Oct 05 2001 - 00:23:17 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT