- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: make_recovery fails in cron job
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
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
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
тАО05-13-2004 07:10 PM
тАО05-13-2004 07:10 PM
I try to run make_recovery in cron job but it fails. After I go through the log, the message is
> CMD: make_recovery -A -C -d /dev/rmt/1m
> root 275 c Thu May 13 17:35:00 MAL 2004
< root 275 c Thu May 13 17:35:00 MAL 2004 rc=127
1) Is it possible to run make_possible in cron job? If yes, how to do it? I am using this command -> make_recovery -A -C -d /dev/rmt/1m
2) What is rc=127 stands for? What I know is figure 1 and 2 mean error. How to go through the details such as rc=127 to find out what is the actual main cause for a cronjob fails?
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 07:23 PM
тАО05-13-2004 07:23 PM
Re: make_recovery fails in cron job
Yes you should be able to run make_recovery from the cron without any issues. There are no issues in doing this.
How ever please make sure that when you put this in the cron, this make_recovery is run from an account like root or any other super user account that has read on all the file systems and files there in.
As for the error rc=127, i think it probably means that the shell is unable to find the script or binary named (in this case submitted via your cron).
I would suggest that you edit the script and have " set -x" in the first line so that you could see in detail.
Regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 07:29 PM
тАО05-13-2004 07:29 PM
Solution00 18 * * * /opt/ignite/bin/make_tape_recovery
Add the path to the make_tape_recovery to your job in the crontab.
Make_recovery is an outdated command you should upgrade your ignite software.
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 07:35 PM
тАО05-13-2004 07:35 PM
Re: make_recovery fails in cron job
a cron error code of 127 means this, but could also be interpreted as a failed path statement from the shell.
rc=127 can't fork (this might also be return code from the shell)
As suggested, you should update your ignite version. Here is an example we always use.
# /opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/?mn
(You must use a non-rewindable device.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 02:48 AM
тАО05-17-2004 02:48 AM
Re: make_recovery fails in cron job
I would have to agree with the masses. Use the explicit path to your make_recovery script.
And (of course) make sure there is a tape in the drive - that is not write protected. Also, make sure that
/dev/rmt/1m
is the correct device file. Do an
ioscan -fnkC tape
to confirm this.