<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sparse files after recover from make_tape_recovery in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428594#M512401</link>
    <description>Hello, thanks for your answers.&lt;BR /&gt;&lt;BR /&gt;Michael, here the results of the tests.&lt;BR /&gt;&lt;BR /&gt;# ll system.orig &lt;BR /&gt;-rw-------   1 root       sys        2097152000 Nov 24 09:32 system.orig&lt;BR /&gt;# du -k system.orig&lt;BR /&gt;2048008 system.orig&lt;BR /&gt;&lt;BR /&gt;# pax -wf - system.orig | gzip - &amp;gt; system.pax.gz&lt;BR /&gt;&lt;BR /&gt;# gzcat system.pax.gz | pax -tvf -&lt;BR /&gt;USTAR format archive&lt;BR /&gt;-rw-------  0 root     sys      2097152000 Nov 24 09:32 system.orig&lt;BR /&gt;# gzcat system.pax.gz | pax -rif -&lt;BR /&gt;rename system.orig? xxx&lt;BR /&gt;# ll xxx&lt;BR /&gt;-rw-------   1 root       sys        2097152000 Nov 24 09:32 xxx&lt;BR /&gt;# du -k xxx&lt;BR /&gt;6134    xxx&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;"Help, help after recovery from the Ignite tape I miss XXX GB of data !!!".&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help.&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Nov 2004 06:06:27 GMT</pubDate>
    <dc:creator>Ekkehard Schulz</dc:creator>
    <dc:date>2004-11-24T06:06:27Z</dc:date>
    <item>
      <title>sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428587#M512394</link>
      <description>hp-ux 11.11&lt;BR /&gt;ignite 5.1 (know it is not the latest version)&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;My question: Is there a way to avoid this behaviour of Ignite ?</description>
      <pubDate>Tue, 23 Nov 2004 08:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428587#M512394</guid>
      <dc:creator>Ekkehard Schulz</dc:creator>
      <dc:date>2004-11-23T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428588#M512395</link>
      <description>You can avoid this by first - only backing up vg00 and second - by keeping your data in separate vg's other than vg00.  Ignite is not designed to back up your data and you should be using conventional backup methods to back up and recover your data separate from your root vg.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 23 Nov 2004 08:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428588#M512395</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-11-23T08:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428589#M512396</link>
      <description>You probably just tried to back up some open database files. Those files will be useless on recovery anyway.&lt;BR /&gt;&lt;BR /&gt;Ignite is very good a system backups and vry picky about everything else.&lt;BR /&gt;&lt;BR /&gt;It is useful for database backups only if those databases are shut down when the Ignite tape is made.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 23 Nov 2004 08:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428589#M512396</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-23T08:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428590#M512397</link>
      <description>As mentioned, database files should not be part of VG00 and make_tape_recovery should not be used for backup, only for disaster recovery, ie, loss of the boot disk(s). Many database programs do indeed create sparse files and disk space management can be a problem if these files are shared with other, unrelated files. The database may need to grow and when the filesystem is full, the database will crash or at least give out a lot of error messages.&lt;BR /&gt; &lt;BR /&gt;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</description>
      <pubDate>Tue, 23 Nov 2004 08:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428590#M512397</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-23T08:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428591#M512398</link>
      <description>Thank you for the first replies. &lt;BR /&gt;&lt;BR /&gt;There are two aspects in your answers.&lt;BR /&gt;&lt;BR /&gt;a) Usage of Ignite&lt;BR /&gt;b) the sparse file problem&lt;BR /&gt;&lt;BR /&gt;ad a)&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Therefore I think make_tape_recovery is a simple tool with enough power to fullfill this task. &lt;BR /&gt;&lt;BR /&gt;ad b)&lt;BR /&gt;&lt;BR /&gt;1. Versant does not create sparse files. The database files are normal files, the "sparse aspect" occurs only after restore.&lt;BR /&gt;&lt;BR /&gt;2. Steven, you are right. The database was not really down when the tape was created.&lt;BR /&gt;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.&lt;BR /&gt; &lt;BR /&gt;Therefore I don't believe that the sparse effect is in relation to "open" database files. It must be a feature (or error ???) of&lt;BR /&gt;Ignite restore.&lt;BR /&gt;I would guess each other big file with almost  nulls is handled in the same way.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2004 10:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428591#M512398</guid>
      <dc:creator>Ekkehard Schulz</dc:creator>
      <dc:date>2004-11-23T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428592#M512399</link>
      <description>Ignite uses pax to create the archive. it does not have it's own archiving method and is only as capable as pax. &lt;BR /&gt;&lt;BR /&gt;Can you try this experiment?&lt;BR /&gt;&lt;BR /&gt;# pack up the file similar to how Ignite will&lt;BR /&gt;pax -wf - VersantFile | gzip - &amp;gt; VersantFile_pax.gz&lt;BR /&gt;&lt;BR /&gt;# check the size the archive thinks the file&lt;BR /&gt;# is.&lt;BR /&gt;gzcat VersantFile_pax.gz | pax -tvf -&lt;BR /&gt;&lt;BR /&gt;# extract the file into a different name and&lt;BR /&gt;# check the size&lt;BR /&gt;gzcat VersantFile_pax.gz | pax -rif -&lt;BR /&gt;rename VersantFile? fooBar&lt;BR /&gt;&lt;BR /&gt;ll fooBar&lt;BR /&gt;du fooBar&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2004 11:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428592#M512399</guid>
      <dc:creator>Michael Roberts_3</dc:creator>
      <dc:date>2004-11-23T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428593#M512400</link>
      <description>This is normal behavior for the underlying pax command. On restore, when pax sees a long string of ASCII NUL's (I have no idea of the exact trigger level) it does not write() but instead does an lseek() to the next non-NUL offset and resumes writing. The restore really has no idea of the "true" size of the file because when the file was read all the "holes" were simply filled with ASCII NUL's completely invisible to the read().&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Tue, 23 Nov 2004 11:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428593#M512400</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-11-23T11:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428594#M512401</link>
      <description>Hello, thanks for your answers.&lt;BR /&gt;&lt;BR /&gt;Michael, here the results of the tests.&lt;BR /&gt;&lt;BR /&gt;# ll system.orig &lt;BR /&gt;-rw-------   1 root       sys        2097152000 Nov 24 09:32 system.orig&lt;BR /&gt;# du -k system.orig&lt;BR /&gt;2048008 system.orig&lt;BR /&gt;&lt;BR /&gt;# pax -wf - system.orig | gzip - &amp;gt; system.pax.gz&lt;BR /&gt;&lt;BR /&gt;# gzcat system.pax.gz | pax -tvf -&lt;BR /&gt;USTAR format archive&lt;BR /&gt;-rw-------  0 root     sys      2097152000 Nov 24 09:32 system.orig&lt;BR /&gt;# gzcat system.pax.gz | pax -rif -&lt;BR /&gt;rename system.orig? xxx&lt;BR /&gt;# ll xxx&lt;BR /&gt;-rw-------   1 root       sys        2097152000 Nov 24 09:32 xxx&lt;BR /&gt;# du -k xxx&lt;BR /&gt;6134    xxx&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;"Help, help after recovery from the Ignite tape I miss XXX GB of data !!!".&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2004 06:06:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428594#M512401</guid>
      <dc:creator>Ekkehard Schulz</dc:creator>
      <dc:date>2004-11-24T06:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: sparse files after recover from make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428595#M512402</link>
      <description>How to convert a file from Sparse to NonSparse:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Step 1) Create the sparse file:&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;    # rm  -f  SparseDB&lt;BR /&gt;    # touch  SparseDB&lt;BR /&gt;    # perl  -e  '$f="SparseDB";syscall(129,$f,0xf00000)'&lt;BR /&gt;    # ls -al SparseDB&lt;BR /&gt;    -rw-rw-rw- 1 kole  users  15728640 Nov 24 10:36 SparseDB&lt;BR /&gt;    # du -sk SparseDB&lt;BR /&gt;    0       SparseDB&lt;BR /&gt;&lt;BR /&gt;Step 2) Now use /usr/bin/cp to convert from Sparse to not NonSparse:&lt;BR /&gt;-----------------------------------------------------------------------------------------------&lt;BR /&gt;    # /usr/bin/cp -p SparseDB NonSparseDB&lt;BR /&gt;    # du -sk SparseDB NonSparseDB&lt;BR /&gt;    0       SparseDB&lt;BR /&gt;    15360   NonSparseDB&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2004 13:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sparse-files-after-recover-from-make-tape-recovery/m-p/3428595#M512402</guid>
      <dc:creator>John P. Kole</dc:creator>
      <dc:date>2004-11-24T13:29:19Z</dc:date>
    </item>
  </channel>
</rss>

