1832367 Members
2947 Online
110041 Solutions
New Discussion

Prob. with tar

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Prob. with tar

Hi,

I backedup 2 core files in a DLT tape using tar. Now when I do a "tar tvf " it doesn't print the TOC. What could be the problem???

Pl. lemme know

Thanks
Karthik


backsrv:/crash/backsrv>ll *.2*
-rw-r--r-- 1 root root 1067204 Jun 12 02:30 unix.2
-rw-r--r-- 1 root root 744603648 Jun 12 02:29 vmcore.2

backsrv:/crash/backsrv>mt -f /dev/rmt/2ubn rew

backsrv:/crash/backsrv>tar cvf /dev/rmt/2ubn unix.2 vmcore.2
a unix.2 2085 tape blocks
a vmcore.2 1454304 tape blocks

backsrv:/crash/backsrv>tar tvf /dev/rmt/2ubn
tar: blocksize = 0
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
3 REPLIES 3
David_246
Trusted Contributor
Solution

Re: Prob. with tar

Hi,

After the "tar cvf" you should do an mt rewind again.

Regs David
@yourservice
Pete Randall
Outstanding Contributor

Re: Prob. with tar

Karthik,

And your rewind command is wrong: It should be "mt -t /dev/rmt/2ubn rew" rather than "mt -f". So you probably wrote them on the tape, but we may not know where.


Pete

Pete
Karthik S S
Honored Contributor

Re: Prob. with tar

Thanx ... after the tape was refound tar could display the TOC ...

Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn