Operating System - HP-UX
1748180 Members
3918 Online
108759 Solutions
New Discussion юеВ

Re: Tar : end of tape problem

 
SOLVED
Go to solution
Broflowsky
Occasional Advisor

Tar : end of tape problem

Hi,

I have been trying to send a single file to my tape drive using tar, I used the following commands..

#/root # ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
tape 0 0/0/8/1/0/1/0.1.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/0m /dev/rmt/c2t1d0BESTn
/dev/rmt/0mb /dev/rmt/c2t1d0BESTnb
/dev/rmt/0mn /dev/rmt/c2t1d0DDS
/dev/rmt/0mnb /dev/rmt/c2t1d0DDSb
/dev/rmt/c2t1d0BEST /dev/rmt/c2t1d0DDSn
/dev/rmt/c2t1d0BESTb /dev/rmt/c2t1d0DDSnb
[root@bktxh11]:/root # mt -t /dev/rmt/0m rew
#/root # echo $?
0
#/root # tar cvf /dev/rmt/0m /etc/passwd
a /etc/passwd 6 blocks
Tar: end of tape

Tar: to continue, enter device/file name when ready or null string to quit.
User entered a null name for next device file.
[root@bktxh11]:/root # mt -f /dev/rmt/0m status
Drive: HP C5683A
Format: DDS-3 format
Status: [41112500] BOT online compression immediate-report-mode
File: 0
Block: 0
#/root #


It is a tiny file and it reports as if the media was full...

Please advise.

Thanks.
10 REPLIES 10
Torsten.
Acclaimed Contributor
Solution

Re: Tar : end of tape problem

I have seen this with my bad tape drive.

Try to clean the drive, use another tape and finally consider a drive replacement.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: Tar : end of tape problem

Shalom,

I'd try new media, cleaning drive and then HP Hardware if the first two things don't work.

EP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Broflowsky
Occasional Advisor

Re: Tar : end of tape problem

I already tried a new media, and also I had the tape drive cleaned but same behaviour...
Avinash20
Honored Contributor

Re: Tar : end of tape problem

Hmm.. Did you try via other backup utilities,

eg: fbackup or cpio ??
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Broflowsky
Occasional Advisor

Re: Tar : end of tape problem

Actually I need this tar to work, because that is the format used by the ignite tool, the back end of the problem are ignite jobs failing because of this.
Broflowsky
Occasional Advisor

Re: Tar : end of tape problem

fbackup did not work... I guess I'm calling HP


[root@bktxh11]:/root # fbackup /etc/passwd -f /dev/rmt/0mn
fbackup(1401): extra argument: /etc/passwd ignored
fbackup(1401): extra argument: -f ignored
fbackup(1401): extra argument: /dev/rmt/0mn ignored
fbackup(1403): at least one output file must be specified
fbackup(1404): no files have been specified; (use at least one -i and/or -g option)
usage: fbackup -f device [-f device] ... [-0-9] [-nsuvyAEl]
[-i path] ... [-e path] ... [-g graph] ... [-d path] [-I path] [-V path] [-c config]

usage: fbackup -f device [-f device] ... -R restart [-nsuvyAEl]
[-d path] [-I path] [-V path] [-c config]

[root@bktxh11]:/root # fbackup -f /dev/rmt/0mn -i /etc
fbackup(1004): session begins on Wed Mar 11 13:20:09 2009
fbackup(3205): WARNING: unable to read a volume header
fbackup(3024): writing volume 1 to the output file /dev/rmt/0mn
fbackup(9999): I/O error
fbackup(3124): write error on a record in the ANSII label
fbackup(3025): write error at the beginning of the volume
fbackup(3316): enter '^[yY]' when volume 1 is ready on /dev/rmt/0mn,
or '^[nN]' to discontinue:
y
fbackup(3205): WARNING: unable to read a volume header
fbackup(3024): writing volume 1 to the output file /dev/rmt/0mn
fbackup(9999): I/O error
fbackup(3124): write error on a record in the ANSII label
fbackup(3025): write error at the beginning of the volume
fbackup(3316): enter '^[yY]' when volume 1 is ready on /dev/rmt/0mn,
or '^[nN]' to discontinue:
n
fbackup(3019): would you like to enter a new output file?
/dev/rmt/0m
fbackup(4002): please respond with: '^[yY]' or '^[nN]'
fbackup(3019): would you like to enter a new output file?
y
fbackup(3020): please enter the new file's name:
/dev/rmt/0m
fbackup(3316): enter '^[yY]' when volume 1 is ready on /dev/rmt/0m,
or '^[nN]' to discontinue:
y
fbackup(3205): WARNING: unable to read a volume header
fbackup(3024): writing volume 1 to the output file /dev/rmt/0m
fbackup(9999): I/O error
fbackup(3124): write error on a record in the ANSII label
fbackup(3025): write error at the beginning of the volume
fbackup(3316): enter '^[yY]' when volume 1 is ready on /dev/rmt/0m,
or '^[nN]' to discontinue:
n
fbackup(3019): would you like to enter a new output file?
n
fbackup(3022): would you like to continue this session?
n
fbackup(3004): writer aborting
fbackup(1002): Backup did not complete : Reader or Writer process exit
Avinash20
Honored Contributor

Re: Tar : end of tape problem

This confirms that the issue might be due to due to Bad tape.
I would advice to clean the tape or use the recommend tape for taking backup.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
OldSchool
Honored Contributor

Re: Tar : end of tape problem

"fbackup /etc/passwd -f /dev/rmt/0mn "

to start with, i believe you have a useage error...since it threw out /etc/password

try something like

fbackup -f /dev/rmt/0mn -i /etc
Broflowsky
Occasional Advisor

Re: Tar : end of tape problem

The tape drive has been cleaned.

This is the output of the mt command

[root]:/root # mt -t /dev/rmt/0m status
Drive: HP C5683A
Format: DDS-3 format
Status: [1112500] online compression immediate-report-mode
File: 0
Block: 0

I also tried an fbackup as adviced in the other thread but got I/O error messages.

[root]:/root # mt -t /dev/rmt/0m rew
[root]:/root # fbackup -f /dev/rmt/0m -i /etc
fbackup(1004): session begins on Wed Jul 1 10:07:16 2009
fbackup(3205): WARNING: unable to read a volume header
fbackup(3024): writing volume 1 to the output file /dev/rmt/0m
fbackup(9999): I/O error
fbackup(3124): write error on a record in the ANSII label
fbackup(3025): write error at the beginning of the volume
fbackup(3316): enter '^[yY]' when volume 1 is ready on /dev/rmt/0m,
or '^[nN]' to discontinue:
y
fbackup(3205): WARNING: unable to read a volume header
fbackup(3024): writing volume 1 to the output file /dev/rmt/0m
fbackup(9999): I/O error
fbackup(3124): write error on a record in the ANSII label
fbackup(3025): write error at the beginning of the volume
fbackup(3316): enter '^[yY]' when volume 1 is ready on /dev/rmt/0m,
or '^[nN]' to discontinue:
n
fbackup(3019): would you like to enter a new output file?
n
fbackup(3022): would you like to continue this session?
n
fbackup(3004): writer aborting
fbackup(1002): Backup did not complete : Reader or Writer process exit
[root]:/root #