From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076330121611.tru64-unix-managers.marc@archive.invalid> From: Rob van Strien Date: Thu, 28 Mar 1996 16:43:53 +0000 To: tru64-unix-managers Subject: SUMMARY: What is wrong with my tape (device)? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076330121611 Two weeks ago I had trouble with my tape unit. I could not dump or tar files to it (see my original posting below). Thank you all very much for your anwers. Most of you thought about a hardware problem with the tape drive and told me to clean it and check the cables. So I bought a cleaning tape and checked all the cables. Still the same errors. I then changed the complete drive (the computer center of the university had a spare unit for this purpose) and everything worked! Thanks everyone. Special thanks to the people who supplied me with the flags for the dump command. I now use the following: dump -0u -b 64 -d 61000 -s 114880 -f /dev/nrmt0h (supplied by Jon Buchanan - Jonathan.Buchanan@ska.com) ----my original posting---------: Hello, I'm new to UNIX and I have to write a script file to perform a daily backup. I just cannot figure out the right dump command and its options. We have a DEC Alphastation 3000/300X, with DEC OSF/1 V2.1. The backup device is a Hewlett Packard's HP35470/80A DDS tape drive. I want to backup multiple file systems om one tape. We have 3 x 1 Gb disks and the backup medium should be able to hold at least 4 Gb. This is the script file I run (see DEC OSF/1 System Administrati on (AA-PS2RB-TE) 10-6): #! /bin/csh /usr/sbin/dump -0uf /dev/nrmt0h / /usr/sbin/dump -0uf /dev/nrmt0h /usr /usr/sbin/dump -0uf /dev/nrmt0h /mnt2 /usr/sbin/dump -0uf /dev/nrmt0h /mnt /usr/sbin/dump -0uf /dev/nrmt0h /usr/users And this is the frustrating result: /usr/sbin/dump -0uf /dev/nrmt0h / dump: Dumping from host rulxha dump: Date of this level 0 dump: Thu Feb 29 14:41:51 1996 WET dump: Date of last level 0 dump: the start of the epoch dump: Dumping /dev/rrz3a (/) to /dev/nrmt0h dump: Mapping (Pass I) [regular files] dump: Mapping (Pass II) [directories] dump: Estimate: 51818 tape blocks on 0.12 volume(s) dump: Dumping (Pass III) [directories] dump: Volume 1, tape # 0001, begins with blocks from i-node 2 dump: Dumping (Pass IV) [regular files] dump: 0.96% done -- finished in 00:01 dump: Write error -- wanted to write: 10240, only wrote: -1 slave_work(): write(): I/O error dump: Write error - /dev/nrmt0h, volume 1, 7 feet -- cannot recover dump: NEEDS ATTENTION: Do you want to restart this volume?: ("yes" or "no") yes dump: Replace the faulty tape with a new one dump: after it has finished rewinding dump: This dump volume will be rewritten dump: If this volume contained more than one dump: dump, only the last one will be rewritten dump: on the new volume; previous dumps are still dump: intact on the faulty volume dump: Rewinding and unloading tape dump: Close error rewind_tape(): close(): I/O error dump: Change Tape: Mount volume 2, tape # 0002 dump: Cannot open device file /dev/nrmt0h dump: NEEDS ATTENTION: Do you want to retry the open?: ("yes" or "no") no dump: SIGTERM received -- Try rewriting dump: Unexpected signal -- cannot recover dump: The ENTIRE dump is aborted Terminated bash# dump: SIGTERM received -- Try rewriting dump: Unexpected signal -- cannot recover dump: The ENTIRE dump is aborted Can somebody tell what all this means? I tried it with several new tapes, all with the same result. FWIW, the mt status command. I'll be happy to supply more information if I only knew what is relevant. I'm used to openVMS and I just do not yet understand these errors (Will I ever? What does "Do yo u want to retry the open?" means?) DEVIOGET ELEMENT CONTENTS ---------------- -------- category DEV_TAPE bus DEV_SCSI interface SCSI device TZxx adpt_num 0 nexus_num 0 bus_num 0 ctlr_num 0 slave_num 32 dev_name tz unit_num 0 soft_count 0 hard_count 6 stat 5 DEV_BOM DEV_OFFLINE category_stat 20000 DEV_61000_BPI MTIOCGET ELEMENT CONTENTS ---------------- -------- mt_type MT_ISSCSI mt_dsreg 0 mt_erreg 0 mt_resid 0 Please help or point me to the right place to look. Thanks in advance. -Rob . . . Rob van Strien Instituut voor Nederlandse Lexicologie, Leiden, NL rob@rulxho.leidenuniv.nl