Re-versioning
Avoiding 32,767 problems
When the version number of a file hits 32,767, no additional versions of that file can be created. That's not a big deal for user-created files as users can easily find and fix the problem. But what about services that run and create log files every time they get launched? What about temporary data files created by a program? You can set version limits, but that only restricts the number of copies saved, not the max limit on the version number itself.So when you've got too high a number and want to resequence them, the following command can come in handy:
$ pipe rename myfiles.log;* *.tmp; ; rename myfiles.tmp;* *.log;
Those who are clued in on how their system operates may add something like this to their regular system maintenance scheduled tasks (Kronos comes to mind).
This command works regardless of whether the file is closed or open, which is the real beauty of it!
eight comments:
With recent versions of the O/S you may request the directory command to
display all the files with a minimum (or maximum) version number of X. For example:
$ DIRECTORY/SELECT=SIZE=MIN=32000
This command may help you identify files which are about to reach the
32767 limit
Guy Peleg
BRUDEN-OSSG
Guy Peleg (URL) - 15-Dec-2006 - 03:34
> With recent versions of the O/S you may request the directory command to
> display all the files with a minimum (or maximum) version number of X. For example:
> $ DIRECTORY/SELECT=SIZE=MIN=32000
> This command may help you identify files which are about to reach the
> 32767 limit
Oops! I think Guy meant to say this:
$ DIRECTORY/SELECT=VERSION=MIN=32000
Galen Tackett () - 15-Dec-2006 - 05:39
Yecch! What happened to my comment? Where did the *\n* characters come from?
Galen Tackett () - 15-Dec-2006 - 05:40
$ SET FACE/COLOR=RED
I meant /select=version ![]()
Thanks for catching it.
Guy
Guy Peleg () (URL) - 15-Dec-2006 - 05:43
Sorry ‘bout the newline characters, Galen—I’ve seen that once before, and I’m trying to figure out how to suppress that. I manually cleaned up the excess characters in your post.
[Aaron] () (URL) - 15-Dec-2006 - 07:31
for earlier versions of VMS then DFU can be used to search for files with a version greater than say 32000
DFU /VERSION_NUMBER=MINUMUM=32000
Ian Miller (URL) - 15-Dec-2006 - 10:52
My experience is that TCPIP services simply continue to work as before is the file version number exceeds 32787, but a new file will indeed not be created. This may, or may not be a problem – in certain environments, this might require some work to prevent loss of logging data.
[WillemGrooters] (URL) - 18-Dec-2006 - 08:04
Thanks for the tip, the dfu command should read:
$ DFU SEARCH/VERSION_NUMBER=MINIMUM=32000
[jccordill] - 20-Dec-2006 - 08:09
No trackbacks: