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
READ_TAPE(8)						       AFS Command Reference						      READ_TAPE(8)

NAME
read_tape - Reads volume dumps from a backup tape to a file SYNOPSIS
read_tape -tape <tape device> -restore <# of volumes to restore> -skip <# of volumes to skip> -file <filename> [-scan] [-noask] [-label] [-vheaders] [-verbose] [-help] DESCRIPTION
read_tape reads an OpenAFS backup tape and prompts for each dump file to save. This command does not require any OpenAFS infrastructure. This command does not need an OpenAFS client or server to be available, which is not the case with the backup(8) command. The dump files will be named for the Read/Write name of the volume restored. After saving each dump file, vos restore or restorevol can be used to restore the volume into AFS and non-AFS space respectively. read_tape reads the tape while skipping the specified number of volumes. After that, it restores the specified number of volumes. read_tape doesn't rewind the tape so that it may be used multiple times in succession. OPTIONS
-tape <tape device> Specifies the tape device from which to restore. -restore <# of volumes to restore> Specifies the number of volumes to restore from tape. -skip <# of volumes to skip> Specifies the number of volumes to skip before starting the restore. -file <filename> Specifies an alternate name for the restored volume dump file rather than the default of the volume name. -scan Scans the tape. -noask Doesn't prompt for each volume. -label Displays the full dump label. -vheaders Displays the full volume headers. -verbose Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear. -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
The following command will read the third through fifth volumes from the tape device /dev/tape without prompting: % read_tape -tape /dev/tape -skip 2 -restore 3 -noask PRIVILEGE REQUIRED
The issuer must have access to read and write to the specified tape device. SEE ALSO
backup(8), restorevol(1), vos_restore(1) COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com> This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for OpenAFS. OpenAFS 2012-03-26 READ_TAPE(8)
All times are GMT -4. The time now is 05:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy