- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tar : end of tape problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 07:58 AM
тАО03-11-2009 07:58 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 08:10 AM
тАО03-11-2009 08:10 AM
SolutionTry 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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 08:31 AM
тАО03-11-2009 08:31 AM
Re: Tar : end of tape problem
I'd try new media, cleaning drive and then HP Hardware if the first two things don't work.
EP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 08:34 AM
тАО03-11-2009 08:34 AM
Re: Tar : end of tape problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 08:54 AM
тАО03-11-2009 08:54 AM
Re: Tar : end of tape problem
eg: fbackup or cpio ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 08:57 AM
тАО03-11-2009 08:57 AM
Re: Tar : end of tape problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 09:24 AM
тАО03-11-2009 09:24 AM
Re: Tar : end of tape problem
[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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 10:04 AM
тАО03-11-2009 10:04 AM
Re: Tar : end of tape problem
I would advice to clean the tape or use the recommend tape for taking backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 12:48 PM
тАО03-11-2009 12:48 PM
Re: Tar : end of tape problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 06:09 AM
тАО07-01-2009 06:09 AM
Re: Tar : end of tape problem
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 #