Sponsored Content
Top Forums UNIX for Advanced & Expert Users tar problems using Sony AIT drive Post 302105097 by thumper on Tuesday 30th of January 2007 04:02:49 PM
Old 01-30-2007
tar problems using Sony AIT drive

Recently we brought up a Spectralogic 2K Tape Library that had been out of service for about 3 years to replace a DDS-4 tape drive unit as our main backup device.
Everything seemed to go fine but now I have run into a little problem.

System details:
FBSD 6.1
SpectraLogic 2K library with a Sony SDX-300 SE tape drive.
Tapes: Sony SDX 1-35C -- 35GB native capacity.
No compression.

I can write and read tapes without a problem as long as I am using a new tape. Since we have only been using this unit for a couple of months almost all of my tapes are new.

Last week I returned a tape into the rotation for the first time and wound up being unable to write all of the files required for the backup -- 22GB of data.

The tape was prepared by running mt -f /dev/sa0 erase and the mt -f /dev/sa0 rewind.
I believe this device automatically rewinds the tape when a tar completes but since I received an error code I was not sure what the tape status would be so I performed the rewind.

Here is my first pass at writing 16 files, ~22 GB, to tape:

troll2[431]# tar -f /dev/sa0 -cvv 26/
a 26
a 26/yoda.2007.01.26.07.45.23.cksum.bz2
a 26/yoda.2007.01.26.07.45.23.tar.bz2
a 26/chewy.2007.01.26.07.43.32.cksum.bz2
a 26/chewy.2007.01.26.07.43.32.tar.bz2
a 26/wssview.2007.01.26.00.10.00.tar.bz2
a 26/vpnauth.2007.01.26.00.10.00.tar.bz2
a 26/util.2007.01.26.00.10.00.tar.bz2
a 26/tdhs_main.2007.01.26.tar.bz2
a 26/siteinformer.2007.01.26.00.10.00.tar.bz2
a 26/ordersys.2007.01.26.00.10.00.tar.bz2: Write error: Operation not permittedWrite error: Operation not permittedtroll2[432]#

I thought that maybe the tape was not fully rewound so I again did
mt -f /dev/sa0 erase and
mt -f /dev/sa0 rewind.

Below is the screenshot of my second pass:

troll2[434]# tar -f /dev/sa0 -cvv 26/
a 26
a 26/yoda.2007.01.26.07.45.23.cksum.bz2
a 26/yoda.2007.01.26.07.45.23.tar.bz2
a 26/chewy.2007.01.26.07.43.32.cksum.bz2: Write error: Operation not supportedWrite error: Operation not supportedtroll2[435]#

At this point I selected a new tape, ran the backup with no problem during the write and tested the tape by performing a full read.

I again mounted the suspect tape and tried to write the files and the result was
troll2[434]# tar -f /dev/sa0 -cvv 26/
a 26
a 26/yoda.2007.01.26.07.45.23.cksum.bz2
a 26/yoda.2007.01.26.07.45.23.tar.bz2
a 26/chewy.2007.01.26.07.43.32.cksum.bz2: Write error: Operation not supportedWrite error: Operation not supportedtroll2[435]#

I have tried this a couple of more times with the same result. (What is that saying about trying the same thing over and over and expecting different results.)

I had a tape that was used to test the tape drive with when we first got the unit so I tried it. The results were identical to those posted above.

Google did not provide any help and I am now officially lost.
Can anyone point to the error of my ways?

Thanks
thumper
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

New Drive problems

Sun Ultra 80 ... had to connect an additional drive. connect it according to hardware manual The problem is when i try to power on the system , it dosent start, .. like the system is dead. :( So i remove the new drive and voila ... power starts up . Can anyone pinpoint wats goin on here. ... (7 Replies)
Discussion started by: DPAI
7 Replies

2. Solaris

tar on remote tape drive

hello guys, am trying to save a file file1 to a remote tape drive using tar and i get a permission denied error as shown below: server1%tar cvf - file1 | rsh server2 dd of=/dev/rmt/1m conv=sync a file1 1883905K permission denied since server2 requires login username and password, i see in... (3 Replies)
Discussion started by: nom
3 Replies

3. Solaris

Tar & Tape drive without media

Hi all, I would like to know what would happen if the tape (media) is not placed on the drive and a tar command is executed to backup on the tape. My problem is that tar command hanged for multiple days instead of throwing the error, Is it valid behaviour? I was unable to test the... (4 Replies)
Discussion started by: jmsathish
4 Replies

4. Solaris

Tape drive problems

Recently we had a problem with a CPU card on our SunFire V880 which has Solaris 9 OS. we removed the card and there was also a problem with our usr which was accidentally deleted. We able to restore the usr but now we having a problem with our tape drive. Previously we could write to the with ... (5 Replies)
Discussion started by: rahmantanko
5 Replies

5. SCO

Problems Detecting HP Tape Drive

I am trying to install an HP StorageWorks DAT40 Tape drive at SC0 5.0.7. The tape drive is not functional. When I run #sconf -v this is what I get; Sdsk ad160 0 0 0 0 Sdsk ad160 0 0 1 0 Stp ad160 0 0 3 0 But when... (2 Replies)
Discussion started by: RicardoM
2 Replies

6. UNIX for Advanced & Expert Users

tar to tape drive command

I want to use this command to tar to tape: tar cf - DIR | compress > `hostname`_`date +%m-%d-%y`.DIR.tar.Z this of course goes to the FS. How do I modify this to go directly to tape? My tape device is /dev/rmt/0 thanks. Having so many posts you should be familiar using code tags.... (7 Replies)
Discussion started by: djehresmann
7 Replies

7. HP-UX

LV and/or physical drive problems HP9000

I'm a technician who has been called upon to troubleshoot an ancient HP9000 K260, running HP UX 11.11. After a power sag/crash/restart FSCK gave multiple error/warning messages about logical volumes and groups. I have some modest experience with Unix servers, but not on such an old and... (2 Replies)
Discussion started by: patrick.scalia
2 Replies

8. UNIX for Advanced & Expert Users

Speed problems with tar'ing a 500Gb directory on an eSATA drive

I'm trying to compress a directory structure on an external hard drive, connected by eSATA cable to my linux (Ubuntu 10.04) desktop. The total volume is 500Gb with half a million files, ranging from Kb to Mb in size. The drive is 2Tb, with 0.8Tb free space before compression. running "tar -pcf... (10 Replies)
Discussion started by: omnisppot
10 Replies
AMVERIFY(8)						      System Manager's Manual						       AMVERIFY(8)

NAME
amverify - check an Amanda tape for errors SYNOPSIS
amverify config [ slot [ runtapes ] ] DESCRIPTION
Amverify reads an Amanda format tape and makes sure each backup image can be processed by amrestore and, if possible, the appropriate restore program (e.g. tar). Amverify runs amrestore on each file of the tape and pipes the output to a restore program (if available) with an option to create a cata- logue of the backup. The catalogue itself is discarded. Only the success or failure of the operation itself is reported. If the backup image cannot be processed by the restore program, e.g. if it was written on a different operating system, the image is sent through dd to /dev/null. This still determines if the tape is readable, but does not do any internal consistency check on the image. If config is set up to use a tape changer, the slot argument may be used to choose the first tape to process. Otherwise, the current slot is used. The runtapes configuration parameter determines how many tapes are processed unless it is specified on the command line. See the amanda(8) man page for more details about Amanda. AUTHOR
Axel Zinser <fifi@icem.de> SEE ALSO
amrestore(8), amanda(8), amverifyrun(8) AMVERIFY(8)
All times are GMT -4. The time now is 02:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy