This article applies to the SAS 9.4 middle tier on Microsoft Windows and Linux.
Use this procedure to remove accumulated log files, Web Application Server work files, temporary files, distributed-cache files, and ActiveMQ data from a SAS 9.4 middle-tier deployment. The procedure provides separate instructions for Microsoft Windows and Linux.
Schedule an outage before you begin. Archive any files required by your organization for troubleshooting, auditing, or retention.
Important Stop the applicable SAS services before removing files. Delete, move, or archive only the contents of the listed directories. Do not delete the directories themselves.
The contents of the Web Application Server work and temp directories do not ordinarily need to be backed up unless required by site procedures.
SAS Technical Support provides scripts that can automate portions of a SAS 9.4 middle-tier clean restart and collect current middle-tier logs and configuration files. View the SAS 9.4 middle-tier clean-restart and diagnostic scripts.
The clean-restart script can remove ActiveMQ KahaDB data. If ActiveMQ data is on shared storage or the deployment uses failover, review the topology and retention requirements before using the script. Use the manual procedure when shared ActiveMQ data must be preserved.
1. Stop the SAS services:
Stop the SAS services on each applicable server. In a distributed deployment, stop services on every host that contains one or more of the cleanup paths. Confirm that the services have stopped before continuing.
2. Clear the applicable directories:
Delete, move, or archive only the contents that match the following paths. Repeat the SASServerX_Y paths for every applicable server instance.
Use the directory that exists in the deployment. Do not create or rename either directory.
Earlier SAS 9.4 revisions that use GemFire:
Later SAS 9.4M8 revisions and SAS 9.4M9 revisions that use Geode:
3. Start the SAS services:
Start the SAS services in the SAS recommended order. In a distributed deployment, start the required compute-tier services first, followed by the primary middle-tier server, and then any remaining middle-tier servers. Confirm that startup completes before starting dependent services.
4. Validate the environment:
You can perform the cleanup manually by following these steps or use the applicable optional script referenced earlier in this article.
1. Stop the SAS services:
On each applicable compute-tier or middle-tier host, change to the SAS configuration-level directory and run:
./sas.servers stop
Confirm that the applicable services have stopped before continuing. In a distributed deployment, perform this step on every host that contains one or more of the cleanup paths.
2. Clear the applicable directories:
Delete, move, or archive only the contents that match the following paths. Repeat the SASServerX_Y paths for every applicable server instance.
Earlier SAS 9.4 revisions that use GemFire:
Later SAS 9.4M8 revisions and SAS 9.4M9 revisions that use Geode:
Shell wildcard behavior: The * wildcard does not normally select hidden entries whose names begin with a period. Do not remove hidden entries unless they have been explicitly reviewed and approved for removal.
3. Start the SAS services:
Start the services in the SAS-recommended order using:
./sas.servers start
4. Validate the environment:
When the services start, SAS re-creates required temporary files and generates new log and service-state files. This procedure does not rebuild SAS Content Server search indexes.