- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: fbackup files to the disk & than to the tape
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-03-2004 10:53 PM
11-03-2004 10:53 PM
Do you know how to copy /dir/file -> /dev/rmt/tape and keep format of fbackup ???
till now we did fbackup to the tape using this cmd: fbackup -f /dev/rmt/0m -0vi /
now we cannot let system to be down during fbackup and we are looking for procedure how to do that and minimize downtime.
We want to do fbackup to diskfile
cmd: fbackup -f /dir/file -0vi /
and than copy this file to the tape
Do you know how to copy /dir/file -> /dev/rmt/tape and keep format of fbackup ???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 11:43 PM
11-03-2004 11:43 PM
Re: fbackup files to the disk & than to the tape
what would be the syntax to copy file from disk to tape by cpio??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 11:52 PM
11-03-2004 11:52 PM
Re: fbackup files to the disk & than to the tape
#echo /tmp/filename | cpio -o > /dev/rmt/0m
but when I try
#frecover -r -f /dev/rmt/0m -N -v
than ERROR:
frecover(2105): did not find expected file marker
frecover(5419): checksum on volume header is incorrect.
frecover(5420): not an fbackup volume; magic value is incorrect
frecover(2105): did not find expected file marker
frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN]) frecover(4302): frecover interrupted, continue? (^[yY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 12:34 AM
11-04-2004 12:34 AM
Re: fbackup files to the disk & than to the tape
You would need to cpio it back to disk and then use frecover on the disk file
It just wont work otherwise since the tape is not in fbackup format
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 12:37 AM
11-04-2004 12:37 AM
Re: fbackup files to the disk & than to the tape
1) Script copies files to disk, perhaps even compresses it.
2) Then have fbackup back up the chesen location.
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-04-2004 12:46 AM
11-04-2004 12:46 AM
Re: fbackup files to the disk & than to the tape
The same thing must be usedin case of duplicating Fbackup ??
We need to have fbackup format tape because of vendor support - in case of emergency they can ask us for that.
I thought about somethning like:
frecover
????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 12:55 AM
11-04-2004 12:55 AM
Re: fbackup files to the disk & than to the tape
If you need a cold backup the best way to minimise downtime is to either create a mirror or snapshot of the areas which will have open data. This will require either mirrordisk/ux or online jfs.
1. Create mirror.
2. Shutdown app/db
3. Split mirror (takes seconds)
4. Start app/db
5. fsck and mount split lvol(s)
6. Perform backup using split lvol
If insufficient space/disks for mirror investigate using snapshots. I use both methods on site.
You can reduce backup times by also performing a backup of just your data, backup the OS areas at a different time.
To copy fbackup disk file to tape use dd i.e. dd bs=16k if=/dir/file of=/dev/rmt/xm
By default fbackup uses 16k blocksize ensure dd uses the same blocksize.
Example recovery :
dd bs=16k if=/dev/rmt/xm | frecover -r -f -
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 01:01 AM
11-04-2004 01:01 AM
Re: fbackup files to the disk & than to the tape
Why do you want to bribg the system down?
have you tried using -I /dir/file
?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 01:33 AM
11-04-2004 01:33 AM
Re: fbackup files to the disk & than to the tape
-Split of mirror is good idea - might work - I am going to check it.
-Snapshot - we cannot use this vendor doesn't allow any further instalation to this server.
- I don't need to send system down - I just need consistent fbackup apps (probably need be stopped). Fbackup format is important because it is only supported by vendor.
- Recovery dd bs=16k if=/dev/rmt/xm | frecover -r -f - this recovery works but in case I have really huge file than in case that I need to recover only small amount of data I need to load whole file from the tape.
Our idea was to perform fbackup to disk and than to the tape.
I read that fbackup is using ftio this might work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 02:15 AM
11-04-2004 02:15 AM
Re: fbackup files to the disk & than to the tape
but thank U for nice advices.
If you know any other TIP just send it here I keep watchin this thread and any other tips.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 02:35 AM
11-04-2004 02:35 AM
Re: fbackup files to the disk & than to the tape
dd bs=16k if=/dir/file of=/dev/rmt/xm
frecover should be able to read it back no need to perform a pipe from dd !!
The key is to ensure that the block size is the same on dd as that that fbackup uses (16k as default). Only need to use dd with frecover if the block size was not the same.
So :
fbackup to disk
dd to tape
frecover for recovery...
G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 02:42 AM
11-04-2004 02:42 AM
Re: fbackup files to the disk & than to the tape
if you want to *significantly* reduce downtime this way then you have to do it through any way of a snapshot or split mirror copy.
Any other method means that you actually read and write all the data. If this copy goes to a disk you may be a little faster than in writing to tape but not in the order of magnitudes. If you have a slow disk it will give you less write performance than an LTO2 tape drive...
So for copying data (disregarding DataProtector etc) your best choices in terms of performance are dd or vxdump.
If you have relatively full filesystems or filesystems with tens of thousands of files try
dd if=/dev/vgorig/rlvol# of=/dev/vgbackup/rlvol# bs=1024k
(vgbackup lvol needs to be eqaul size or larger than vgorig lvol)
or for relatively empty filesystems try
vxdump -0 -f - -b 16 /orig_mountpoint | (cd /backup_mounpoint ; vxrestore rf -)
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 02:50 AM
11-04-2004 02:50 AM
Re: fbackup files to the disk & than to the tape
this is exactrly what I am looking for now
but it doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 09:00 AM
11-04-2004 09:00 AM
Re: fbackup files to the disk & than to the tape
could you please specify what is still missing/not working?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 10:48 AM
11-04-2004 10:48 AM
Re: fbackup files to the disk & than to the tape
cat /dev/rmt/0m | frecover -f -
The - represents stdin so frecover will not try to manipulate the non-existant tape. But as a production technique, I'd never try it. Too much risk, extremely slow restore times and too many ways to make a mistake.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 06:42 PM
11-04-2004 06:42 PM
Re: fbackup files to the disk & than to the tape
Otherwise - thank you for other ideas and explanations.This may be is not a way how to do that.:
host1b:/tmp/eurotel#fbackup -i /tmp/mf -f /tmp/fbackup_file
fbackup(1004): session begins on Fri Nov 5 09:37:18 2004
fbackup(3024): writing volume 1 to the output file /tmp/fbackup_file
fbackup(3055): total file blocks read for backup: 134
fbackup(3056): total blocks written to output file /tmp/fbackup_file: 164
host1b:/tmp/eurotel#frecover -r -f /tmp/fbackup_file -N -v
drwxr-xr-x root root /
drwxrwxrwt bin bin /tmp
drwxr-xr-x root sys /tmp/mf
-r-xr-xr-x root sys /tmp/mf/ls
-rw-r--r-- root sys /tmp/mf/syslog.log
host1b:/tmp/eurotel#dd bs=16k if=/tmp/fbackup_file of=/dev/rmt/0m
5+1 records in
5+1 records out
host1b:/tmp/eurotel#frecover -r -f /dev/rmt/0m -N -v
frecover(2105): did not find expected file marker
frecover(5419): checksum on volume header is incorrect.
frecover(5420): not an fbackup volume; magic value is incorrect
frecover(2105): did not find expected file marker
frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN]) frecover(4302): frecover interrupted, continue? (^[yY]/^[nN])
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 09:37 PM
11-04-2004 09:37 PM
Re: fbackup files to the disk & than to the tape
It does work with the pipe :
TALSMS1:/#fbackup -i /sysinfo -f /tmp/file_out
fbackup(1004): session begins on Fri Nov 5 10:30:19 2004
fbackup(3024): writing volume 1 to the output file /tmp/file_out
fbackup(3055): total file blocks read for backup: 77685
fbackup(3056): total blocks written to output file /tmp/file_out: 78116
TALSMS1:/#dd bs=16k if=/tmp/file_out of=/dev/rmt/0m
2441+1 records in
2441+1 records out
TALSMS1:/#dd bs=16k if=/dev/rmt/0m | frecover -rNv -f -
drwxr-xr-x root root /
drwxrwxrwx root root /sysinfo
etc..etc..
So if you could keep the previous night on disk for 24hrs aswell as copying it to tape, your disk copy will resolve the fast recovery issue for any file required from the previous day..
Hopefully a workable solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 09:50 PM
11-04-2004 09:50 PM
Re: fbackup files to the disk & than to the tape
yes dd | frecover works, but than it has to load whole file and than do the recovery which takes much more time than frecover only.