<?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 available in indexf.sys in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911853#M80550</link>
    <description>I found this algorithm on the net to determine free space within the indexf.sys file.&lt;BR /&gt;&lt;BR /&gt;(310 bytes in map area) - (6 times the number of map pointers) - (ACL size) - (reserved area size) = xxx,&lt;BR /&gt;where xxx is the number of bytes free in the indexf.sys header. Thus xxx/6 (6 is avg size in bytes of mapping pointer) will give the approximate number of mapping pointers that can be added.&lt;BR /&gt;&lt;BR /&gt;I easily see the number of map pointers from issuing the dump/header on indexf.sys, but I don't see the ACL size or reserved area size from that information.  All I see is the offset.&lt;BR /&gt;&lt;BR /&gt;Can someone point me to where that info is, or show me a different method of determining how much free space I have available in the index?&lt;BR /&gt;&lt;BR /&gt;I encountered file header full issues on this disk while only 700,000 files were on the disk and max files is &amp;gt;13 million.  Someone else did a backup/restore while I was on vacation, so I don't know how many extents there were to the index before the rebuild.&lt;BR /&gt;&lt;BR /&gt;$ DUMP/HEADER/BLOCK=COUNT=0 $1$dga81:[000000]INDEXF.SYS&lt;BR /&gt;&lt;BR /&gt;Dump of file $1$DGA81:[000000]INDEXF.SYS;1 on 12-DEC-2006 13:30:55.88&lt;BR /&gt;File ID (1,1,0)   End of file block 845968 / Allocated 1503448&lt;BR /&gt;&lt;BR /&gt;                             File Header&lt;BR /&gt;&lt;BR /&gt;Header area&lt;BR /&gt;    Identification area offset:           40&lt;BR /&gt;    Map area offset:                      100&lt;BR /&gt;    Access control area offset:           255&lt;BR /&gt;    Reserved area offset:                 255&lt;BR /&gt;    Extension segment number:             0&lt;BR /&gt;    Structure level and version:          2, 1&lt;BR /&gt;    File identification:                  (1,1,0)&lt;BR /&gt;    Extension file identification:        (0,0,0)&lt;BR /&gt;    VAX-11 RMS attributes&lt;BR /&gt;        Record type:                      Fixed&lt;BR /&gt;        File organization:                Sequential&lt;BR /&gt;        Record attributes:                &lt;NONE specified=""&gt;&lt;BR /&gt;        Record size:                      512&lt;BR /&gt;        Highest block:                    1503448&lt;BR /&gt;        End of file block:                845969&lt;BR /&gt;        End of file byte:                 0&lt;BR /&gt;        Bucket size:                      0&lt;BR /&gt;        Fixed control area size:          0&lt;BR /&gt;        Maximum record size:              512&lt;BR /&gt;        Default extension size:           0&lt;BR /&gt;        Global buffer count:              0&lt;BR /&gt;        Directory version limit:          0&lt;BR /&gt;    File characteristics:                 Contiguous best try&lt;BR /&gt;    Caching attribute:                    Writethrough&lt;BR /&gt;    Map area words in use:                11&lt;BR /&gt;    Access mode:                          0&lt;BR /&gt;    File owner UIC:                       [1,1]&lt;BR /&gt;    File protection:                      S:RWED, O:RWED, G:RE, W:&lt;BR /&gt;    Back link file identification:        (4,4,0)&lt;BR /&gt;    Journal control flags:                &lt;NONE specified=""&gt;&lt;BR /&gt;    Active recovery units:                None&lt;BR /&gt;    File entry linkcount:                 0&lt;BR /&gt;    Highest block written:                1503448&lt;BR /&gt;    Client attributes:                    None&lt;BR /&gt;&lt;BR /&gt;Identification area&lt;BR /&gt;    File name:                            INDEXF.SYS;1&lt;BR /&gt;    Revision number:                      201&lt;BR /&gt;    Creation date:                         5-JUL-1995 08:38:46.23&lt;BR /&gt;    Revision date:                         9-DEC-2006 19:01:35.44&lt;BR /&gt;    Expiration date:                      &lt;NONE specified=""&gt;&lt;BR /&gt;    Backup date:                          &lt;NONE specified=""&gt;&lt;BR /&gt;&lt;BR /&gt;Map area&lt;BR /&gt;    Retrieval pointers&lt;BR /&gt;        Count:         16        LBN:          0&lt;BR /&gt;        Count:          8        LBN:       1032&lt;BR /&gt;        Count:          8        LBN:   64484520&lt;BR /&gt;        Count:    1503416        LBN:   62981104&lt;BR /&gt;&lt;BR /&gt;Checksum:                                 28201&lt;BR /&gt;&lt;BR /&gt;I'd like to set up a monitor to alert when an index gets close to being full.&lt;BR /&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;</description>
    <pubDate>Tue, 12 Dec 2006 14:45:25 GMT</pubDate>
    <dc:creator>K5TTT</dc:creator>
    <dc:date>2006-12-12T14:45:25Z</dc:date>
    <item>
      <title>Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911853#M80550</link>
      <description>I found this algorithm on the net to determine free space within the indexf.sys file.&lt;BR /&gt;&lt;BR /&gt;(310 bytes in map area) - (6 times the number of map pointers) - (ACL size) - (reserved area size) = xxx,&lt;BR /&gt;where xxx is the number of bytes free in the indexf.sys header. Thus xxx/6 (6 is avg size in bytes of mapping pointer) will give the approximate number of mapping pointers that can be added.&lt;BR /&gt;&lt;BR /&gt;I easily see the number of map pointers from issuing the dump/header on indexf.sys, but I don't see the ACL size or reserved area size from that information.  All I see is the offset.&lt;BR /&gt;&lt;BR /&gt;Can someone point me to where that info is, or show me a different method of determining how much free space I have available in the index?&lt;BR /&gt;&lt;BR /&gt;I encountered file header full issues on this disk while only 700,000 files were on the disk and max files is &amp;gt;13 million.  Someone else did a backup/restore while I was on vacation, so I don't know how many extents there were to the index before the rebuild.&lt;BR /&gt;&lt;BR /&gt;$ DUMP/HEADER/BLOCK=COUNT=0 $1$dga81:[000000]INDEXF.SYS&lt;BR /&gt;&lt;BR /&gt;Dump of file $1$DGA81:[000000]INDEXF.SYS;1 on 12-DEC-2006 13:30:55.88&lt;BR /&gt;File ID (1,1,0)   End of file block 845968 / Allocated 1503448&lt;BR /&gt;&lt;BR /&gt;                             File Header&lt;BR /&gt;&lt;BR /&gt;Header area&lt;BR /&gt;    Identification area offset:           40&lt;BR /&gt;    Map area offset:                      100&lt;BR /&gt;    Access control area offset:           255&lt;BR /&gt;    Reserved area offset:                 255&lt;BR /&gt;    Extension segment number:             0&lt;BR /&gt;    Structure level and version:          2, 1&lt;BR /&gt;    File identification:                  (1,1,0)&lt;BR /&gt;    Extension file identification:        (0,0,0)&lt;BR /&gt;    VAX-11 RMS attributes&lt;BR /&gt;        Record type:                      Fixed&lt;BR /&gt;        File organization:                Sequential&lt;BR /&gt;        Record attributes:                &lt;NONE specified=""&gt;&lt;BR /&gt;        Record size:                      512&lt;BR /&gt;        Highest block:                    1503448&lt;BR /&gt;        End of file block:                845969&lt;BR /&gt;        End of file byte:                 0&lt;BR /&gt;        Bucket size:                      0&lt;BR /&gt;        Fixed control area size:          0&lt;BR /&gt;        Maximum record size:              512&lt;BR /&gt;        Default extension size:           0&lt;BR /&gt;        Global buffer count:              0&lt;BR /&gt;        Directory version limit:          0&lt;BR /&gt;    File characteristics:                 Contiguous best try&lt;BR /&gt;    Caching attribute:                    Writethrough&lt;BR /&gt;    Map area words in use:                11&lt;BR /&gt;    Access mode:                          0&lt;BR /&gt;    File owner UIC:                       [1,1]&lt;BR /&gt;    File protection:                      S:RWED, O:RWED, G:RE, W:&lt;BR /&gt;    Back link file identification:        (4,4,0)&lt;BR /&gt;    Journal control flags:                &lt;NONE specified=""&gt;&lt;BR /&gt;    Active recovery units:                None&lt;BR /&gt;    File entry linkcount:                 0&lt;BR /&gt;    Highest block written:                1503448&lt;BR /&gt;    Client attributes:                    None&lt;BR /&gt;&lt;BR /&gt;Identification area&lt;BR /&gt;    File name:                            INDEXF.SYS;1&lt;BR /&gt;    Revision number:                      201&lt;BR /&gt;    Creation date:                         5-JUL-1995 08:38:46.23&lt;BR /&gt;    Revision date:                         9-DEC-2006 19:01:35.44&lt;BR /&gt;    Expiration date:                      &lt;NONE specified=""&gt;&lt;BR /&gt;    Backup date:                          &lt;NONE specified=""&gt;&lt;BR /&gt;&lt;BR /&gt;Map area&lt;BR /&gt;    Retrieval pointers&lt;BR /&gt;        Count:         16        LBN:          0&lt;BR /&gt;        Count:          8        LBN:       1032&lt;BR /&gt;        Count:          8        LBN:   64484520&lt;BR /&gt;        Count:    1503416        LBN:   62981104&lt;BR /&gt;&lt;BR /&gt;Checksum:                                 28201&lt;BR /&gt;&lt;BR /&gt;I'd like to set up a monitor to alert when an index gets close to being full.&lt;BR /&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;</description>
      <pubDate>Tue, 12 Dec 2006 14:45:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911853#M80550</guid>
      <dc:creator>K5TTT</dc:creator>
      <dc:date>2006-12-12T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911854#M80551</link>
      <description>check the field map area words in use. When it is at 155, you will get the famous headerfull error when issuing any create/copy/... command.&lt;BR /&gt;&lt;BR /&gt;By the way, dfu does a wonderfull job for giving you a valuable info on the remaining headers/files on the disk.</description>
      <pubDate>Tue, 12 Dec 2006 15:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911854#M80551</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-12-12T15:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911855#M80552</link>
      <description>&lt;BR /&gt;That indexf.sys is in good shape.&lt;BR /&gt;It is hard to imaging you had a 'encountered file header full issues on this disk'.&lt;BR /&gt;It is only half full (EOF=850K, ALL=150K).&lt;BR /&gt;It has only one real mappin pointer: room for dozens more.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  I don't see the ACL size or reserved &lt;BR /&gt;area size from that information. &lt;BR /&gt;&lt;BR /&gt;Look again: &lt;BR /&gt;Map area offset: 100&lt;BR /&gt;Access control area offset: 255&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Offset is 255 WORDS = 510 BYTES + CHECKSUM = no Access Control. Which is normal.&lt;BR /&gt;&lt;BR /&gt;The Map area starts at byte 100*2=200 and is (255-100)*2 = 310 bytes long. Which is normal.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Can someone point me to where that info is, or show me a different method of determining how much free space I have available in the index?&lt;BR /&gt;&lt;BR /&gt;Use the DFU FREEWARE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  encountered file header full issues on this disk while only 700,000 files were on &lt;BR /&gt;&lt;BR /&gt;Just use DFU REPORT.&lt;BR /&gt;&lt;BR /&gt;Look for " ***** Volume info "....&lt;BR /&gt; :&lt;BR /&gt; Maximum # files                  :  2221056&lt;BR /&gt; Header count                     :  382467&lt;BR /&gt; Free headers                     :  276840&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting</description>
      <pubDate>Tue, 12 Dec 2006 16:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911855#M80552</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-12T16:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911856#M80553</link>
      <description>Bingo.  Thanks much.  I hadn't upgraded DFU in a while and was still running 2.6.  I was getting some access violations when running it and didn't remember the report function.  This gives me exactly what I need, thank you.&lt;BR /&gt;&lt;BR /&gt;      ***** Volume info for ODS5 volume $1$DGA81: (from HOME block) *****&lt;BR /&gt; Volume name                      :  ECP_DISK2&lt;BR /&gt; Volume owner                     :&lt;BR /&gt; Volume set name                  :&lt;BR /&gt; Highwater mark. / Erase on del.  :  No / No&lt;BR /&gt; Cluster size                     :  8&lt;BR /&gt; Maximum # files                  :  13981013&lt;BR /&gt; Header count                     :  842522&lt;BR /&gt; First header VBN                 :  3447&lt;BR /&gt; Free headers                     :  203924&lt;BR /&gt;&lt;BR /&gt;      ***** File Statistics (from INDEXF.SYS) *****&lt;BR /&gt; INDEXF.SYS fragments/ map_in_use :  4 /11 words ( 7% used)&lt;BR /&gt; Total files (ODS2 / ODS5)        :  31894 / 603843&lt;BR /&gt; Empty files                      :  1456&lt;BR /&gt; Files with allocation            :  634281&lt;BR /&gt; Files with extension headers     :  820&lt;BR /&gt; Files marked for delete          :  0&lt;BR /&gt; Directory files                  :  125772&lt;BR /&gt; Contiguous files                 :  595188&lt;BR /&gt; Total used/ allocated size       :  83073615 /88267280 blocks&lt;BR /&gt; Total headers/ fragments         :  638493 /988823&lt;BR /&gt; Average fragments per file       :  1.559&lt;BR /&gt; File fragmentation index         :  1.658  (good)&lt;BR /&gt; Average size per fragment        :  89 blocks&lt;BR /&gt; Most fragmented file             :&lt;BR /&gt;    $1$DGA81:[ECP.LIVE.RESPONSE.NEIC]LHP_9N000342.RSP_OLD;1 ( 178141/178144 bloc&lt;BR /&gt;ks; 7879 fragments)&lt;BR /&gt;&lt;BR /&gt;      ***** Free space statistics (from BITMAP.SYS) *****&lt;BR /&gt; Total blocks on disk             :  125829120&lt;BR /&gt; Total free blocks                :  37561728&lt;BR /&gt; Percentage free (rounded)        :  29&lt;BR /&gt; Total free extents               :  106623&lt;BR /&gt; Largest free extent (blocks)     :  2831688 at LBN: 58116792&lt;BR /&gt; Average extent size (blocks)     :  352&lt;BR /&gt; Free space fragmentation index   :  0.284  (excellent)&lt;BR /&gt;&lt;BR /&gt;This looks good to me.  I think the rebuild probably fixed our issue.  Let me know if you see anything out of whack here.  I can use this data to monitor/alert and that's what I needed.</description>
      <pubDate>Tue, 12 Dec 2006 16:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911856#M80553</guid>
      <dc:creator>K5TTT</dc:creator>
      <dc:date>2006-12-12T16:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911857#M80554</link>
      <description>&amp;gt;When it is at 155, you will get the famous headerfull error when issuing any create/copy/... command.&lt;BR /&gt;&lt;BR /&gt;Correct, but HEADERFULL is largely historical now. The vast majority of disks initialized post V6.2 are more or less immune to HEADERFULL because the algorithm for extending the disk was significantly improved. It will generally extend INDEXF.SYS well beyond the size required to fill the available free space quite early in the life of the volume.&lt;BR /&gt;&lt;BR /&gt; Up to V5.5-2 the extension algorithm was as simple as it could be: "1000 blocks", no matter the size of the volume or the number of files. On "large" disks (ie: anything over 1GB ;-) with many small files, this rapidly led to a fragmented index and filled the map area. The new algorithm considers the used space on the disk and the number of files. It then calculates the number of headers required to fill the remaining free space, and extends INDEXF.SYS by that amount, using "contiguous try a bit harder than the standard contiguous-best-try". You have to have a very odd and highly variable disk usage pattern to fragment the header badly enough to hit HEADERFULL. &lt;BR /&gt;&lt;BR /&gt;In the early 90's this issue was probably THE most frequently logged case in customer support centres. Since V6.2 I've only seen ONE case where a customer claims to have experienced it on a post V6.2 volume (and I'm skeptical about that one...)&lt;BR /&gt;&lt;BR /&gt;Bottom line is, make sure you initialize your volumes with a reasonable value for /HEADERS based on your expected usage (hint - the default value of 16 is NOT reasonable!). You can then forget about index map areas and concentrate on more important things in life. If you're really paranoid, check "Map area words in use" from DUMP/HEADER. As long as it's under 120 you're fine.  &lt;BR /&gt;&lt;BR /&gt;Challenge... I'd be surprised if anyone can post a map area size over 100 in a volume initialised post V6.2 (assuming you haven't subjected the disk to a pathological usage pattern)</description>
      <pubDate>Tue, 12 Dec 2006 16:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911857#M80554</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-12-12T16:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911858#M80555</link>
      <description>I read something very similar in one of the wizard answers.  Thanks for the info.&lt;BR /&gt;&lt;BR /&gt;"assuming you haven't subjected the disk to a pathological usage pattern"&lt;BR /&gt;&lt;BR /&gt;Our developers snuck some code in on me that has increased the subdirectories and files on this disk by a factor of 8 since the beginning of the year.</description>
      <pubDate>Tue, 12 Dec 2006 16:39:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911858#M80555</guid>
      <dc:creator>K5TTT</dc:creator>
      <dc:date>2006-12-12T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Space available in indexf.sys</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911859#M80556</link>
      <description>&amp;gt;&amp;gt;pathological usage pattern&lt;BR /&gt;&amp;gt;Our developers snuck some code in on me that has increased the subdirectories and files on this disk by a factor of 8 since the beginning of the year.&lt;BR /&gt;&lt;BR /&gt;This is not the kind of thing I was thinking of. The extension algorithm shouldn't have any trouble dealing with more files. If you really wanted to break INDEXF.SYS, you'd need to do something really nasty. For example:&lt;BR /&gt;&lt;BR /&gt;INIT disk with default settings&lt;BR /&gt;Open 3 files with minimum extend quantity.&lt;BR /&gt;Loop writing one record to each file until&lt;BR /&gt;disk is full.&lt;BR /&gt;You now have a disk with 3 (very large)files interleaved (ie worst possible case of fragmentation).&lt;BR /&gt;Delete one of the files.&lt;BR /&gt;Now start creating small files.&lt;BR /&gt;Since the free space is at maximum fragmentation, INDEXF.SYS can't get contiguous extensions, and will eventually fill up.&lt;BR /&gt;&lt;BR /&gt;Obviously not a real world workload!</description>
      <pubDate>Tue, 12 Dec 2006 20:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/space-available-in-indexf-sys/m-p/3911859#M80556</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-12-12T20:25:43Z</dc:date>
    </item>
  </channel>
</rss>

