- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fbackup is returning an error code 1 when run on c...
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
Forums
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
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-19-2004 02:23 AM
11-19-2004 02:23 AM
fbackup is returning an error code 1 when run on crontab but not when run from the command line
Any ideas/thoughts please?
HP-UX 11.00
Tape device is a Quantum DLT8000
command is fbackup -f /dev/rmt/1m -n -i . >
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 02:27 AM
11-19-2004 02:27 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
Most likely the fbackup command is not on the path.
Either set the path to include where fbackup is (whence fbackup) or use the full path for fbackup in the script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 02:28 AM
11-19-2004 02:28 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
cron will be confused if you simply specify '.'. Add a meaningful path say "/". It's better to use -g option and specify a graph file with it. 'man fbackup' for more information.
fbackup -f /dev/rmt/1m -n -i / >
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 02:33 AM
11-19-2004 02:33 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 02:41 AM
11-19-2004 02:41 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
However, I have the exact same script running to back up the same data, on the same server, to a DDS drive and this runs perfectly.
The only difference between the two scripts, is the /0m (DDS) and /1m (DLT) I direct the data to. It worth mentioning that the scripts run at seperate times.
It is also worth mentioning that the fbackup for the DLT does actually run, but according to a custom log output I use, the backup starts and stops instantly.
When I run the command manually, the backup runs without a problem.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 09:11 AM
11-19-2004 09:11 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
I would add several options so you can see what is happening, and also add a config file to significantly speed up the backup process:
-V /var/adm/fbackupVolumeHeader.log
-I /var/adm/fbackupIndex.log
-c /etc/fbackupConfig
The fbackupConfig file should contain:
blocksperrecord 512
records 64
checkpointfreq 1024
readerprocesses 6
maxretries 5
retrylimit 5000000
maxvoluses 200
filesperfsm 2000
Look in your logfiles for error messages from cron. But don't try the full backup at some late hour. Schedule the backup for a few minutes in the future, change crontab and then see what happened.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 09:05 PM
01-06-2005 09:05 PM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
We have finally managed to get the backup working, the config settings seem to have done the trick.
We are, however, having an issue with the verification. The verification start and stop times are the same... Any idea why this is so?
Thank you
- Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:29 AM
01-07-2005 01:29 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 02:07 AM
02-16-2005 02:07 AM
Re: fbackup is returning an error code 1 when run on crontab but not when run from the command line
/usr/sbin/frecover -r -vN -f $TAPE_DEV
I found the problem was that I didn't specify the full /usr/sbin path in the script, but this is fine now, thanks.
Regards
- Peter