From: Kirkland, Mike # IHTUL (mike.kirkland@ndchealth.com)
Date: Tue Oct 22 2002 - 20:09:58 EDT
Hi everyone,
I recently upgrade an alpha800 running tru64 unix v5.1 with patchkit5. I am
having problems with being able to conduct backups on the system after the
upgrade. My backup script has not been changed in 4 months and worked fine
before the upgrade. The backup is being sent to a sony SDT-9000 (4mm dat
tape drive) that was installed by compaq when we bought the machine new.
I logged a call with HP and the SE said to try and run the cleaning tape
thru it. I did that and then I was able to test by successfully backing up
the root domain to tape, it failed again at night, when the backup is run by
cron.
Any thoughts will be appreciated.
Here is the error that is in my backup log:
# cat dumpRatbert.10222002
*******************************************
RATBERT DUMP Backup Log File.... Tue Oct 22 00:00:01 CDT 2002
path : /disk0
dev/fset : /dev/disk/dsk1c
type : ufs
vdump: Date of last level 0 dump: the start of the epoch
vdump: Dumping directories
vdump: Dumping 2962871290 bytes, 1996 directories, 8843 files
vdump: Dumping regular files
vdump: Status at Tue Oct 22 00:05:57 2002
vdump: Dumped 550253664 of 2962871290 bytes; 18.6% completed
vdump: Dumped 9 of 1996 directories; 0.5% completed
vdump: Dumped 136 of 8843 files; 1.5% completed
vdump: unable to write to device </dev/ntape/tape0_d1>; [5] I/O error
vdump: unable to prompt input for retry on device; [25] Not a typewriter
vdump: can't open dev </dev/ntape/tape0_d1>; [5] I/O error
vdump: can't open dev </dev/ntape/tape0_d1>; [5] I/O error
vdump: can't open dev </dev/ntape/tape0_d1>; [5] I/O error
vdump: can't open dev </dev/ntape/tape0_d1>; [5] I/O error
vdump: can't open dev </dev/ntape/tape0_d1>; [5] I/O error
vdump: can't open dev </dev/ntape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
vrestore: unable to open save-set </dev/tape/tape0_d1>; [5] I/O error
This is what I get when I try to run the backup script manually.
# pwd
/disk2/local/backupLogs
# cd ..
# pwd
/disk2/local
# cd bin
# ./dumpRatbert
Error on device named /dev/tape/tape0_d1 - Place SDT-9000 tape drive unit #2
ONLINE
Killed
Here is some other info that might shed some light.
# scu
scu> show edt
CAM Equipment Device Table (EDT) Information:
Bus/Target/Lun Device Type ANSI Vendor ID Product ID Revision
N/W
-------------- ----------- ------ --------- ---------------- --------
--- 0 0 0 Direct SCSI-2 COMPAQ BD009122C6 B016 W 0 4 0 CD-ROM SCSI-2 DEC RRD47 (C) DEC 1206 N 0 5 0 Sequential SCSI-2 SONY SDT-9000 0400 N 1 0 0 Direct SCSI-2 DEC HSZ22 (C) DEC D11O W 1 0 1 Direct SCSI-2 DEC HSZ22 (C) DEC D11O W 1 0 2 Direct SCSI-2 DEC HSZ22 (C) DEC D11O W 1 0 3 Direct SCSI-2 DEC HSZ22 (C) DEC D11O W 1 0 4 Direct SCSI-2 DEC HSZ22 (C) DEC D11O W scu> set nex b 0 t 5 l 0 Device: SDT-9000, Bus: 0, Target: 5, Lun: 0, Type: Sequential Access scu> show inquiry Inquiry Information: Peripheral Device Type: 0x1 (Sequential Access) Peripheral Qualifier: 0 (Peripheral Device Connected) Device Type Modifier: 0 Removable Media: Yes ANSI Version: 2 (Complies to ANSI X3.131-1994, SCSI-2) ECMA Version: 0 ISO Version: 0 Response Data Format: 2 (SCSI-2) Terminate I/O Process: No Additional Length: 31 Soft Reset Support: No Command Queuing Support: No Target Transfer Disable: No Linked Command Support: No Synchronous Data Transfers: Yes Support for 16 Bit Transfers: No Support for 32 Bit Transfers: No Relative Addressing Support: No Vendor Identification: SONY Product Identification: SDT-9000 Firmware Revision Level: 0400 scu> show error Request Sense Information: Error Code: 0x70 (Current Error) Valid Bit: 0 Segment Number: 0 Sense Key: 0 (NO SENSE - No error or no sense information) Illegal Length: 0 End Of Media: 0 File Mark: 0 Information Field: 0 Additional Sense Length: 0x12 Command Specific Information: 0 Additional Sense Code/Qualifier: (0, 0x17) = Cleaning requested Field Replaceable Unit Code: 0 Sense Specific Bytes: 00 00 00 Additional Sense Bytes: 00 00 00 00 08 a9 76 a0 scu> mt status scu: Command 'mt', keyword 'status' is invalid. scu> exit # mt status DEVIOGET ELEMENT CONTENTS ---------------- -------- category DEV_TAPE bus DEV_SCSI interface SCSI device SDT-9000 adpt_num 0 nexus_num 5 bus_num 0 ctlr_num 0 slave_num 2 dev_name tz unit_num 2 soft_count 0 hard_count 22472 stat 0x104 DEV_OFFLINE DEV_HARDERR category_stat 0x20000 DEV_61000_BPI DEVGETINFO ELEMENT CONTENTS ------------------ -------- media_status 0x10100 HardERR POS_VALID unit_status 0x102 Offline 2_FM_Close NO_Rewind Buffered record_size 0 density (current) 61000 BPI density (on write) 0 BPI Filemark Cnt 0 Record Cnt 10141 Class 2 - RDAT MTIOCGET ELEMENT CONTENTS ---------------- -------- mt_type MT_ISSCSI mt_dsreg 0x100 DEV_HARDERR mt_erreg 0x4 Nonrecoverable hardware error. mt_resid 0 mt_fileno 0 mt_blkno 10141 DEV_EEI_STATUS version 0x2 status 0x3400 Device hardware error (hard error) flags 0x1000007 CAM_STATUS SCSI_STATUS SCSI_SENSE CAM_DATA cam_status 0x4 CCB request completed with an err scsi_status 0x2 SCSI_STAT_CHECK_CONDITION scsi_sense_data (hex) 70 0 4 0 0 0 0 12 0 0 0 0 44 0 0 0 91 0 0 0 0 0 8 a9 76 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ASC/ASQ = 44/0 Internal target failure # Here is a copy of my backup script # cat dumpRatbert #!/bin/sh ############################################################################ #### # # dumpRatbert - shell script to backup the following filesystems on Ratbert # using DUMP; executes every Monday to do a full system backup # / : / filesystem (local files & directories only) # /usr : /usr filesystem # /disk0 : /disk0 filesystem # /disk1 : /disk1 filesystem # /disk2 : /disk2 filesystem # # WRITTEN BY: Jennifer Salcher # WRITTEN ON: 01/20/1997 # MODIFIED ON: 01/21/1997 - Jennifer Salcher # -Added commands to delete the existing control file backup # if it exists before making a new backup file. # 02/04/1997 - Jennifer Salcher # -Added commands to compress any Oracle Archive logs and to # remove logs older than 3 days. # 08/15/1997 - Jennifer Salcher # -Added commands to backup the /raid0 and /raid1 drives # 10-20-2001 msk # -Modified rmt and nrmt to tape and ntape for V5.1 upgrade # # # FILES USED: /usr/local/backupLogs/dumpRatbert.DATE # - Backup log file; contains list of files backed up # /usr/local/bin/begindisk1.sql # - SQL*PLUS script to alter the tablespaces on /disk1 to backup # /usr/local/bin/enddisk1.sql # - SQL*PLUS script to alter the tablespaces on /disk1 to normal # /usr/local/bin/begindisk2.sql # - SQL*PLUS script to alter the tablespaces on /disk2 to backup # /usr/local/bin/enddisk2.sql # - SQL*PLUS script to alter the tablespaces on /disk2 to normal # /usr/local/bin/controlbackup.sql # - SQL*PLUS script to backup the control files # /usr/local/bin/archivebackup.sql # - SQL*PLUS script to cycle the archive logs for backup # /usr/local/bin/dumpRatbert # - This shell script # # CRON COMMAND: 30 23 * * 1-5 /usr/local/bin/dumpRatbert # This will execute the backup job at 11:30 each night; M-F # NOTE: Tapes need to be changed every morning. # # HELP FILES: For additional infomation, see the dumpRatbert(1) man page # The source for the page is /usr/local/man/man1/dumpRatbert.1 # ############################################################################ #### # # DEFINE ALL VARIABLES USED IN THE SCRIPT # LOGFILE - Log file of backup; includes file list and other output and is # compressed at the completion of this script # ORACLE_HOME - Home Directory for the Oracle Product Installation # PATH - Search Path # ORACLE_SID - Oracle Instance (necessary for sqlplus) # LOGFILE=/usr/local/backupLogs/dumpRatbert.`date +%m%d%Y` ORACLE_HOME=/disk3/app/oracle/product/7.3.2 PATH=$ORACLE_HOME/bin:$PATH ORACLE_SID=TULD02 # export ORACLE_HOME PATH ORACLE_SID # # CREATE THE LOG FILE HEADER # echo "" >$LOGFILE echo "*******************************************" >>$LOGFILE echo "" >>$LOGFILE echo "RATBERT DUMP Backup Log File.... `date`" >>$LOGFILE echo "" >>$LOGFILE # # REWIND THE TAPE # #/usr/bin/mt -f /dev/rmt0h rewind /sbin/mt -f /dev/tape/tape0_d1 rewind # # BACKUP /DISK0 (Oracle system tables and redo logs) # #/usr/sbin/dump -0u -b 64 -d 61000 -s 153172 -f /dev/nrmt0h /disk0 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 /disk0 2>>$LOGFILE # # BACKUP /DISK1 (Oracle tables) # #/usr/sbin/dump -0u -b 64 -d 61000 -s 153172 -f /dev/nrmt0h /disk1 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 /disk1 2>>$LOGFILE # # # BACKUP /DISK2 (Oracle tables) #/usr/sbin/dump -0u -b 64 -d 61000 -s 153172 -f /dev/nrmt0h /disk2 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 /disk2 2>>$LOGFILE # # BACKUP / AND /usr # #/usr/sbin/dump -0u -b 64 -d 61000 -s 153172 -f /dev/nrmt0h /raid0 2>>$LOGFILE #/usr/sbin/dump -0u -b 64 -d 61000 -s 153172 -f /dev/nrmt0h /raid1 2>>$LOGFILE #/sbin/vdump -0u -b 64 -f /dev/nrmt0h / 2>>$LOGFILE #/sbin/vdump -0u -b 64 -f /dev/nrmt0h /usr 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 /raid0 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 /raid1 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 / 2>>$LOGFILE /sbin/vdump -0u -f /dev/ntape/tape0_d1 /usr 2>>$LOGFILE # # GENERATE THE FILE LISTING FOR THE BACKUP AND APPEND TO $LOGFILE # #/usr/bin/mt -f /dev/rmt0h rewind /sbin/mt -f /dev/tape/tape0_d1 rewind echo "" echo "FILESYSTEM /disk0 FILE 1" #/usr/sbin/restore -tvy -b 64 -s 1 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/vrestore -tv -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # echo "" echo "FILESYSTEM /disk1 FILE 2" #/usr/sbin/restore -tvy -b 64 -s 2 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/mt fsf 1 /sbin/vrestore -tv -s 1 -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # echo "" echo "FILESYSTEM /disk2 FILE 3" #/usr/sbin/restore -tvy -b 64 -s 3 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/mt fsf 2 /sbin/vrestore -tv -s 2 -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # echo "" echo "FILESYSTEM /raid0 FILE 4" #/usr/sbin/restore -tvy -b 64 -s 4 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/mt fsf 3 /sbin/vrestore -tv -s 3 -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # echo "" echo "FILESYSTEM /raid1 FILE 5" #/usr/sbin/restore -tvy -b 64 -s 5 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/mt fsf 4 /sbin/vrestore -tv -s 4 -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # echo "" echo "FILESYSTEM / FILE 6" /sbin/mt fsf 5 #/sbin/vrestore -tv -s 6 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/vrestore -tv -s 5 -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # echo "" echo "FILESYSTEM /usr FILE 7" /sbin/mt fsf 6 #/sbin/vrestore -tv -s 7 -f /dev/rmt0h >>$LOGFILE 2>>$LOGFILE # /sbin/vrestore -tv -s 6 -f /dev/tape/tape0_d1 >>$LOGFILE 2>>$LOGFILE # REWIND THE TAPE # 09-04-01 msk added line to eject tape mt offline # #/usr/bin/mt -f /dev/rmt0h rewind /sbin/mt -f /dev/tape/tape0_d1 rewind /sbin/mt offline # /usr/bin/compress usr/local/backupLogs/dumpRatbert.* exit 0 # Thanks, Mike Kirkland Unix System Administrator National Data Corporation Phone: (918) 481-2817 Fax: (918) 481-4275 mike.kirkland@ndchealth.com <mailto:mike.kirkland@ndchealth.com> NDC®| HEALTH 6100 South Yale Avenue Suite 1900 Tulsa, OK 74136 "This E-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply E-mail, and destroy all copies of the original message."
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:57 EDT