- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sparse files after recover from make_tape_recovery
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
тАО11-23-2004 12:16 AM
тАО11-23-2004 12:16 AM
ignite 5.1 (know it is not the latest version)
I have recovered the system from a tape created by make_tape_recovery (including the whole vg00). In the origin system I had two Versant database files each 2000MB, but mostly empty. After recovery I check the system with bdf and was very astonished. In one volume group I missed approx. 3,4 GB data. First I thought that either backup or restore had been broken, but all files had been restored.
As indicated the solution are the database files. These files are shown by ll with its original length (2000MB), but df/bdf shows only the disk space currently occupied (some MB).
To save space and time during backup I can accept this Ignite behaviour (large, but empty files). But after restore I would expect to have the same system state as before.
It can be dangerous to use the disk space in this filesystem for other files where the disk space is rather reserved for the database.
My question: Is there a way to avoid this behaviour of Ignite ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 12:26 AM
тАО11-23-2004 12:26 AM
Re: sparse files after recover from make_tape_recovery
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 12:32 AM
тАО11-23-2004 12:32 AM
Re: sparse files after recover from make_tape_recovery
Ignite is very good a system backups and vry picky about everything else.
It is useful for database backups only if those databases are shut down when the Ignite tape is made.
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-23-2004 12:45 AM
тАО11-23-2004 12:45 AM
Re: sparse files after recover from make_tape_recovery
If your database has the option of allocating all the space assigned for each file, use that to build the files. The other choice is to backup the files with something like tar or cpio (for files 2Gb and smaller), then restore the files. Sparse files will be serially read by tar/cpio and all the unoccupied space will be saved as a series of nulls. When restored, the nulls will be left intact and the full space will be used. A related command is: prealloc
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 02:47 AM
тАО11-23-2004 02:47 AM
Re: sparse files after recover from make_tape_recovery
There are two aspects in your answers.
a) Usage of Ignite
b) the sparse file problem
ad a)
We have a server system which is delivered to several customers. The system consists of HP-UX, a lot of 3PP and our applications. The setup takes 1-2 days. After a quick check our support staff shuts down the system into single user mode and runs the make_tape_recovery to have a complete backup of the whole system. The tape(s) can be stored on safe place at customer site to have the possibility for a desaster recovery.
Therefore I think make_tape_recovery is a simple tool with enough power to fullfill this task.
ad b)
1. Versant does not create sparse files. The database files are normal files, the "sparse aspect" occurs only after restore.
2. Steven, you are right. The database was not really down when the tape was created.
But at this moment no applications were running against the db. In contrast to Oracle the Versant database can be started from the recovered (open) files, check consistency command runs without error, all objects can be displayed.
Therefore I don't believe that the sparse effect is in relation to "open" database files. It must be a feature (or error ???) of
Ignite restore.
I would guess each other big file with almost nulls is handled in the same way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 03:19 AM
тАО11-23-2004 03:19 AM
SolutionCan you try this experiment?
# pack up the file similar to how Ignite will
pax -wf - VersantFile | gzip - > VersantFile_pax.gz
# check the size the archive thinks the file
# is.
gzcat VersantFile_pax.gz | pax -tvf -
# extract the file into a different name and
# check the size
gzcat VersantFile_pax.gz | pax -rif -
rename VersantFile? fooBar
ll fooBar
du fooBar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 03:27 AM
тАО11-23-2004 03:27 AM
Re: sparse files after recover from make_tape_recovery
If you stop and think about this for a moment this is really the only safe way for Ignite to work. Consider the case where intentionally sparse files were used and indeed the filesystem was overcommited. If sparse files were filled-in on the restore then the filesystem would fill up and the Ignite would fail. I suppose it would be nice if it were possible to spot sparse files but that would change the behavior of the read() system call and I sure ain't ready for the problems that would cause.
You are correct that the "problem" has nothing to do with databases - open or closed. This is simply an artifact of the way the read() system call works to make sparse files invisible.
As the others have suggested. You should rerally use Ignite for vg00 and the remainder of the restore (if even necessary) should be part of your regular backup and restore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 10:06 PM
тАО11-23-2004 10:06 PM
Re: sparse files after recover from make_tape_recovery
Michael, here the results of the tests.
# ll system.orig
-rw------- 1 root sys 2097152000 Nov 24 09:32 system.orig
# du -k system.orig
2048008 system.orig
# pax -wf - system.orig | gzip - > system.pax.gz
# gzcat system.pax.gz | pax -tvf -
USTAR format archive
-rw------- 0 root sys 2097152000 Nov 24 09:32 system.orig
# gzcat system.pax.gz | pax -rif -
rename system.orig? xxx
# ll xxx
-rw------- 1 root sys 2097152000 Nov 24 09:32 xxx
# du -k xxx
6134 xxx
It is really a nice mechanism to save disk space. But seriously spoken, knowing this behaviour I'm able to document it to avoid error messages like
"Help, help after recovery from the Ignite tape I miss XXX GB of data !!!".
Thanks again for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2004 05:29 AM
тАО11-24-2004 05:29 AM
Re: sparse files after recover from make_tape_recovery
Step 1) Create the sparse file:
-----------------------------------------
# rm -f SparseDB
# touch SparseDB
# perl -e '$f="SparseDB";syscall(129,$f,0xf00000)'
# ls -al SparseDB
-rw-rw-rw- 1 kole users 15728640 Nov 24 10:36 SparseDB
# du -sk SparseDB
0 SparseDB
Step 2) Now use /usr/bin/cp to convert from Sparse to not NonSparse:
-----------------------------------------------------------------------------------------------
# /usr/bin/cp -p SparseDB NonSparseDB
# du -sk SparseDB NonSparseDB
0 SparseDB
15360 NonSparseDB