<?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 Space puzzle in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254092#M471292</link>
    <description>I cannot understand why I'm getting the following:&lt;BR /&gt;&lt;BR /&gt;The file is an oracle temp file. How come is the file almost 1.5GiB when the file system has only got 500MiB?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# bdf /dev/proddg/USER_TTS&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/proddg/USER_TTS&lt;BR /&gt;                    512000  512000       0  100% /oracle/user_tts&lt;BR /&gt;&lt;BR /&gt;# ls -l /oracle/user_tts&lt;BR /&gt;total 1021542&lt;BR /&gt;drwxr-xr-x   2 root       root            96 Jul 14  2004 lost+found/&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   1572872192 Aug 20 15:54 user_tts0.dbf&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/proddg/USER_TTS&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/proddg/USER_TTS&lt;BR /&gt;VG Name                     /dev/proddg&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            500&lt;BR /&gt;Current LE                  125&lt;BR /&gt;Allocated PE                125&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   on&lt;BR /&gt;Allocation                  strict&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;&lt;BR /&gt;# du -sk /oracle/user_tts&lt;BR /&gt;510771  /oracle/user_tts&lt;BR /&gt;&lt;BR /&gt;du(1) reports a more sensible output.&lt;BR /&gt;&lt;BR /&gt;Why am I getting these confusing numbers? Would be that the file has 'holes' or something crazy like that?&lt;BR /&gt;&lt;BR /&gt;I really don't know what is happening here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;&lt;BR /&gt;Manuel</description>
    <pubDate>Wed, 01 Sep 2010 15:03:41 GMT</pubDate>
    <dc:creator>Manuel Urena</dc:creator>
    <dc:date>2010-09-01T15:03:41Z</dc:date>
    <item>
      <title>Space puzzle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254092#M471292</link>
      <description>I cannot understand why I'm getting the following:&lt;BR /&gt;&lt;BR /&gt;The file is an oracle temp file. How come is the file almost 1.5GiB when the file system has only got 500MiB?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# bdf /dev/proddg/USER_TTS&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/proddg/USER_TTS&lt;BR /&gt;                    512000  512000       0  100% /oracle/user_tts&lt;BR /&gt;&lt;BR /&gt;# ls -l /oracle/user_tts&lt;BR /&gt;total 1021542&lt;BR /&gt;drwxr-xr-x   2 root       root            96 Jul 14  2004 lost+found/&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   1572872192 Aug 20 15:54 user_tts0.dbf&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/proddg/USER_TTS&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/proddg/USER_TTS&lt;BR /&gt;VG Name                     /dev/proddg&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            500&lt;BR /&gt;Current LE                  125&lt;BR /&gt;Allocated PE                125&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   on&lt;BR /&gt;Allocation                  strict&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;&lt;BR /&gt;# du -sk /oracle/user_tts&lt;BR /&gt;510771  /oracle/user_tts&lt;BR /&gt;&lt;BR /&gt;du(1) reports a more sensible output.&lt;BR /&gt;&lt;BR /&gt;Why am I getting these confusing numbers? Would be that the file has 'holes' or something crazy like that?&lt;BR /&gt;&lt;BR /&gt;I really don't know what is happening here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;&lt;BR /&gt;Manuel</description>
      <pubDate>Wed, 01 Sep 2010 15:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254092#M471292</guid>
      <dc:creator>Manuel Urena</dc:creator>
      <dc:date>2010-09-01T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Space puzzle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254093#M471293</link>
      <description>Hi Manuel:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Would be that the file has 'holes' or something crazy like that?&lt;BR /&gt;&lt;BR /&gt;Yes, that's often the case for database files.&lt;BR /&gt;&lt;BR /&gt;The larger value for 'ls' (1572872192) indicates the end-of-file offset whereas the 'du' value (510771 1k-blocks) indicates the actual blocks allocated.&lt;BR /&gt;&lt;BR /&gt;Sparse files will evidence this relationship.&lt;BR /&gt;&lt;BR /&gt;If you copy (with 'cp') the file in question as something else, you can see that the copied file is "expanded".   Try this:&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/zero of=/tmp/mysparse seek=1024 count=10 bs=1024&lt;BR /&gt;# ls -l /tmp/mysparse&lt;BR /&gt;-rw-r--r--   1 root       sys        1058816 Sep  1 12:15 /tmp/mysparse&lt;BR /&gt;# du -k /tmp/mysparse&lt;BR /&gt;# 32      /tmp/mysparse&lt;BR /&gt;# cp /tmp/mysparse /tmp/mysparse.nomore&lt;BR /&gt;# ls -l /tmp/mysparse.nomore&lt;BR /&gt;-rw-r--r--   1 root       sys        1058816 Sep  1 12:15 /tmp/mysparse.nomore&lt;BR /&gt;# du -k /tmp/mysparse.nomore&lt;BR /&gt;1040    /tmp/mysparse.nomore&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2010 15:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254093#M471293</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-09-01T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Space puzzle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254094#M471294</link>
      <description>Its because Oracle TEMP files are always created as sparse files... as the TEMP file is used, the file will grow... see this for more details:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.orafaq.com/node/2" target="_blank"&gt;http://www.orafaq.com/node/2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Are you the DBA? I would not want a DBA creating TEMP files which are bigger than the filesystem they reside on, its one of the things a DBA should be checking when creating the database or adding/modifying TEMP files.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 01 Sep 2010 15:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254094#M471294</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2010-09-01T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Space puzzle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254095#M471295</link>
      <description>No I'm not the/a DBA.&lt;BR /&gt;&lt;BR /&gt;Many thanks Duncan and James.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2010 15:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254095#M471295</guid>
      <dc:creator>Manuel Urena</dc:creator>
      <dc:date>2010-09-01T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Space puzzle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254096#M471296</link>
      <description>Got an answer for my question.</description>
      <pubDate>Wed, 01 Sep 2010 15:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-puzzle/m-p/5254096#M471296</guid>
      <dc:creator>Manuel Urena</dc:creator>
      <dc:date>2010-09-01T15:56:24Z</dc:date>
    </item>
  </channel>
</rss>

