Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tar Acrhive to tape

Status
Not open for further replies.

smicro

MIS
Dec 26, 2002
281
US
Having an issue when creating a tar archive to tape. The issue doesn't always occur. The archive calls a script within cron and runs: tar -cvf /dev/rmt/2m ./*. The error received is
Can't open /dev/tty to prompt for more media. When I run this from the command line I get
tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.
Doesn't make sense, we're using dds3 tapes and we are backing up about 1GB of data. The backup always runs using dds3 tapes and is always about 1gb of data. I ran mt -f /dev/rmt/2mn rew
before running to see if that helps but received the same error. Output of mt -f /dev/rmt/2mn status is
Drive: HP C1537A
Format: DDS-3 format
Status: [41112500] BOT online compression immediate-report-mode
File: 0
Block: 0
Any info would be great, thanks.
 
Think I might have figured this out, still checking. I'm thinking that /dev/rmt/2mn, the n (no rewind) is messing things up. Didn't realize that was there until I typed this. Thanks.
 
Maybe you can do a
mt -f /dev/rmt/2m rewind
before the tar command in your script, to make sure the tape has been written from the beginning.

Hope this helps!
 
Have you tried with another tape? Also, might be worth checking your kernel value for st_san_safe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top