1850812 Members
4518 Online
104056 Solutions
New Discussion

Re: sharing tape device

 
SOLVED
Go to solution
Burhan Koni
Advisor

sharing tape device

I have 2 identical hp9000 servers K series with HP-UX 11.0
I want to make it possible to use the tape device from both servers.
and how the command line of (tar)command will be from the remote server

Thank you
Burhan Koni
6 REPLIES 6
steven Burgess_2
Honored Contributor

Re: sharing tape device

Hi

I know you can use fbackup/recover over the network

#fbackup -v -f :/dev/rmt/0m -i

You need to have the server names in .rhosts files

Will have a look for tar usage and get back to you

Steve
take your time and think things through
Johan Gjestvang
Frequent Advisor
Solution

Re: sharing tape device

To read from your remote host tapestation:
Do
servera#remsh serverb dd if=/dev/rmt/0m bs=20k |tar tvf -

To write to your remot hosts tapestation:
Do
servera#tar cvf - . |remsh serverb dd of=/dev/rmt/0m bs=20k

Make sure you have servera in the serverb's .rhost file

Br,
Johan
John Carr_2
Honored Contributor

Re: sharing tape device

Hi

I am not sure on the tar as I always use fbackup across betwork. Have a look at this thread it will tell you how to use fbackup.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x64d60bce6f33d6118fff0090279cd0f9,00.html

cheers
John
steven Burgess_2
Honored Contributor

Re: sharing tape device

Hi

Try this

tar cvf - /dir_name | remsh hostname dd of=/dev/rmt/0m

or

tar cvf - . | remsh hostname dd of=/dev/rmt/0m

which will backup the current directory.
hostname is the hostname of the machine with the drive

Steve
take your time and think things through
Trond Haugen
Honored Contributor

Re: sharing tape device

For root you need to set up .rhosts (~root/.rhosts). For all other users /etc/hosts.equiv will do.
Personally I prefer fbackup over tar as you can spesify the host:dev with the former.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
U.SivaKumar_2
Honored Contributor

Re: sharing tape device

hi,
fbackup can be only used as root

regards,
U.SivaKumar
Innovations are made when conventions are broken