<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic rc script for drd sync in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-for-drd-sync/m-p/6822195#M489246</link>
    <description>&lt;P&gt;Hi All I am upgrading OS to March 2015 using DRD clone.&lt;/P&gt;&lt;P&gt;After taking DRD clone I will be executing drd sync to update if any files from activte system image.&lt;/P&gt;&lt;P&gt;Here I need to set up a rc script to run drd sync for all MOunt points in vg00.&lt;/P&gt;&lt;P&gt;I have taken the sample script from admin guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;# synchronize source root group with cloned root group&lt;BR /&gt;# drd-sync(1M).&lt;BR /&gt;#&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin:/opt/drd/bin&lt;BR /&gt;export PATH&lt;BR /&gt;rval=0&lt;BR /&gt;DRD_MOUNT_PT=/var/opt/drd/mnts/sysimage_001&lt;BR /&gt;set_return() {&lt;BR /&gt;if [ $1 -ne 0 ]; then&lt;BR /&gt;echo $2&lt;BR /&gt;rval=1&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;case $1 in&lt;BR /&gt;stop_msg)&lt;BR /&gt;echo "Running drd sync to synchronize cloned root file systems"&lt;BR /&gt;;;&lt;BR /&gt;Using the drd sync preview to determine divergence of the clone from the booted system 29&lt;BR /&gt;stop)&lt;BR /&gt;# Synchronize the source disk with the cloned system&lt;BR /&gt;drd mount &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 # Ignore errors, may already be mounted.&lt;BR /&gt;drd sync&lt;BR /&gt;sync_ret=$?&lt;BR /&gt;set_return $sync_ret "ERROR: Return code from drd sync is $sync_ret"&lt;BR /&gt;rm -f $0 ${DRD_MOUNT_PT}$0 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;[[ -x $0 ]] &amp;amp;&amp;amp; \&lt;BR /&gt;set_return 1 "ERROR: The $0 script (on image being shut down) could not be removed."&lt;BR /&gt;[[ -x ${DRD_MOUNT_PT}$0 ]] &amp;amp;&amp;amp; \&lt;BR /&gt;set_return 1 "ERROR: The ${DRD_MOUNT_PT}$0 script ($0 on clone) could not be removed."&lt;BR /&gt;drd umount &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 # Ignore errors.&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;echo "usage: $0 { stop_msg | stop }"&lt;BR /&gt;rval=1&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;exit $rval&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------&lt;/P&gt;&lt;P&gt;I have other file system as below&lt;/P&gt;&lt;P&gt;/var/opt/drd/mnts/sysimage_001&lt;/P&gt;&lt;P&gt;/var/opt/drd/mnts/sysimage_001/home&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/opt&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/stand&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/tmp&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/usr&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/var&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i edit in the script to update drd sync for all other mount points and to set up a rc script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 16:26:08 GMT</pubDate>
    <dc:creator>madhuca-</dc:creator>
    <dc:date>2016-01-06T16:26:08Z</dc:date>
    <item>
      <title>rc script for drd sync</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-for-drd-sync/m-p/6822195#M489246</link>
      <description>&lt;P&gt;Hi All I am upgrading OS to March 2015 using DRD clone.&lt;/P&gt;&lt;P&gt;After taking DRD clone I will be executing drd sync to update if any files from activte system image.&lt;/P&gt;&lt;P&gt;Here I need to set up a rc script to run drd sync for all MOunt points in vg00.&lt;/P&gt;&lt;P&gt;I have taken the sample script from admin guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;# synchronize source root group with cloned root group&lt;BR /&gt;# drd-sync(1M).&lt;BR /&gt;#&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin:/opt/drd/bin&lt;BR /&gt;export PATH&lt;BR /&gt;rval=0&lt;BR /&gt;DRD_MOUNT_PT=/var/opt/drd/mnts/sysimage_001&lt;BR /&gt;set_return() {&lt;BR /&gt;if [ $1 -ne 0 ]; then&lt;BR /&gt;echo $2&lt;BR /&gt;rval=1&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;case $1 in&lt;BR /&gt;stop_msg)&lt;BR /&gt;echo "Running drd sync to synchronize cloned root file systems"&lt;BR /&gt;;;&lt;BR /&gt;Using the drd sync preview to determine divergence of the clone from the booted system 29&lt;BR /&gt;stop)&lt;BR /&gt;# Synchronize the source disk with the cloned system&lt;BR /&gt;drd mount &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 # Ignore errors, may already be mounted.&lt;BR /&gt;drd sync&lt;BR /&gt;sync_ret=$?&lt;BR /&gt;set_return $sync_ret "ERROR: Return code from drd sync is $sync_ret"&lt;BR /&gt;rm -f $0 ${DRD_MOUNT_PT}$0 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;[[ -x $0 ]] &amp;amp;&amp;amp; \&lt;BR /&gt;set_return 1 "ERROR: The $0 script (on image being shut down) could not be removed."&lt;BR /&gt;[[ -x ${DRD_MOUNT_PT}$0 ]] &amp;amp;&amp;amp; \&lt;BR /&gt;set_return 1 "ERROR: The ${DRD_MOUNT_PT}$0 script ($0 on clone) could not be removed."&lt;BR /&gt;drd umount &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 # Ignore errors.&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;echo "usage: $0 { stop_msg | stop }"&lt;BR /&gt;rval=1&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;exit $rval&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------&lt;/P&gt;&lt;P&gt;I have other file system as below&lt;/P&gt;&lt;P&gt;/var/opt/drd/mnts/sysimage_001&lt;/P&gt;&lt;P&gt;/var/opt/drd/mnts/sysimage_001/home&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/opt&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/stand&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/tmp&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/usr&lt;BR /&gt;/var/opt/drd/mnts/sysimage_001/var&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i edit in the script to update drd sync for all other mount points and to set up a rc script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 16:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-for-drd-sync/m-p/6822195#M489246</guid>
      <dc:creator>madhuca-</dc:creator>
      <dc:date>2016-01-06T16:26:08Z</dc:date>
    </item>
  </channel>
</rss>

