- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: make_tape_recovery failse
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
тАО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
- 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
- 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
- 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
- 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
- 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
- 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