Operating System - HP-UX
1752401 Members
5643 Online
108788 Solutions
New Discussion юеВ

Re: How to take and restore from dd

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: How to take and restore from dd

>It took 3.5 Hrs for 260 GB database using pax and same is taking only 2.5 Hrs for the same size using fbackup.

pax is NOT an industrial strength backup tool. There is only one reader so it can't keep the backup tape up to speed. Also, what is the default block size you are writing to tape? For -x pax it is 5120. This is probably too small.

>Are there any options in pax command which gives total time at end

In spirit of UNIX, you can simply use time:
time pax ...
Laurent Menase
Honored Contributor

Re: How to take and restore from dd

5120 block size by default is very low.
you should try the option -b 32768
or even if you want to try more:
# pax -w -f /dev/rtape/tape4QIC150 /u01 -x pax -b 32768

# pax -r -f /dev/rtape/tape4QIC150 -p e -b 32768

if you want to test with a larger block size:
for instance 64k
# pax -w /u01 -x pax | dd ibs=8k obs=64k of=/dev/rtape/tape4QIC150

and to read then
dd bs=64k if=/dev/rtape/tape4QIC150 |pax -r -p e

Bill Hassell
Honored Contributor

Re: How to take and restore from dd

> Since fbackup(1M) from 11.31 cannot be restored to fbackup to 11.23, I am forced to dd since files are more than 8 Gb

It is truly sad that a high quality backup program is being removed from future HP-UX releases. fbackup will handle terabyte files and has since large files were introduced many years ago. The 8GB limit applies to certain versions of tar and pax.

> It took 3.5 Hrs for 260GB database using pax and same is taking only 2.5 Hrs for the same size using fbackup.

Actually, that seems slow for fbackup. If you did not use an fbackup config file, you are missing out on a much faster backup speed. Unlike primitive file backup programs like tar and pax, fbackup uses a shared memory pool and multiple disk readers to keep the tape busy. Modern tape drives are too fast for tar and pax and will be unable to run at full speed. Perhaps you can provide details on why fbackup is failing.

As far as dd, this is the worst backup method there is since there is no table of contents, no label and it will be impossible to recover from a tape read error. dd does not have a retry or a skip bad block feature. dd is useful for disk to disk (hence the name dd) but tapes are not always reliable and you could lose everything with a bad spot.

Other than fbackup, the only recommendation is Data Protector which is an enterprise quality backup program. It has no filesize limitations (whatever HP-UX can handle), and performs the same type of data pooling for high performance. It has retries and skip bad spots as well as an index even for raw backups. Don't buy it if your data isn't worth anything. But if your data is valuable, there is no price too high to be able to reliably restore from your backups.


Bill Hassell, sysadmin
James R. Ferguson
Acclaimed Contributor

Re: How to take and restore from dd

Hi (again):

I couldn't agree more with Bill's sentiments that it is truly sad the HP would cease support of 'fbackup' and 'frecover' in future releases.

I would hope that Dennis or Laurent might shed some light on the rationale (if it could be called that) for this path. As a HP-centric tool for quick backups and data migrations this is a loss. I understand that the open-standard 'pax' is the stated way forward, but the loss of the aforementioned tools lessens to some degree the additional value HP brings to Unix.

Regards!

...JRF...
Avinash20
Honored Contributor

Re: How to take and restore from dd

Solution stated above

Also labs are working on enhancement in pax (graph etc. like fbakcup does) in Mar 2009 :)
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
OldSchool
Honored Contributor

Re: How to take and restore from dd

"enhancement in pax (graph etc. like fbakcup does..."

I wonder where that came from, as there are (or at least, were) standards for pax, and that implies interoperability.