Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Backup

Status
Not open for further replies.

khalidaaa

Technical User
Jan 19, 2006
2,323
BH
Hi all,

I'm having two P5 570 servers that are running 12 LPARs (6 each). I'm trying to do a (data) backup job and i'm connecting the tape drive to one LPAR and by using NFS mounts, i manage to backup the data on the other LPARs. The script i wrote is this:

Code:
find /edms_bkup \
     /pmdb_bkup \
     /engp_bkup \
     /pcms_bkup \
     /gnrl_bkup \
     /pas_bkup \
     /cdb_bkup \
     /omsp_bkup \
     /usr/cimage/shared \
     /usr/cimage/mtserv511 \
     -print > /tmp/daily_backup.list

cat /tmp/daily_backup.list | backup -iqf/dev/rmt0.1

df on the LPAR with the tape connected shows this:

Code:
s1cdbp:/pcms_bkup    3932160   2983952   25%       10     1% /pcms_bkup
s1cdbp:/gnrl_bkup    2097152   2010440    5%        9     1% /gnrl_bkup
s1cdbp:/pas_bkup    6029312   2733184   55%       10     1% /pas_bkup
s1cdbp:/cdb_bkup   14155776   5976592   58%       10     1% /cdb_bkup
s1cdbp:/omsp_bkup    3932160   2286112   42%      100     1% /omsp_bkup

These are mounted filesystem from the other LPAR (called s1cdbp).

Now my problem occur when there is something wrong with the s1cdbp LPAR (its a cluster LPAR), the script will fail because it can't find those mounted filesystems!

Is there a better way to do the script and backup those filesystem without using nfs?

Regards,
Khalid
 
Thank you Mike, That was useful though it was a long script :)

now how would i apply this to my case? I don't want a mksysb backup! i just want a normal files backup using the find command as shown above!

can i do:

rsh s1cdbp find /omsp_bkup -print | backup -iqf/dev/rmt0.1
?

I don't have time now coz my time is up at work but I will try this tomorrow and see

I will come tomorrow and see your suggestions guys

Thanks

Regards,
Khalid
 
The line

rsh $HOST -n "nohup /usr/bin/mksysb /tmp/pipe.rmksysb >/tmp/pipe.rmksysb.out 2>/tmp/pipe.rmksysb.err &" &

starts the remote mksysb, simply create your own script using tar / cpio / dd / savevg / backup and use that instead of mksysb

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
In it's simple form

tar cvf - . | rsh remote_host "dd of=/tmp/servername.tar"

would do the job



Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
oh thank you very much Mike for your help :)

I'm using the backup command all over my script, so how can i include this? (just thinking loudly :))

I will go and try to implement it with the backup command if it could be done in the first place :)

Thanks again Mike

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top