<?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: detect sparse files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5799347#M638508</link>
    <description>&lt;P&gt;i have now the reason of "sparse files" from oracle database filesystems&lt;BR /&gt;&lt;BR /&gt;the oracle database has a defined block size and oracle administrate the block management in other block size than the&lt;BR /&gt;file system.&lt;BR /&gt;&lt;BR /&gt;Analyze:&lt;BR /&gt;&lt;BR /&gt;oracle-user:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Connect again the oracle database and check the oracle block size.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;When you install a database, you define the oracle block size, this size is the whole store management of the database.&lt;BR /&gt;You can also define with new oracle rdbms releases for some tablespaces other block size ….&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;sqlplus ´ / as sysdba´&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;SQL&amp;gt; show parameters block_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; ------------------------------------ ----------- ------------&lt;BR /&gt;db_block_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; integer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16384&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;the size ist 16 KB !&lt;BR /&gt;&lt;BR /&gt;root-user:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;So i change the blksize ( to the oracle block size) in checksparse.pl and i get the right results.&lt;BR /&gt;I append it as attachment (oracle temporary files are sparse files !!)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;When you check files of oracle databases , you must know the block_size of the oracle database !&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;The block size of the filesystem must not the block size of the files of the oracle database !&lt;BR /&gt;&lt;BR /&gt;regards&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2012 14:32:24 GMT</pubDate>
    <dc:creator>support_billa</dc:creator>
    <dc:date>2012-09-10T14:32:24Z</dc:date>
    <item>
      <title>detect sparse files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5788913#M638506</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;due to my thread &lt;A target="_blank" href="https://community.hpe.com/t5/System-Administration/copy-a-filesystem-best-solution-local-host-or-remote-host/m-p/4787250/highlight/true#M391453"&gt;copy a filesystem best solution (local host or remote host)&lt;/A&gt; &amp;nbsp;i have a question about sparse files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i find a sparse file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am read following links :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://administratosphere.wordpress.com/2008/05/23/sparse-files-what-why-and-how/"&gt;Sparse files – what, why, and how&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.dbaglobe.com/2010/08/oracle-tempfile-on-linux-is-using.html"&gt;Oracle tempfile on linux is using sparse file by default &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and found following perl script :&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://code.google.com/p/unixtoolbox/source/browse/trunk/sparse_files/checksparse.pl?r=8"&gt;checksparse.pl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i test the perl and it&amp;nbsp; works for Linux not for HP-UX. i think the check depends on the blocksize of a directory or filesystem ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we changed the script to&lt;/P&gt;&lt;PRE&gt;printf "blksize: $blksize \n";
my $blocks_used=$blocks*$blksize/8;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;because the $blksize is defined in Bit .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i made tests for HP-UX and Linux , the sparse will point out in every OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the Oracle Datafiles , which i think is true ?&lt;/P&gt;&lt;P&gt;in the attachments are the tests and the changed perl ( i add with extension '.sh' please change it to '.pl' , when you download it)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,tpl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 12:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5788913#M638506</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-08-31T12:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: detect sparse files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5794749#M638507</link>
      <description>&lt;P&gt;the checks are for all files right, but only oracle files shows difference.&lt;/P&gt;&lt;P&gt;i know the oracle temporary file is a sparse file, but the other once ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some info :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.admon.org/how-to-check-sparse-files-with-perl/"&gt;How to Check Sparse Files with Perl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://unix.stackexchange.com/questions/28648/sparse-files-file-holes-and-unexpected-block-size"&gt;Sparse files/file holes and unexpected block size&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://linuxtechres.blogspot.co.at/2010/10/how-to-deal-with-sparse-files.html"&gt;How to deal with sparse files (ORACLE)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the tests :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HP-UX&lt;BR /&gt;&lt;BR /&gt;$ &lt;STRONG&gt;ls -l sparse&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-rw-r-----&amp;nbsp;&amp;nbsp; 1 root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys 2147483679 Aug 28 08:57 sparse&lt;BR /&gt;$ &lt;STRONG&gt;du -k sparse&lt;/STRONG&gt;&lt;BR /&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sparse&lt;BR /&gt;&lt;BR /&gt;OK:OK:OK:OK:&lt;BR /&gt;$&lt;STRONG&gt; ./checksparse.pl sparse&lt;/STRONG&gt;&lt;BR /&gt;blksize: 8192&lt;BR /&gt;sparse =&amp;gt; size: 2147483679&amp;nbsp;&amp;nbsp; actual space used: 8192&lt;BR /&gt;&lt;BR /&gt;Linux&lt;BR /&gt;&lt;BR /&gt;OK:OK:OK:OK:&lt;BR /&gt;$&lt;STRONG&gt; ls -alsh sparse checksparse.pl&lt;/STRONG&gt;&lt;BR /&gt;4.0K -rwxr-xr-x 1 root root&amp;nbsp; 815 Aug 28 13:59 checksparse.pl&lt;BR /&gt;&amp;nbsp;12K -rw-r--r-- 1 root root 2.1G Aug 28 09:00 sparse&lt;BR /&gt;&lt;BR /&gt;$ &lt;STRONG&gt;./checksparse.pl sparse&lt;/STRONG&gt;&lt;BR /&gt;blksize: 4096&lt;BR /&gt;sparse =&amp;gt; size: 2147483726&amp;nbsp;&amp;nbsp; actual space used: 12288&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ls -alsh /oracle/db&lt;/STRONG&gt;&lt;BR /&gt;total 29G&lt;BR /&gt;1.0K drwxr----- 3 ora102 dba&amp;nbsp;&amp;nbsp; 1.0K Jul 31 20:32 .&lt;BR /&gt;4.0K drwxr-xr-x 4 root&amp;nbsp;&amp;nbsp; sys&amp;nbsp;&amp;nbsp; 4.0K Jul 24 13:10 ..&lt;BR /&gt;2.1G -rw-r----- 1 ora102 dba&amp;nbsp;&amp;nbsp; 2.0G Sep&amp;nbsp; 5 09:05 ORCL_df02_00.dbf&lt;BR /&gt;2.6G -rw-r----- 1 ora102 dba&amp;nbsp;&amp;nbsp; 2.5G Sep&amp;nbsp; 5 09:05 ORCL_df01_00.dbf&lt;BR /&gt;239M -rw-r----- 1 ora102 dba&amp;nbsp;&amp;nbsp; 1.5G Aug 29 22:14 ORCL_dftemp_00.dbf&lt;BR /&gt;&lt;BR /&gt;OK:OK:OK:OK: ???????????????????????????????&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;./checksparse.pl /oracle/db/&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;blksize: 1024&lt;BR /&gt;/oracle/db/ORCL_df01_00.dbf&amp;nbsp;&amp;nbsp; =&amp;gt; size: 2682273792&amp;nbsp;&amp;nbsp; actual space used: 673198592&lt;BR /&gt;/oracle/db/ORCL_df01_00.dbf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; size: 2145402880&amp;nbsp;&amp;nbsp; actual space used: 538454528&lt;BR /&gt;/oracle/db/ORCL_dftemp_00.dbf =&amp;gt; size: 1608531968&amp;nbsp;&amp;nbsp; actual space used: 62437888&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 15:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5794749#M638507</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-09-05T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: detect sparse files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5799347#M638508</link>
      <description>&lt;P&gt;i have now the reason of "sparse files" from oracle database filesystems&lt;BR /&gt;&lt;BR /&gt;the oracle database has a defined block size and oracle administrate the block management in other block size than the&lt;BR /&gt;file system.&lt;BR /&gt;&lt;BR /&gt;Analyze:&lt;BR /&gt;&lt;BR /&gt;oracle-user:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Connect again the oracle database and check the oracle block size.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;When you install a database, you define the oracle block size, this size is the whole store management of the database.&lt;BR /&gt;You can also define with new oracle rdbms releases for some tablespaces other block size ….&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;sqlplus ´ / as sysdba´&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;SQL&amp;gt; show parameters block_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; ------------------------------------ ----------- ------------&lt;BR /&gt;db_block_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; integer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16384&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;the size ist 16 KB !&lt;BR /&gt;&lt;BR /&gt;root-user:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;So i change the blksize ( to the oracle block size) in checksparse.pl and i get the right results.&lt;BR /&gt;I append it as attachment (oracle temporary files are sparse files !!)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;When you check files of oracle databases , you must know the block_size of the oracle database !&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;The block size of the filesystem must not the block size of the files of the oracle database !&lt;BR /&gt;&lt;BR /&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 14:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detect-sparse-files/m-p/5799347#M638508</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-09-10T14:32:24Z</dc:date>
    </item>
  </channel>
</rss>

