From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078608810336.tru64-unix-managers.marc@archive.invalid> From: Derrick Miller Date: Mon, 17 Feb 1997 17:05:11 +0000 To: tru64-unix-managers Subject: dump not working X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078608810336 Hi - I have had an ongoing problem with my backups not completing. I'm doing backups at 4:30 AM, with the system still up. This machine is our web / dns / mail server so there are no shell users logged in. Following is the script that I run every night as root, via cron, and a sample of the type of error I'm getting. I've tried cleaning the tape drive. Is there something wrong with my script? Any ideas would be very much appreciated. I'll summarize. Thanks, Derrick Miller Herald-Mail Co. Hagerstown, MD, USA derrickm@herald-mail.com phuture@fred.net ---------- Script I use for backup ---------- # full_nightly_backup.sh - backup both filesystems to tape cd / # Spit out stdio / stderr to be mailed to administrator each night echo "Beginning backup for:" date # Commit disk writes /usr/sbin/sync # Bring tape drive online and rewind tape /usr/bin/mt -f /dev/nrmt0h online /usr/bin/mt -f /dev/nrmt0h rewind # Backup / and /usr and /usr2 filesystems /usr/sbin/dump -0uf /dev/nrmt0h / /usr/sbin/dump -0uf /dev/nrmt0h /usr /usr/sbin/dump -0uf /dev/nrmt0h /usr2 # Take tape drive offline /usr/bin/mt -f /dev/nrmt0h rewoffl # Audi echo "Backup completed for:" date ---------- Results of backup ---------- Beginning backup for: Fri Feb 14 03:45:00 EST 1997 dump: Dumping from host mufasa.herald-mail.com dump: Date of this level 0 dump: Fri Feb 14 03:45:22 1997 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping /dev/rrz0a (/) to /dev/nrmt0h dump: Mapping (Pass I) [regular files] dump: Mapping (Pass II) [directories] dump: Estimate: 35023 tape blocks on 0.08 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: 1.43% done -- finished in 00:03 dump: Actual: 35087 tape blocks on 1 volume(s) dump: Feet remaining on tape: 2119 dump: Volumes used: 1 dump: Level 0 dump on Fri Feb 14 03:45:22 1997 EST dump: Dump completed at Fri Feb 14 03:46:20 1997 EST dump: Dumping from host mufasa.herald-mail.com dump: Date of this level 0 dump: Fri Feb 14 03:46:20 1997 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping /dev/rrz0g (/usr) to /dev/nrmt0h dump: Mapping (Pass I) [regular files] dump: Mapping (Pass II) [directories] dump: Estimate: 491413 tape blocks on 1.10 volume(s) dump: Dumping (Pass III) [directories] dump: Volume 1, tape # 0001, begins with blocks from i-node 2 dump: 0.10% done -- finished in 00:49 dump: Dumping (Pass IV) [regular files] dump: 35.95% done -- finished in 00:08 dump: Write error -- wanted to write: 10240, only wrote: -1 slave_work(): write(): I/O error dump: Write error - /dev/nrmt0h, volume 1, 1261 feet -- cannot recover dump: Cannot fopen /dev/tty for reading query(): fopen(): No such device or address dump: Cannot remove shared memory remove_shared_memory(): shmctl(): Invalid argument dump: SIGTERM received -- Try rewriting dump: Unexpected signal -- cannot recover dump: Dumping from host mufasa.herald-mail.com dump: Date of this level 0 dump: Fri Feb 14 03:53:17 1997 EST dump: Date of last level 0 dump: the start of the epoch dump: Dumping /dev/rrz0h (/usr2) to /dev/nrmt0h dump: Mapping (Pass I) [regular files] dump: Mapping (Pass II) [directories] dump: Estimate: 56418 tape blocks on 0.13 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.89% done -- finished in 00:03 dump: Write error -- wanted to write: 10240, only wrote: -1 slave_work(): write(): I/O error dump: Write error - /dev/nrmt0h, volume 1, 20 feet -- cannot recover dump: Cannot fopen /dev/tty for reading query(): fopen(): No such device or address dump: Cannot remove shared memory remove_shared_memory(): shmctl(): Invalid argument dump: SIGTERM received -- Try rewriting dump: Unexpected signal -- cannot recover /dev/nrmt0h: No such device or address Backup completed for: Fri Feb 14 03:54:12 EST 1997 ************************************************* Cron: The previous message is the standard output and standard error of one of your cron commands.