- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help on fbackup
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
09-11-2007 12:38 PM
09-11-2007 12:38 PM
I would like a script to do fbackup and having gone thru the "man" pages and examples, I'm left with more questions and I hope someone would enlighten me. For example :
1) I would like to backup in LTO3. What parameters should I include in the config (-c switch)? What's the default if I do not include this? Do I need to worry about compression?
2) If I do not include the -g option to include the graph, does it mean that nothing will be backed up? Likewise, if I were to include it, does it mean I have to specify all the path (i option) that's to be backed up?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 12:55 PM
09-11-2007 12:55 PM
SolutionBe sure to specify your own configuration file for 'fbackup'. The default values that you will otherwise obtain are out-dated and will generally give very poor performance during backup and recovery. Build a configuration file that looks something like:
blocksperrecord 4096
records 64
checkpointfreq 4096
readerprocesses 6
maxretries 5
retrylimit 5000000
maxvoluses 200
filesperfsm 2000
The manpages for 'fbackup(1M)' document the default settings which is what you will get in the *absence* of an explicily defined set.
These parameters are recorded onto the actual backup tape and are thus used for a 'frecover' session too.
Checkpoint records allow the salvage of a backup when a bad tape spot is detected, since the records contain information about the file being backed up. The 'filesperfsm' parameter controls the frequency with which Fast Search Marks (FSM) are written. Both checkpoint and FSM records affect performance. FSMs take a tape drive out of streaming mode thereby adding to backup time. Conversely, however, FSMs improve the time it take to recover a file from tape.
In general, if your backup consists of a high proportion of small files, increase the value for 'filesperfsm'. If your backup consists of a high proportion of large files, then decrease the 'filesperfsm' value.
Compression is done by the tape drive device and is highly data dependent.
As for the '-g' (graph) option, specify a graph file that looks like:
i /
e /cdrom
e /dvdrom
This would include *everything* in the root directory and below except CD and DVDROM mountpoints. You can freely include and exclude directories and files. You can include a directory at its base level and exclude subdirectories of it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 01:34 PM
09-11-2007 01:34 PM
Re: Help on fbackup
Thanks for taking the time to provide the very detailed reply. :)
I will try out your suggestions.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 01:41 PM
09-11-2007 01:41 PM
Re: Help on fbackup
Does anyone know where else I can find documentation on fbackup and it's switches/options besides manpages?
I've downloaded the the HPUX Sys Admin Guide from hp.docs website but there's not much info there.
Appreciate any input.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 02:38 PM
09-11-2007 02:38 PM
Re: Help on fbackup
google finds HP-UX System Administration Tasks: HP 9000:
http://www.docs.hp.com/en/B2355-90672/ch09.html
Backing Up Your Data Using HP-UX Commands
http://www.docs.hp.com/en/B2355-90672/ch09s08.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 02:40 PM
09-11-2007 02:40 PM
Re: Help on fbackup
I am using fbackup also and sent to a tape: here the entry that I put on my script and it is working as I have done a disaster recovery:
# Perform a full backup with FBACKUP HP-UX command
/usr/bin/mt -f /dev/rmt/0mn rew 1>>$LOG 2>>$LOG
/usr/sbin/fbackup -f /dev/rmt/0m -i / -e /var/spool/sockets/pwgr -I $logdir/index.fullbackup 1>$logdir/fbackup.msg 2>&1
success=$?
case $success in
0)
echo "BACKUP SUCCESSFUL"
/usr/bin/mt -f /dev/rmt/0mn offl 1>>$LOG 2>>$LOG
;;
4)
echo"BACKUP SUCCESSFUL ending with warnings. See logs $logdir/fbackup.msg "
/usr/bin/mt -f /dev/rmt/0mn offl 1>>$LOG 2>>$LOG
;;
*)
echo "ERROR: Return Code is $success BACKUP MAY HAVE FAILED !!!!!!!!!!!"
;;
esac
Cheers
K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 02:58 PM
09-11-2007 02:58 PM
Re: Help on fbackup
1>>$LOG 2>>$LOG
Minor improvement: 1>>$LOG 2>&1
When you dup (2>&1) a file, it uses the mode (>> append) from the first open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 03:16 PM
09-11-2007 03:16 PM
Re: Help on fbackup
Thanks for the links.
I think this is the guide that I downloaded. :)
I'm specifically looking for info on parameters like 'blocksperrecord', 'records', etc and related config. As suggested by James in the earlier reply, the value of 4096 is used for LTO3. Is this value fixed for LTO3?
How do I know what value to use if I'm using say, DDS?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 03:22 PM
09-11-2007 03:22 PM
Re: Help on fbackup
Thanks for the reply.
That's one heck of a script you have there !!
As a newbie to writing scipts, I think I need to "decipher" line by line what those commands do! :)
I'm sure it works successfully.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 01:13 AM
09-12-2007 01:13 AM
Re: Help on fbackup
Since 'fbackup' is a proprietary HP tool, there is little information available. As far as I know, the Technical Knowledge Base is the best source of information beyond the public manpages.
The following links will give you insight into the internals of 'fbackup':
https://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01002358-4
https://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00908460-1
The document IDs are at the end of each URL.
As a side note, sadly, in my opinion, 'fbackup' is deprecated with release 11.31 and eventually will be phased out, although 'frecover' will persist to enable one to recover archives originally created with 'fbackup'. The standard Unix 'pax' command is considered a replacement.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 11:45 AM
09-12-2007 11:45 AM
Re: Help on fbackup
Thanks again for the reply.
It's sad news indeed... :( Just when I'm getting all interested in fbackup...
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 02:04 PM
09-12-2007 02:04 PM
Re: Help on fbackup
- no limit on file sizes
- provisions for busy and locked files
- multi-tape support
- hooks for tape changer handling
- frecover from parity errors on tape
- very high performance (up to 6 parallel processes)
- frecover can get any file in just a few minutes
- every tape has a complete index and can be read in seconds
- tapes have a label at the front to prevent accidental overwrite
Virtually all commercial backup programs like HP's Data Protector have these (and other) features. Note that an LTO3 places enormous performance requirements on your system (it's not just a long tape). Using fbackup with the above parameters will be the fastest solution.
Bill Hassell, sysadmin