Summary
The Laserfiche Server provided no mechanism for triggering the recalculation of the size of the image, text and electronic documents in a volume. The Laserfiche Server is capable of automatically recalculating to handle normal changes to a volume. This article describes how to manually trigger a recalculation of the size of your volumes in response to particular issues.
More Information
Under most circumstances, it is not necessary for users to manually trigger a recalculation of the volume size. These instructions are only necessary for cases where the server's record of the size of the volumes is out of sync with the actual size of the volumes. This will not occur in standard operation, but can exist as a result of an issue. For instance, once the following issue has been resolved and the images compressed, this function can be used to recalculate the volume size:
1011040 FIX: Scanning with Laserfiche Twain Produces Unusually Large Images.
Resolution
There is an additional maintenance function for triggering re-calculation available for the Laserfiche Server version 7.1.2. This function is incorporated into an updated version of LFEng.dll. This maintenance function is included in LFEng.dll version 7.1.2.600 and later.
To update Laserfiche Server 7.1.2
To recalculate volume size using Enterprise Manager
Note: The restart process can take a very long time, as the server must recalculate the size of every file within the specified volumes. You may receive a warning or error message during the restart process due to the length of time this process takes. This error can be ignored; you should allow the process to keep running. Logging information will continue to be placed in the error.log as volumes are completed. You can monitor this file to track the progress of the recalculation procedure.
Note: Once the recalculation operation is complete, the server will automatically set the value of 'VolSizeReset' to NULL. This will prevent the recalculation process from automatically repeating. The server does not need to be restarted following the recalculation operation. All logging related to the recalculation will be placed in the repository's error.log.
To recalculate volume size using osql commands
cmd
osql -E -S ServerName -d "DatabaseName"
where ServerName is the name of your SQL server and DatabaseName is the name of the database associated with your Laserfiche repository.select VolumeName,VolumeID from vol
insert into dboptions(OptionName, OptionValue) values ('VolSizeReset', 'VolumeID')
where VolumeID is the volume ID for the volume you wish to recalculate. To recalculate multiple volumes at once, separate the volume numbers with commas (for instance, '1,2,7,12'). To recalculate all volumes, input '0'.update dboptions set OptionValue='VolumeID' where OptionName='VolSizeReset'
where VolumeID is the volume ID for the volume you wish to recalculate. To recalculate multiple volumes at once, separate the volume numbers with commas (for instance, '1,2,7,12'). To recalculate all volumes, input '0'.Note: The restart process can take a very long time, as the server must recalculate the size of every file within the specified volumes. You may receive a warning or error message during the restart process due to the length of time this process takes. This error can be ignored; you should allow the process to keep running. Logging information will continue to be placed in the error.log as volumes are completed. You can monitor this file to track the progress of the recalculation procedure.
Note: Once the recalculation operation is complete, the server will automatically set the value of 'VolSizeReset' to NULL. This will prevent the recalculation process from automatically repeating. The server does not need to be restarted following the recalculation operation. All logging related to the recalculation will be placed in the repository's error.log.