SUMMARY: tape ejects during ufsdumps

From: pschauss@parker.com
Date: Wed Aug 04 1999 - 09:45:34 CDT


Original question:

> I am running a cron job which does a ufs dump of all of my file
> systems. The script is shown below. In the middle of the 9th
> file, the tape ejects. I can restore any file on the previous backup
> files as well as any file prior to the point at which the tape ejects.
>
> The tape drive is an Archive Python 4mm DAT external drive (sold under
> the Sun label.)
>
> I do not believe that the tape is full since my other systems (which use
> the same drive) give a message to that effect and prompt for user action.
>
> Any ideas as to what is going on here?
>
> Thanks,
> Peter Schauss
> Parker Hannifin Corp
> Smithtown, NY
>
> Backup script:
>
> #!/bin/ksh
> #
> # Backup file systems
> #
> echo =======================================
> echo File 01 /u06
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c1t2d0s0 2>&1
> echo =======================================
> echo File 02 - /
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c0t3d0s0 2>&1
> echo =======================================
> echo File 03 /usr
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c1t1d0s6 2>&1
> echo =======================================
> echo File 4 /var
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c1t2d0s1 2>&1
> echo =======================================
> echo File 5 /opt
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c0t3d0s5 2>&1
> echo =======================================
> echo File 6 /u01
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c1t4d0s3 2>&1
> echo =======================================
> echo File 7 /u02
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c2t0d0s1 2>&1
> echo =======================================
> echo File 8 /usr/openwin
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c1t4d0s0 2>&1
> echo =======================================
> echo File 9 /u03
> ufsdump 0f /dev/rmt/0cn /dev/rdsk/c2t1d0s0 2>&1
> echo =======================================
> echo File 10 /u04
> ufsdump of /dev/rmt/0cn /dev/rdsk/c2t2d0s0 2>&1
> # echo =======================================
> # echo File 11 /export/home
> # ufsdump 0f /dev/rmt/0cn /dev/rdsk/c0t3d0s3 2>&1

Thanks to everyone who replied:

Stuart Whitby.
Mark Hargrave
Philip P. Dixon
plus one message that I lost.

Turns out the Philip Dixon had the correct answer.
My command for dumping File 10 said "of" instead of "0f".
I looked it up on the man page and, sure enough, the o option
tells ufs dump to eject the tape. I changed it to 0f, ran
the script, and was able to restore all of the files on dump file 9.

Thanks for the help.

Peter Schauss
Parker Hannifin Corp
Smithtown, NY



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:24 CDT