Operating System - HP-UX
1832978 Members
2855 Online
110048 Solutions
New Discussion

Access the Remote Tape drive

 
Anitha_3
Frequent Advisor

Access the Remote Tape drive

Hi,

i have a system "Apple" connected with a DLT drive. i want to access this DLT in "MICKY". i have enabled rlogin for the both the servers. let me know how do i do that.

is ther any permissions required to be set.

THanks in advance.

REgards,
Govind.
10 REPLIES 10
Eric Antunes
Honored Contributor

Re: Access the Remote Tape drive

Use SAM:

Backup and Recovery -> Interactive Backup and Recovery -> Actions -> Use Remote Backup Device -> Back Up Files Interactively...

Each and every day is a good day to learn.
Anitha_3
Frequent Advisor

Re: Access the Remote Tape drive

hi Antunes,

Thanks for the reply.

i want the command. can u give me the command.

Thanks
Govind.
Simon Hargrave
Honored Contributor

Re: Access the Remote Tape drive

You can use fbackup to write to a remote device by specifying the tape device as apple:/dev/rmt/0mn

or

You can use for example tar (or cpio etc) to a remote tape drive with:-

micky# tar cvf - / | rexec apple "dd of=/dev/rmt/0mn"

This will tar to stdio, which will be passed to dd via the pipe, which will write it to tape.

You may need to experiment with the bs= parameter of dd to get optimum performance.
Eric Antunes
Honored Contributor

Re: Access the Remote Tape drive

Hi Govind,

I think it's something like this:

fbackup -f :/dev/rmt/0m ...
Each and every day is a good day to learn.
Anitha_3
Frequent Advisor

Re: Access the Remote Tape drive

thanks simon and antu,

let me how to restore from the tape to Micky.

thanks
Govind.
Sunil Sharma_1
Honored Contributor

Re: Access the Remote Tape drive

Govind,

If you want to restore data you should know what format backup is taken. If backup has taken using fbackup you can restore it using
#frecover -f apple:/dev/rmt/1m ..

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Simon Hargrave
Honored Contributor

Re: Access the Remote Tape drive

Sunil says how to restore the fbackup

To restore the tar (as I backup up above): -

micky# rexec apple "dd if=/dev/rmt/0mn" | tar xvf -
Eric Antunes
Honored Contributor

Re: Access the Remote Tape drive

To recover try this:

frecover -f MICKY:/dev/rmt/0m -v

Add -I /var/tmp/index_test if you used an index when doing the fbackup
Each and every day is a good day to learn.
Eric Antunes
Honored Contributor

Re: Access the Remote Tape drive

Yes, Sunill has already posted the frecover command.

When I wrote "frecover -f MICKY:/dev/rmt/0m -v", I wanted to post:

frecover -f Apple:/dev/rmt/0m -v (Apple is the server with DLT)

Each and every day is a good day to learn.
Bill Hassell
Honored Contributor

Re: Access the Remote Tape drive

NOTE: all of the remote tape activity is specific to HP-UX. Both apple and micky must be HP-UX. fbackup is meaningless on non-HP-UX computers. If the DLT is on a PC or on a Linux or Sun box, you'll have to use remote shell pipes and run tar. Warning: tar won't handle large files. Also note that most networks are far too slow to keep a modern DLT running properly. Excessive tape repositions will occur with LAN speeds less than GigE (ie, 100Mbit or less). If this is part of a production backup strategy, I would get a local tape drive as soon as possible. It is possible to ruin a DLT (or Ultrium or AIT, etc) drive in less than a year with slow backup speeds.


Bill Hassell, sysadmin