Jobs use a local temporary working folder on the system. The folder is removed at the end of the job execution. Files in the database that are kept for 30 days.
The working file location used can be found at:
To change this location, alter the environment variable SCM_WORKING
prior to starting the Simulation Compute Manager. This will cause the Simulation Compute Manager's working database and temporary files to be relocated to the new location.
(In the following instructions, inside adskscmX
and simulation-computeX
, X
should be replaced with SCM major release)
The following process updates the location of a temporary working path for Simulation Compute Manager. You will require root or sudo access to stop the services and to perform edits to the configuration files. For this example, the new location will be referred to as /tmp/scmWorking
Create the new location with the properties outlined above.
Stop the Simulation Compute Manager with sudo systemctl stop adskscmX
Open the file /usr/lib/systemd/system/adskscmX.service
in a text editor. This will require root or sudo access.
Insert the following after the line PIDFile="/var/lock/scm.pid.lock"
(approximately at line 9)
#Change the SCM default storage path
Environment="SCM_WORKING =/tmp/scmWorking"
Reload the Simulation Compute Manager with the command sudo systemctl daemon-reload
Restart the Simulation Compute Manager with the command sudo systemctl start adskscmX
The following process updates the location of a temporary working path for Simulation Compute Manager. For this example, the new location will be referred to as /tmp/scmWorking
Create the new location with the properties outlined above.
Stop any existing Simulation Compute Manager instances with curl localhost:43500/terminate
or curl <hostname>:43500/terminate
.
Allow sufficient time for the processes to exit cleanly.
Make sure the SimulationCompute processes are terminated by calling /sbin/pidof SimulationCompute
. If a process IDs are returned, kill the all processes using kill -9 '<process ID>'
.
Make sure the fs-harness process is terminated by calling /sbin/pidof fs-harness
. If a process ID is returned, kill the process using kill -9 '<process ID>'
Set the environment variable:
export -x SCM_WORKING=/tmp/scmWorking
Start the Simulation Compute Manager using:
$INSTALL_ROOT/opt/Autodesk/simulation-computeX/bin/SimulationCompute
The following process updates the location of a storage path for Simulation Compute Manager. You will require root or sudo access to stop the services and to perform edits to the configuration files. For this example, the new location will be referred to as /tmp/newlocation
Note: Any running jobs will be terminated
Create the new location with the properties outlined above.
Stop the Simulation Compute Manager with sudo systemctl stop adskscmX
Open the file /usr/lib/systemd/system/adskscmX.service
in a text editor. This will require root or sudo access.
Insert the following after the line PIDFile="/var/lock/scm.pid.lock"
(approximately at line 9)
#Change the SCM default storage path
Environment="SCM_DATAPATH=/tmp/newlocation"
Reload the Simulation Compute Manager with the command sudo systemctl daemon-reload
Restart the Simulation Compute Manager with the command sudo systemctl start adskscmX
The environment variable that changes the location of a storage path for Simulation Compute Manager is SCM_DATAPATH. The environment variable must be set prior to starting the Simulation Compute Manager. For this example, the new location will be referred to as /tmp/newlocation
Create the new location with the properties outlined above.
Stop any existing Simulation Compute Manager instances with curl localhost:43500/terminate
or curl <hostname>:43500/terminate
.
Allow sufficient time for the processes to exit cleanly.
Make sure the SimulationCompute processes are terminated by calling /sbin/pidof SimulationCompute
. If a process IDs are returned, kill the all processes using kill -9 '<process ID>'
.
Make sure the fs-harness process is terminated by calling /sbin/pidof fs-harness
. If a process ID is returned, kill the process using kill -9 '<process ID>'
Set the environment variable:
export -x SCM_DATAPATH=/tmp/newlocation
Start the Simulation Compute Manager using:
$INSTALL_ROOT/opt/Autodesk/simulation-computeX/bin/SimulationCompute