Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

indexf.sys question

SOLVED
Go to solution
Scotty HD
Frequent Advisor

indexf.sys question

good morning,

i understand, indexf.sys file holds the file header of files on disk.
one slot for every file on disk.

if i have only few files on my disk then,
indexf.sys holds on to empty slots
or
indexf.sys releases the free slots back to the system?

once indexf.sys file is created on disk, can its size shrink due to any
operation?

i hear DFU can be used to compress directory, is there any tool to compress
indexf.sys?

Scotty
4 REPLIES
Hein van den Heuvel
Honored Contributor
Solution

Re: indexf.sys question

No you can not trim INDEXF.SYS. Not officially.

>> i understand, indexf.sys file holds the file header of files on disk.
one slot for every file on disk.

Correct. At least one. Could be more due to fragmentation and/or excessive ACL's.

Best/official way to do this is INIT an other disk with the desired attirbutes : /HEAD=/MAX= ...
Next BACK/NOINIT/IMAGE ...

Or roll out, init, roll back.

But is this really such a big deal?

How much over-allocated is it in your case?

Good luck,
Hein
Hein van den Heuvel
Honored Contributor

Re: indexf.sys question



Actually... DFU ( 3.2 ) _does_ have a command to truncate INDEXF.SYS, for an unmounted disk.

Hein

DFU> HELP INDEXF
:
"The INDEXF command is used to analyze ,defragment ,truncate or extend the INDEXF.SYS file.
The analyze option reports the current fragmentation state, whereas the defragment and extend option allows defragmentation or pre-extending of INDEXF.SYS. Truncate is an option which trims down INDEXF.SYS to the end-of-file size.
To perform a defragment truncate or extend operation the disk must be completely dismounted.
NOTE: defragment truncate and extend require VOLPRO privilege.
: defragment truncate and extend can not be done on the system disk.
Robert Gezelter
Honored Contributor

Re: indexf.sys question

Scotty,

I am in wholehearted agreement with Hein. Each file on the disk has AT LEAST ONE header. Depending on how many extents a file has, it can have quite a few headers. This is particularly true for files that are routinely appended to (e.g., transaction logs). The number of headers can be seen using the DUMP/HEADER command. To be precise, I recommend DUMP/HEADER/BLOCK=(START:0,END:0) or DUMP/HEADER/BLOCK=COUNT:0.

I generally recommend against trimming INDEX.SYS. There are limits to extending INDEXF.SYS, and I have seen far too many cases where extends were limited by fragmentation, the header for INDEXF.SYS itself can become filled, which is a far more serious problem to deal with. With today's mass storage capacities, INDEXF.SYS is generally not a problem.

- Bob Gezelter, http://www.rlgsc.com
Scotty HD
Frequent Advisor

Re: indexf.sys question

thanks everyone for help

Scotty