Operating System - HP-UX
1834093 Members
2450 Online
110063 Solutions
New Discussion

Re: Backup script doesn't work

 
SOLVED
Go to solution
Endrin
Occasional Contributor

Backup script doesn't work

Can someone help me to find a way my backup scrip works?
I have a cluster with to nodes with an ultrium tape drive each. One of the nodes is active and the other stby. I have to use both tape drives to make backups.On the active one i took real time backup on its own tape and to the other stby node i want to use only the tape to have a daily backup of the active server. It gives me an error like "is the tape correctly loaded?". The mt command doesn't work on remote tape.
$tapedev= 10.2.3.5:/dev/rmt/0mn
4 REPLIES 4
Victor Fridyev
Honored Contributor

Re: Backup script doesn't work

Hi,

I'm afraid, tape commands don't work remotely for HPUX.
If I'm wrong, I'd like to see examples of such commands ASAP.

Best
Entities are not to be multiplied beyond necessity - RTFM
Ninad_1
Honored Contributor

Re: Backup script doesn't work

The problem is the tape device name used for the mt command in the script. Since you are using tape device name as 10.2.3.5:/dev/rmt/0mn - which is not a tape device name on the server where you are executing this command the mt command fails to rewind the tape and your script displays the error message.
Another thing is the -t option being obsolent - check man page of mt in your server - now -f should be used. Other thing is if you want to use mt commands on the tape drive on a remote server you could execute for e.g.
remsh/ssh 10.2.3.5 "mt -f /dev/rmt/0mn rew" , I am not too sure if the device name you are using will work - like 10.2.3.5:/dev/rmt/0mn
So either use the remsh/ssh OR you can execute the script on the remote server itself.

If you are using vxfs filesystems then you can also use
rvxdump which can use tape drive on remote server. Need to see how you are backing up.

Regards,
Ninad
You could backup to remote tape drive for e.g.

Michael Steele_2
Honored Contributor
Solution

Re: Backup script doesn't work

Simple test would be 'mt -t stat' or 'mt -f /dev/rmt/### status' (* same command *)from both local and remote nodes. So your theory is it will work on local but fail on remote, ie., remsh node -n "mt -t stat". Do you need help setting up the rlogin? Refer to hosts.equiv and .rhosts files in:

http://docs.hp.com/en/B2355-60103/rlogin.1.html

Support Fatherhood - Stop Family Law
Inter_1
Frequent Advisor

Re: Backup script doesn't work

Change the file confguration on the that node.
su - informix

I'm not sure about the list of directories in that path. please issue ls -ltr and brig me the output in oredr to remember.

Bye
I like to fix things.