- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rdist usage
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 09:55 PM
тАО07-21-2005 09:55 PM
I am migrating data (5 filesystems) on a HPUX 11 server, the source and target areas are NFS mounted on the HP box, from different resources.
I was planning to use rdist to do the initial copy and subsequent incrementals.
I wanted to know if it is possible, just using a command, rather than creating a rdist config file. I have included below my planned script to initiate the copy. Please advise me if this is correct.
rdist -hMRw
rdist -hMRw
rdist -hMRw
etc
etc
Any help would be appreciated.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2005 01:57 AM
тАО07-23-2005 01:57 AM
Solutionhave a look at this page:
http://docs.hp.com/en/B3921-90010/rdist.1.html
I think you can do it with the -c option.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2005 04:49 AM
тАО07-23-2005 04:49 AM
Re: rdist usage
I do not see any problem since the source and target are both on the same server after the nfs mount.
However since rdis is for remote distribution, I have always used a distfile and that makes life much easier
If you follow the example in th man page you will easily be able to accomplish what you want.
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2005 07:45 AM
тАО07-23-2005 07:45 AM
Re: rdist usage
If You want a - in my experience - much better too for this job, look at rsync!
(but even cd inpath ; find -depth | cpio -pdm /outpath/ should work better)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2005 12:53 AM
тАО07-25-2005 12:53 AM
Re: rdist usage
Here's mine for a SAP id on a MC/SG cluster:
First, the cron entry:
# Copy prdadm across to the DR site.
05 01 * * * /app/admin/drp/update-binaries.sh
# cat /app/admin/drp/update-binaries.sh
#! /bin/sh
# Keep the DRP copy of the vgpadm up-to-date.
# Currently the files are in:
#
# /home/prdadm/DR
#
# See the rdist(1M) distfile for a list of exclusions.
DRPDIR=/app/admin/drp
DRPHOST=svr031
HOST=`/usr/bin/uname -n`
PRD=`cmviewcl |grep prddbci |awk '{print $5}'`
if [ "$HOST" = "$PRD" ]
then
mount | grep /home > /dev/null 2>&1
if [ $? -eq 0 ]
then
for vg in `ls -d /dev/vg5* |awk -F/ '{print $3}'`
do
/usr/sbin/vgexport -p -s -v -m /home/prdadm/DR/$vg.map /dev/$vg
done
cp -p /etc/cmcluster/PRDDBCI/prddbci.cntl /home/prdadm/DR/
cp -p /etc/cmcluster/PRDDBCI/prddbci.cntl.full /home/prdadm/DR/
cp -p /etc/cmcluster/PRDDBCI/prddbci.cntl.mountonly /home/prdadm/DR/
( su - prdadm -c "rdist -f $DRPDIR/distfile prdadm"; ) 2>&1 |\
tee $DRPDIR/drp.log 2>&1 |\
mailx -s "prdadm DRP rdist output" `cat /usr/local/mailadmin.list`
fi
fi
# cat /app/admin/drp/distfile
PRDDR = ( svr031 )
#
# File systems to be copied over to the DR host.
# Don't use -R in install - so as not to remove files on destination host
PRDADM = /home/prdadm
prdadm: ( ${PRDADM} ) -> ( ${PRDDR} )
install -w ;
Rgds...Geoff