Operating System - HP-UX
1753891 Members
7536 Online
108809 Solutions
New Discussion юеВ

How to copy files from tape drive in HP Unix

 
SOLVED
Go to solution
Zishan
Regular Advisor

How to copy files from tape drive in HP Unix

Hello All,
I have an external tape drive(hp) on HP Intergrity server. I need to know how can I extract data (copy files) from tape disk which I already insert:
Following is out put of my command:

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/5/1/0.1.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c5t1d0BEST /dev/rmt/c5t1d0BESTn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c5t1d0BESTb /dev/rmt/c5t1d0BESTnb
#

Regards,
12 REPLIES 12
Robert-Jan Goossens
Honored Contributor

Re: How to copy files from tape drive in HP Unix

Hi Zishan,

What command was used to write the data to tape? (tar, cpio, fbackup)

Regards,
Robert-Jan
Zishan
Regular Advisor

Re: How to copy files from tape drive in HP Unix

Hi,

Infact I received this tape from our Ex-outsourcing company. I guess it should be fbackup. But I dont know even how to view data from this tape disk.
Any help would be appreciated.

Regards,
Robert-Jan Goossens
Honored Contributor

Re: How to copy files from tape drive in HP Unix

Hi,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=980467

Quoting JRF.

As Bill noted, the '-I' option extract the index file from the backup, for example:

# frecover -vf /dev/rmt/0m -I /tmp/fbackup.idx

Regards,
Robert-Jan
Zishan
Regular Advisor

Re: How to copy files from tape drive in HP Unix

Hi,
I used the follwing commands and follwoing message arise while I have 150 gb space on /u03.

# frecover -xvf /dev/rmt/0m

vxfs: msgcnt 4 mesg 001: V-2-1: vx_nospace - /dev/root file system full (2 block extent)frecover(1048): I/O error in write of file /dbbackup/headstrong/hoexp.dmp

Any help would be appreciated.
Regards,
Robert-Jan Goossens
Honored Contributor

Re: How to copy files from tape drive in HP Unix

Restore it to a different location, not the root of your system.

vxfs: msgcnt 4 mesg 001: V-2-1: vx_nospace - /dev/root file system full (2 block extent)frecover(1048): I/O error in write of file /dbbackup/headstrong/hoexp.dmp


To recover files relative to the current working directory/filesystem with enough space:

# cd /destination_directory
# frecover -f /dev/rmt/0m -xXov -i /source_directory
Zishan
Regular Advisor

Re: How to copy files from tape drive in HP Unix

Hello,
Now I received the following error message:

# frecover -f /dev/rmt/0m -xXov -i /u03/tap1
frecover(4301): /u03/tap1 not recovered from backup media

Regards,
Robert-Jan Goossens
Honored Contributor

Re: How to copy files from tape drive in HP Unix

Try this.

# frecover -vxX -f /dev/rmt/0m -i /u03/tap1

Zishan
Regular Advisor

Re: How to copy files from tape drive in HP Unix

Hi Robert,

I tried but following message arise :

# frecover -vxX -f /dev/rmt/0m -i /u03/tap1
frecover(4301): /u03/tap1 not recovered from backup media
#

Any help would be appreciated.

Regards,
Robert-Jan Goossens
Honored Contributor

Re: How to copy files from tape drive in HP Unix

recover entire tape contents to current working directory: frecover -v -x -f /dev/rmt/1m -X

# cd /u03/tap1
# frecover -v -x -f /dev/rmt/0m -X

Otherwise start SAM and navigate to backup/recover, there is an option in the advanced window for relocated restore.