- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc script for drd sync
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
Discussions
Discussions
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
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
01-06-2016 08:26 AM
01-06-2016 08:26 AM
rc script for drd sync
Hi All I am upgrading OS to March 2015 using DRD clone.
After taking DRD clone I will be executing drd sync to update if any files from activte system image.
Here I need to set up a rc script to run drd sync for all MOunt points in vg00.
I have taken the sample script from admin guide.
#!/sbin/sh
#
# synchronize source root group with cloned root group
# drd-sync(1M).
#
PATH=/sbin:/usr/sbin:/usr/bin:/opt/drd/bin
export PATH
rval=0
DRD_MOUNT_PT=/var/opt/drd/mnts/sysimage_001
set_return() {
if [ $1 -ne 0 ]; then
echo $2
rval=1
fi
}
case $1 in
stop_msg)
echo "Running drd sync to synchronize cloned root file systems"
;;
Using the drd sync preview to determine divergence of the clone from the booted system 29
stop)
# Synchronize the source disk with the cloned system
drd mount >/dev/null 2>&1 # Ignore errors, may already be mounted.
drd sync
sync_ret=$?
set_return $sync_ret "ERROR: Return code from drd sync is $sync_ret"
rm -f $0 ${DRD_MOUNT_PT}$0 > /dev/null 2>&1
[[ -x $0 ]] && \
set_return 1 "ERROR: The $0 script (on image being shut down) could not be removed."
[[ -x ${DRD_MOUNT_PT}$0 ]] && \
set_return 1 "ERROR: The ${DRD_MOUNT_PT}$0 script ($0 on clone) could not be removed."
drd umount >/dev/null 2>&1 # Ignore errors.
;;
*)
echo "usage: $0 { stop_msg | stop }"
rval=1
;;
esac
exit $rval
------------------------------------
I have other file system as below
/var/opt/drd/mnts/sysimage_001
/var/opt/drd/mnts/sysimage_001/home
/var/opt/drd/mnts/sysimage_001/opt
/var/opt/drd/mnts/sysimage_001/stand
/var/opt/drd/mnts/sysimage_001/tmp
/var/opt/drd/mnts/sysimage_001/usr
/var/opt/drd/mnts/sysimage_001/var
How can i edit in the script to update drd sync for all other mount points and to set up a rc script.
Regards