- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Fragmented ACCOUNTNG.DAT file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 07:58 AM
03-13-2006 07:58 AM
Each week I issue an SET ACCOUNT/NEW cmd to create a new file. I realize that this is a minor issue, but is there some way I can change the extent growth of this file so it will be more efficient? Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 08:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 08:10 AM
03-13-2006 08:10 AM
Re: Fragmented ACCOUNTNG.DAT file
1. Stop accounting
2. Change file extension sizes
a. Set file/extension=
b. set volume/extension=
3. Restart accounting
2.a is most likely to be effective.
Cheers,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 08:40 AM
03-13-2006 08:40 AM
Re: Fragmented ACCOUNTNG.DAT file
Whenever the system encounters an error while writing to the current accounting file, it automatically closes the current accounting.dat file and opens a new version of it. And you also creating new accounting.dat file each week. So there will be so many accounting files.
Unless otherwise there is a problem while writing info into accouting.dat file, VMS will keep write and extend the accounting.dat file automatically.
I hope we don't need to create new file every week or set the accounting file attribute. And even if we increase the file extend, when there is a problem while writing info into accouting, VMS automatically create the other files.
Archunan
Archie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 08:57 AM
03-13-2006 08:57 AM
Re: Fragmented ACCOUNTNG.DAT file
Archunan - we run hundreds of batch and print jobs daily. I reset the accounting file to make it a little easier to pull out information. (I have never seen VMS create a new accounting file on its own.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 09:01 AM
03-13-2006 09:01 AM
Re: Fragmented ACCOUNTNG.DAT file
"Thanks for the info - I'll try setting the file extent each week when I create a new file."
I believe you will only need to do this once, because I believe subsequent new files will take its defaults from the lower version (i.e., the one just closed).
I also agree that I have not seen VMS create a new accounting file on its own and have seen some systems where a new file has not been created for years.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 10:40 AM
03-13-2006 10:40 AM
Re: Fragmented ACCOUNTNG.DAT file
>(I have never seen VMS create a new
> accounting file on its own.)
I accept VMS won't create accounting.dat file for us, but I said ...
> Whenever the system encounters an error
> while writing to the current accounting
> file, it automatically closes the current > accounting.dat file and opens a new
> version of it.
This is correct.
Archunan
Archie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 06:00 PM
03-13-2006 06:00 PM
Re: Fragmented ACCOUNTNG.DAT file
I'm sorry to disappoint you, but the file extension is not an attribute which gets inherited by the newly created ACCOUNTNG.DAT file.
So you would either have to the change the default extent size on the volume or do the following:
$ SET ACC/NEW
$ SET ACC/DISABLE
$ SET FILE/EXTENSION=n ACCOUNTNG.DAT
$ SET ACC/ENABLE=(list-of-keywords)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 07:18 PM
03-13-2006 07:18 PM
Re: Fragmented ACCOUNTNG.DAT file
OpenVMS uses a constant value for FAB$W_DEQ, there is no mechanism to change that.
But if you are really interested, you could patch the FAB$W_DEQ field in the ACCOUNTNG FAB(s) of JOB_CONTROL in the running system:
$ ANAL/SYS
SDA> SET PROC JOB_CONTROL
SDA> SHOW PROC ! note Master internal PID
SDA> SHOW PROC/RMS=FAB ! note FAB Address of ACCOUNTNG FAB
SDA> EXA
SDA> EXIT
Example: assuming PID=00010011 and FAB$W_DEQ addr=70334, setting DEQ from 100. (0x64) to 200. (0xC8)
When running DELTA, you need to enter:
00010011:1;m
[W
70334/ 00C8
exit
$ RUN SYS$SHARE:DELTA
OpenVMS Alpha DELTA Debugger
Exit 00000001
80071674! LDQ R28,#X0008(SP) 00010011:1;m
00000001
[W
70334/0064 00C8
exit
$
$ SET ACC/NEW
You have to repeat this operation once more, as JOB_CONTROL used 2 FABs and switches them on each FAB-related operation. You'll see that there is another ACCOUNTNG FAB address after each SET ACC/NEW.
Once you've finished the second patch, the subsequent SET ACC/NEW will use your values deposited into FAB$W_DEQ.
This method is - of course - completely unsupported and using DELTA in WRITE mode may cause 'undesired effects' (like process or system crashes), but it's just an example on what you can do with OpenVMS default tools.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 09:30 PM
03-13-2006 09:30 PM
Re: Fragmented ACCOUNTNG.DAT file
Really there should be a OPC$ logical for the file extent. Time for someone to blow the dust of the OPCOM code and dive in :-)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 12:16 AM
03-14-2006 12:16 AM
Re: Fragmented ACCOUNTNG.DAT file
It is possible to preallocate space for the accounting file by having a bit of DCL that uses an FDL file from an ANALYZE/RMS/FDL.
To generate the FDL file
$ ANALYZE/RMS/FDL/OUTPUT=ACCOUNTNG.FDL SYS$MANAGER:ACCOUNTNG.DAT
Producing: ACCOUNTNG.FDL
IDENT "14-MAR-2006 08:07:04 OpenVMS ANALYZE/RMS_FILE Utility"
SYSTEM
SOURCE OpenVMS
FILE
ALLOCATION 120
BEST_TRY_CONTIGUOUS no
CLUSTER_SIZE 5
CONTIGUOUS no
EXTENSION 100
FILE_MONITORING no
GLOBAL_BUFFER_COUNT 0
NAME "SYS$SYSROOT:[SYSMGR]ACCOUNTNG.DAT;2"
ORGANIZATION sequential
OWNER [SYSTEM]
PROTECTION (system:RWED, owner:RWED, group:RE, world:)
RECORD
BLOCK_SPAN yes
CARRIAGE_CONTROL none
FORMAT variable
SIZE 0
Change the ALLOCATION to some really big number that you like(perhaps the typical size of a month's worth of entries? or whatever period you let it grow for). And just for grins, even though it apparently won't help a bit, change the EXTENSION size to something more reasonable than 100.
Then stop accounting ( SET ACC/DISABLE ).
$ BACKUP/OVERLAY
Restart Accounting
Cheers,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:58 AM
03-14-2006 03:58 AM
Re: Fragmented ACCOUNTNG.DAT file
I'm going to use the idea of:
$ SET ACC/NEW
$ SET ACC/DIS
$ SET FILE/EXT=....
$ SET ACC/ENA=...
New question: Is there an easy way to save the accounting keywords used before the /DIS for use with the /ENA without having to do a SHOW ACCOUNT/OUT=filename and parsing that file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:03 AM
03-14-2006 04:03 AM
Re: Fragmented ACCOUNTNG.DAT file
that is the easiest one!
$ ET ACCOUN /ENAB
without specifying WHAT to enable just re-enables what WAS enabled before the /DISABLE
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:09 AM
03-14-2006 04:09 AM
Re: Fragmented ACCOUNTNG.DAT file
if only it was that simple! Observe the attached result of doing /DISAB then /ENAB.
We have IMAGE accounting turned ON by the /ENAB, although is was off beforehand.
(Alpha 7.3-2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:10 AM
03-14-2006 04:10 AM
Re: Fragmented ACCOUNTNG.DAT file
Robert wrote:
"It is possible to preallocate space for the accounting file by having a bit of DCL that uses an FDL file from an ANALYZE/RMS/FDL."
hmmm... If you go that route, then why not simply use
stop
COPY/ALLO='large 'old 'new
start
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:52 AM
03-14-2006 04:52 AM
Re: Fragmented ACCOUNTNG.DAT file
As Duncan has pointed out (and is in the Help doc), a SET ACC/ENA w/o arguments enables *all* accounting. I found this out the hard way yesterday as I tested the answer to my original question. After a SET ACC/ENA caused Image records to be captured, a script we use to parse the SHOW ACCOUNTING/FULL output failed because the format changed.
I've since cobbled a quick script to parse the output of SHOW ACCOUNT/OUT=filename but wanted to know if there is any other way to get/save the present ACCOUNT settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 07:42 AM
03-14-2006 07:42 AM
Re: Fragmented ACCOUNTNG.DAT file
The trick is to create an ACCOUNTNG logical name for the mailbox in the group logical name table used by the JOBCTL process (LNM$GROUP_0000001). Using the group table instead of the system table means there is less interference to people using the accounting command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 07:57 AM
03-14-2006 07:57 AM
Re: Fragmented ACCOUNTNG.DAT file
Jack - you can use the logical OPC$LOGFILE_CLASSES to select which classes are enabled - see SYS$STARTUP:SYLOGICALS.TEMPLATE
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 09:08 AM
03-14-2006 09:08 AM
Re: Fragmented ACCOUNTNG.DAT file
Are you SURE that OPC$LOGFILE_CLASSES has anything to do with Accounting? Last I remember this only provides a mechanism for controlling what goes into the Operator Log file.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 06:33 PM
03-14-2006 06:33 PM
Re: Fragmented ACCOUNTNG.DAT file
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 09:58 PM
03-14-2006 09:58 PM
Re: Fragmented ACCOUNTNG.DAT file
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 01:09 AM
03-15-2006 01:09 AM
Re: Fragmented ACCOUNTNG.DAT file
Madness? or wishful thinking? ;-)
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:25 AM
03-15-2006 09:25 AM
Re: Fragmented ACCOUNTNG.DAT file
- SET ACC/DIS
- SET FILE/EXTENT.....
- SET ACC/ENA
Monday I changed the file Extend quantity from its default of 100 to an arbitrary 1,000.
Using DUMP/HEADER on the file, I see that it is still growing at multiples of the disk cluster-size.
Did my change get overridden?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:28 AM
03-15-2006 09:28 AM
Re: Fragmented ACCOUNTNG.DAT file
Did you try changing the volume extension size as well as the extension size on the file?
According to the comments about the hardcoded value of the file extend in the job control process code, I think the only thing that's going to help is pre-allocation.
You might try changing the volume extension value and see if that makes any difference -- I'll be surprised thought if it does.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 04:51 PM
03-15-2006 04:51 PM
Re: Fragmented ACCOUNTNG.DAT file
It's very simple indeed to do an
analyze/rms/fdl accountng.dat
edit the fdl,
and put a huge number for additional records.
then convert/fdl=accountng.fdl accountng.dat
then purge the file.
It seems a design error on a lot of these files that they are not pre-allocated.