- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DRD Sync to update inactive disk
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
11-02-2012 06:49 AM
11-02-2012 06:49 AM
DRD Sync to update inactive disk
Hi All
I would like to place a script in the cron to update the DRD clone inactive disk on weekly basis.. Please confirm whether the command will perform this.
#drd sync -v -v
Also please share if you have any script to achive this..
- Tags:
- DRD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2012 07:20 AM
11-02-2012 07:20 AM
Re: DRD Sync to update inactive disk
That should work. The one change I would make is to combine the two '-v -v' into '-vv'.
You might also write a wrapper script that checks the return code of the command and notifies you if it succeeds or fails.
For example (not tested or checked for syntax):
#!/usr/bin/sh
LOGFILE=/var/tmp/drd-sync.log
drd sync -vv > ${LOGFILE} 2>&1
RETCODE=$?
if (( ${RETCODE} != 0 )) ; then
mailx -s "DRD SYNC FAILED" you@yourdomain.com < ${LOGFILE}
else
mailx -s "DRD SYNC SUCCEEDED" you@yourdomain.com < ${LOGFILE}
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2012 01:31 AM
11-07-2012 01:31 AM
Re: DRD Sync to update inactive disk
Hi Sridhar,
You can always have a preview option to check before actual execution. So you may set up a cronjob with -p option which will show the preview of actual execution. Then you may remove it and put the actual sync command in cron.
Thanks & Regards,
Chirag Parikh.