Sponsored Content
Operating Systems AIX Copying to tape drive throws error Post 302248760 by ravager on Sunday 19th of October 2008 03:29:13 PM
Old 10-19-2008
Try using backup like this
if this fails check you have a tape in and that you have the correct driver in the system for this




#!/bin/ksh
#backup all stuff in a vg
# some restore commands for your use
# restore -xvqf /dev/rmt0.1 /stage/aix
# restore -Tf /dev/rmt0.1

# tctl -f /dev/rmt0 rewind
# tctl -f /dev/rmt0.1 fsf 9
# restore -xvqf /dev/rmt0.1 /stage/Directory
for i in `lsvg -l datavg |egrep -v "N/A|TYPE" |awk '{print $7}'`
do
echo " $i "
find $i -print |backup -iqvf /dev/rmt0.1 > /tmp/Filesystem_backup`date +%d `.log 2>&1
done


##########################
also see if you have tapeutil
=====================

Moving Tape to Drive
================
tapeutil
Use the menu and select
1 /dev/smc0 We want to work with this robot

then do
14 Do Inventory of the Robot

Find a tape in a slot eg 4097 ( 4107 4118)
Look at tape drive address ( 256 )

16. Move Medium
Enter Source Address: 4107
Enter Destination Address: 256
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

8mm tape drive I/O error

hello, I don't know what exactly the cause and the solution!! suddenly I receive this error message when I want to use the 8mm tape drive "I/O write error" I disconnect the tape drive and I hook it in another WS and I receive this error :- ... (5 Replies)
Discussion started by: geoquest
5 Replies

2. UNIX for Advanced & Expert Users

Tape Drive error

I have a hp d 350 running on 10.2,im having a problem with the dds2 tape drive whenever i tried backing up larger files...i have remove the tape driver and add it using sam again but still the tape drive is not working .....is there a solution to this problem? # tar cvf /dev/rmt/0m priso.ds a... (3 Replies)
Discussion started by: giriplug
3 Replies

3. Solaris

Error After Installing Tape Drive

Hi, I am a newbie to Solaris, I have a SunFire V120 box, i was trying to install a tape drive(HP SureStore DAT24), i did the install in this manner. # rm -rf /etc/path_to_inst # init 6 later at the "ok" prompt i gave "boot -ar" after doing that it asked me various options i accepted the... (2 Replies)
Discussion started by: rajendra.rait
2 Replies

4. SCO

back-up drive : tape error

i have an ibm machine with dds4 drive running sco. i bought new hp dds4 tape for my back-up. the new tapes are not being read by the system, it says tape error, no such device. i've already clean the drive several times but still the same error occur. i've tried to use the same tape on our windows... (3 Replies)
Discussion started by: yackim
3 Replies

5. Shell Programming and Scripting

Substr throws an ERROR. Any alternatives?

Can somebody please help me to remove the last character of a string.?? I have a string variable, in which I dynamically put values in a for loop.I want to remove the last character from the string. But, the problem is I will not know which character can come in the string (Its inside for... (3 Replies)
Discussion started by: naseert
3 Replies

6. Solaris

Hard Error:DAT Tape Drive

Well I have just added new tape drive to my server (lto) However I am getting few errors in using it. I have checked status with #iostat -En : giving me few hard errors, few soft errors and execution error. Also tape status is not visible as "no sense" its coming as "no additional sense". I... (5 Replies)
Discussion started by: saurabh84g
5 Replies

7. UNIX for Dummies Questions & Answers

scp throws error

My script is like STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 100); printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm') touch $STAMP /sasdata/copydata/ find /sasdata/copydata -type f ! -newer /sasdata/copydata/ -print > output3.txt awk '{print "scp ... (6 Replies)
Discussion started by: tushar_spatil
6 Replies

8. HP-UX

DLT 7000 tape drive failing with "write error on a record in the index"

HP rp5450 (L2000) running HP-UX 11.11B Using DLT 7000 and DLT 4000 tape drives for nightly full backups Backup jobs created by SAM DLT 7000 cron entry is as follows: 00 2 * * 1-6 /usr/sam/lbin/br_backup DLT FULL Y /dev/rmt/0m /var/sam/graphLCAa17036 root Y 1 N > /var/sam/SAM_br_msgs 2>&1... (1 Reply)
Discussion started by: dreh99
1 Replies

9. UNIX for Dummies Questions & Answers

Copying tape-to-tape on UNIX

I am using a 4mm tape to backup my Unix system. However, I wanted to make a copy all of the files and archive headers (or just the archive headers if that's possible) created on one of my tapes to another 4mm tape. I only have one tape drive. Is there a command that will complete such task? ... (1 Reply)
Discussion started by: acoco
1 Replies
mt(1)							      General Commands Manual							     mt(1)

NAME
mt - magnetic tape manipulating program SYNOPSIS
tapename] command [count] Obsolescent tapename] command [count] DESCRIPTION
is used to give commands to the tape drive. If tapename is not specified, the environment variable is used; if is not defined, the default drive is used. winds the tape in the requested direction (forward or backward), stopping after the specified count EOF marks or records are passed. If count is not specified, one is assumed. Each EOF mark counts as one record. When winding backwards, the tape always stops at the BOT marker, regardless of the number remaining in count. accepts the following commands: Write count EOF marks. Forward space count files. Forward space count records. Backward space count files. Backward space count records. Rewind tape. Rewind tape and go offline. Seek to end of data (DDS and QIC drives only). Write count setmarks (DDS drives only). Forward space count setmarks (DDS drives only). Backward space count setmarks (DDS drives only). Print status information about the tape drive. Reserve tape drive for sole use by the host issuing the command (stape or estape driver only). Release tape drive from sole use by the host issuing the command (stape or estape driver only). Spacing operations (back or forward space file or record) leave the tape positioned past the object being spaced to in the direction of motion. That is, backspacing a file leaves the the tape positioned before the file mark, forward spacing a file leaves the tape positioned after the file mark. This is consistent with all classical usage on tapes. WARNINGS
Only raw, no-rewind Berkeley-type devices should be specified. This type of device will not reposition the tape upon close. An example of such a device is or See mt(7) for more details. It is possible to wind the tape beyond the EOT marker and off the end of the reel. A reservation may only be cleared with a release by the host that issued the original reserve. In the event that the host that holds the reservation is no longer available, the command may be used to reclaim the device by issuing a bus device reset. See st(1M) for more details. The reserve/release functionality can only be issued to drives using the or driver. EXAMPLES
Rewind the tape associated with the device file or (if legacy DSF is disabled): FILES
Raw magnetic tape interface (stape) Raw magnetic tape interface (estape) Default tape interface. If legacy DSF is disabled, the default value is AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
dd(1), st(1M), intro(7), mt(7). mt(1)
All times are GMT -4. The time now is 04:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy