PAX error on retrieving from tape


 
Thread Tools Search this Thread
Operating Systems AIX PAX error on retrieving from tape
# 1  
Old 10-11-2007
PAX error on retrieving from tape

Hi, I am using AIX 5.3.0.0 and Ultrium LTO3 Tape Drive as rmt1. I have backup some of my database file using command "pax" as
pax -wvf /dev/rmt1 "./data01/abc.dmp"

But when I tried to read the file from tape by issuing the command,
pax -vf /dev/rmt1
The error message displayed as

pax: /dev/rmt1 : 0511-626 An invalid file header has been read.
pax: /dev/rmt1 : Skipping to the next file...

Anyone can let me know what is going on?
# 2  
Old 10-11-2007
1. have you rewound the tape?

2. you could use "dd" to dump the first 256 bytes to see if it looks like a sensible header.
# 3  
Old 10-12-2007
Help!!

FYI, this is LTO3 tape and is there any way to manually rewind the tape? Normally, we just insert the tape and it will rewind by itself.
FYI too, I have append the tape quite few times with command
pax -awvf /dev/rmt1 "./data01/abcd12.dmp"

May I know how to run the 'dd'?
# 4  
Old 10-12-2007
The device you are using is a rewinding (non-rewinding is /dev/rmt1.1) one,
for the dd
Code:
dd if=/dev/rmt1 of=/tmp/filehead.256 bs=1024

or just try man dd
# 5  
Old 10-12-2007
The message after the command 'dd' is
dd: 0511-065 Requested a write of 1024 bytes, but wrote only 1023.

May I know whether the tape is spoiled? or whether I can still retrieve the data?

Thanks in advance.\
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Error retrieving value from IPC shared memory

Assume in 1.txt file ,i have saved 32 writer.c ----------- #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include <stdio.h> #include<stdlib.h> #include<fcntl.h> int main(){ int shm_id; key_t mem_key; int *shm_ptr; int fd=open("1.txt",O_CREAT|O_RDWR,0777); mem_key =... (2 Replies)
Discussion started by: subi09
2 Replies

2. Shell Programming and Scripting

Help with tar/pax

Hi, I have tar ball "data.tar" which consists of many files from different directories. If I untar a file using following command, it will untar file to location /input/data tar -xvf data.tar /input/data/abc.txt I want the file to be untar in current directory and or any other... (3 Replies)
Discussion started by: pinnacle
3 Replies

3. Shell Programming and Scripting

error in retrieving records from DB

Hi ., I have 3 records in a oracle table... wen i connect to oracle from unix environment and query the table i get some errors... the script i used is g=`sqlplus -s "username/password" << EOF select column from table; EOF` if then echo $g fi The output i get... (1 Reply)
Discussion started by: cratercrabs
1 Replies

4. Shell Programming and Scripting

pax me out

hi I am using this command pax -f /Unix/codes/code.tar -r -s::/Unix/archive: objective is to transfer tar file /Unix/codes/code.tar to /Unix/archive with untarring done . For this reason i am using pax and not tar -xvf as we cant specify untarred destination in that the problem is... (2 Replies)
Discussion started by: ultimatix
2 Replies

5. AIX

Backup with Pax command. How to verify tape?

Dear all experts online, In my environment of AIX 5300-07, I am currently using "pax" command to backup all filesystems that I need to backup and it will take me around 4 hours time with LTO3 tape drive. When I need to verify the tape after backup, I am using "pax" command to list all files in... (2 Replies)
Discussion started by: kwliew999
2 Replies

6. Linux

error while retrieving image using system imager

This is the error that I am getting while retrieving image from image server using system imager.... Listening on LPF/lo/<null> sending on Socket/fallback/fallback-net DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on lo to 255.255.255.255 port 67 interval5... (1 Reply)
Discussion started by: nitesh_tarbani
1 Replies

7. UNIX for Advanced & Expert Users

pax help

we created a TAR file ( souce /opt/oracle/10.2) . If we want to extract it diff directory say (/tmp) . I know we can use pax to do this .but inside TAR we have absolute path ref . if we pax does it replaces absolute path in TAR ? Thanks (1 Reply)
Discussion started by: talashil
1 Replies

8. AIX

pax error on appending data to LTO3

I have problem when I use the command "pax -awvf /dev/rmt0 ./data1" in AIX 5.3.0.0. The command with parameter -a allow me to append the tape but when I try to retrieve the data that I append, it will show me error. I would like to know if anyone have the same problem and any solution found? Tq. (0 Replies)
Discussion started by: kwliew999
0 Replies

9. UNIX for Dummies Questions & Answers

Solaris and PAX

I am having trouble with the pax command on Saris. I want to sue it to untar a file to a different directory. So if mytar.tar conatins files that were in /u02/mydir/mydir2/mydir3, I want to untar them to /export/home/mydir. An example I have is: pax -r -s... (2 Replies)
Discussion started by: hshapiro
2 Replies

10. AIX

retrieving files from Tape

I have AIX5.1 I have tried to retrieve a file from tape with no sucsess. I had this posted in the newbies section but I think I should have tried here. I did get some good info there though on where to start. This Is what I did. My back line is so... cat /rd/tmp/backuplist.full | cpio -ocvBdum... (1 Reply)
Discussion started by: rocker40
1 Replies
Login or Register to Ask a Question