1752588 Members
4793 Online
108788 Solutions
New Discussion юеВ

Tar Problem

 
cheng
Occasional Advisor

Tar Problem

Hello Folks,

When I want to make a tar command, my system MUST have a error, please make a help to me, thanks !!

cbs-dr:/>tar -cvf /dev/rmt/0m /opt/omni/lbin
a /opt/omni/lbin/.util 64 blocks
Tar: ioctl to write filemarks failed (5). aborting...
Anthony
9 REPLIES 9
Patrick Chim
Trusted Contributor

Re: Tar Problem

Hi,

1. Is there any error in /var/adm/syslog/syslog.log ?

2. Can you 'ls -l /dev/rmt/0m' to check the permission of the tape ?

3. Have you try the command with another tape ?

4. Can you perform the ioscan again to re-configure the tape, i.e. ioscan -fnC tape, remember no need to add the -k option .

Regards,
Patrick
Ravi_8
Honored Contributor

Re: Tar Problem

Hi,

looks like problem with tape, could you try with another tape.
never give up
Ravi_8
Honored Contributor

Re: Tar Problem

Hi,

looks like problem with tape, could you try with another tape.

try with command
#tar cvf /dev/rmt/0m /opt/omni/lbin
never give up
Animesh Chakraborty
Honored Contributor

Re: Tar Problem

Hi,
Have you tried some other directory/files instead of /opt/omni/lbin ?
Did you take a backup?
cheng
Occasional Advisor

Re: Tar Problem

Hi Folks,

My tape is STK3480. And now I try to other server connect to this tape. But the result same to before, so how can I fix it, thanks !!

cbs-prd:/>tar cvf /dev/rmt/1m /opt/omni/lbin/*
a /opt/omni/lbin/cat_d 746 blocks
Tar: ioctl to write filemarks failed (5). aborting...
cbs-prd:/>tar cvf /dev/rmt/1m /etc/hosts
a /etc/hosts 5 blocks
Tar: ioctl to write filemarks failed (5). aborting...
Anthony
Elif Gius
Valued Contributor

Re: Tar Problem

Try following:
mt -t /dev/rmt/0m status


What's the output ???

Pls use ioscan -fnC tape.
the option -k takes the information from the cache.

Try an reset to the tape. Just power off and on the tape and try it again.
Shannon Petry
Honored Contributor

Re: Tar Problem

If you moved the tape device to a different server then the problem is not with the system, but the tape device!
1. Try a new tape/brand of tape. (I once bought 3rd party tapes. I had lots of problems. Sent them to the drive MFR whow measured the tapes. Turned out the company that made the tapes was not making them to proper specs.
2. Try a different tape device. If media is not the problem, then the tape drive is the problem.

Regards,
Shannon
Microsoft. When do you want a virus today?
MANOJ SRIVASTAVA
Honored Contributor

Re: Tar Problem

Hi


Please try cleaning the drive and also try chanigng the media , if it does nt work then you amy try like lthis



dd if=/dev/dsk/cxtydz ( os some data) of =/dev/rmt/0m and let it write in bigger size blocks jsut to insure that the drive can writer and read properly .If this fails too then try cahinging media , then the drive.



Manoj Srivastava
cheng
Occasional Advisor

Re: Tar Problem

Hello Folks,

I will request HP send the other tape drive to me and try it again. I hope have a great result!
Anthony