1833819 Members
2753 Online
110063 Solutions
New Discussion

remsh and tape drives

 
SOLVED
Go to solution
rvent
Frequent Advisor

remsh and tape drives

Hello,

i have 2 hp-ux systems and they are both clustered with ServiceGuard. The tape drive is phisicaly connected to system1 and i want to be able to make ignite tapes, tar backups from system2...

i tried :
tar -cvf test-10-12-06.tar home/ root/ | remsh system1 "dd of=/dev/rmt/0mn"

But the tar was created on /

Is that command the proper way of doing so...?

Thanks
5 REPLIES 5
DCE
Honored Contributor

Re: remsh and tape drives


Don't know about tar, but fbackup (utility within HP-UX) allows you to specify a remote tape drive with the -f option. It works well, but you need to use the hosts.equiv file in order to get communications between the systems
IT_2007
Honored Contributor

Re: remsh and tape drives

No. Won't work that way. Either you have to take Igntie backup using make_net_recovery and store image on Ignite server or hook up tape drive to another host and take make_tape_recovery onto tape.

Volker Borowski
Honored Contributor
Solution

Re: remsh and tape drives

Hi,

if you specify a file as a target, tar will write to a file. As you want to pipe the result, you need to write to stdout

tar -cvf - home/ root/ | remsh system1 "dd of=/dev/rmt/0mn"

so "-" instead of "test-10-12-06.tar"

Since tar defaults to a blocksize of 5120 bytes, there may be need to specify "obs=5120" in your "dd" to make the tape directly readable by tar.

Test carefully, otherwise you may have trouble to read your backup.

Volker
Yang Qin_1
Honored Contributor

Re: remsh and tape drives

You can also try:
tar -cvf user@system1:/dev/rmt/0mn home/ root/

Yang
rvent
Frequent Advisor

Re: remsh and tape drives

Thanks...

DCE's "-" worked... I didnt have to add the "obs=". tar recognized it with no problems...