- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: make_tape_recovery failse
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
06-01-2004 01:51 AM
06-01-2004 01:51 AM
System HP9000/800 L2000 and OS HP-UX 11.0.
When we execute "make_tape_recovery ${var}" out of a script, using "#!/usr/bin/ksh" as fist line.
- var=" -AIv -a /dev/rmt/0mn "
Than we get the following error message:
ERROR: Tape destination ^P is not found on the system.No such file or directory (errno = 2)
ERROR: Check tape device failed.
When we run this script using "#!/usr/bin/sh" as the first line al goes well?
We installed last friday a lot of patches on two of oure five servers. On those two servers this problem occurs and not on the three other servers.
I think that "/usr/bin/ksh" is not changed becose de size and date are the same on all five servers.
ls -lad /usr/bin/ksh
-r-xr-xr-x 2 root bin 172032 Sep 16 2002 /usr/bin/ksh
See the attached file with a script and the error messages we get.
- Is it better to use ksh or sh for scripts ran by "root" or "admin-users"?
- Those make-tape_recovery need sh?
Regards Co.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2004 02:36 AM
06-01-2004 02:36 AM
SolutionTry this:
OPTIONS="-x inc_entire=vg00 -I -v"
DEVICE=`grep tape_destination /var/opt/ignite/recovery/previews|awk -F= '{ print $2 }'`
/usr/bin/mt -f ${DEVICE} rew
/usr/bin/mt -f ${DEVICE} status
/opt/ignite/bin/make_tape_recovery ${OPTIONS} 2>&1
STATUS=$?
case $STATUS in
0) echo "make_tape_recovery Ok"
/usr/bin/mt -f $DEVICE offline
;;
*) echo "make_tape_recovery ERROR"
;;
esac
cat /var/opt/ignite/recovery/latest/recovery.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2004 12:25 PM
06-01-2004 12:25 PM
Re: make_tape_recovery failse
Not sure your vairables are getting set correctly.
Below is the command we use, any variables have been edited for true values.
/opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2004 12:39 PM
06-01-2004 12:39 PM
Re: make_tape_recovery failse
Using /usr/bin/sh should cause no problems, check the patches that were installed and what they installed.
"mt -f " Always use the full path to commands in scripts.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2004 11:23 PM
06-01-2004 11:23 PM
Re: make_tape_recovery failse
The attached script was a extraction of the origenal. Normal I use a full-path for every command.
Thanks for your reaction about "/usr/bin/sh".
It looks like it works with "/usr/bin/sh".
But still I don't understand why it don't work with "ksh".
Greetings Co.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2004 11:25 PM
06-01-2004 11:25 PM
Re: make_tape_recovery failse
If I hardcode the "-a /dev/rmt/0mn" option and use "ksh" it also doesn't work!!
It looks to me that "make_tape_recovery" doesn't work anymore in "ksh".
I will check all patches.
Greetings Co.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-27-2004 08:29 PM
09-27-2004 08:29 PM
Re: make_tape_recovery failse
It seems that I need to upgrade ingite-UX.
Greetings,
Co
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP