作业会使用系统上的本地临时工作文件夹。该文件夹会在作业执行结束时被删除。文件在数据库中保留 30 天。
可以在以下位置找到使用的工作文件位置:
要更改此位置,请先更改环境变量 SCM_WORKING,然后再启动 Simulation Compute Manager。这将导致 Simulation Compute Manager 的工作数据库和临时文件重新定位到新位置。
(在以下说明的 adskscmX 和 simulation-computeX 中,X 应替换为 SCM 主版本)
以下过程将更新 Simulation Compute Manager 的临时工作路径的位置。您将需要 root 或 sudo 访问权限,才能停止服务并对配置文件执行编辑。在此示例中,新位置将称为 /tmp/scmWorking
使用上述特性创建新位置。
使用 sudo systemctl stop adskscmX 停止 Simulation Compute Manager
在文本编辑器中打开文件 /usr/lib/systemd/system/adskscmX.service。这将需要 root 或 sudo 访问权限。
在行 PIDFile="/var/lock/scm.pid.lock"(大约 9 行处)后插入以下内容
#Change the SCM default storage path
Environment="SCM_WORKING =/tmp/scmWorking"
使用命令 sudo systemctl daemon-reload 重新加载 Simulation Compute Manager
使用命令 sudo systemctl start adskscmX 重新启动 Simulation Compute Manager
以下过程将更新 Simulation Compute Manager 的临时工作路径的位置。在此示例中,新位置将称为 /tmp/scmWorking
使用上述特性创建新位置。
使用 curl localhost:43500/terminate 或 curl <hostname>:43500/terminate 停止任何现有 Simulation Compute Manager 实例。
留出足够时间以供进程彻底退出。
确保通过调用 /sbin/pidof SimulationCompute 终止 SimulationCompute 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止所有进程。
确保通过调用 /sbin/pidof fs-harness 终止 fs-harness 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止该进程
设置环境变量:
export -x SCM_WORKING=/tmp/scmWorking
使用以下命令启动 Simulation Compute Manager:
$INSTALL_ROOT/opt/Autodesk/simulation-computeX/bin/SimulationCompute
以下过程将更新 Simulation Compute Manager 存储路径的位置。您将需要 root 或 sudo 访问权限,才能停止服务并对配置文件执行编辑。在此示例中,新位置将称为 /tmp/newlocation
注意:将终止任何正在运行的作业
使用上述特性创建新位置。
使用 sudo systemctl stop adskscmX 停止 Simulation Compute Manager
在文本编辑器中打开文件 /usr/lib/systemd/system/adskscmX.service。这将需要 root 或 sudo 访问权限。
在行 PIDFile="/var/lock/scm.pid.lock"(大约 9 行处)后插入以下内容
#Change the SCM default storage path
Environment="SCM_DATAPATH=/tmp/newlocation"
使用命令 sudo systemctl daemon-reload 重新加载 Simulation Compute Manager
使用命令 sudo systemctl start adskscmX 重新启动 Simulation Compute Manager
更改 Simulation Compute Manager 存储路径位置的环境变量是 SCM_DATAPATH。必须先设置环境变量,然后再启动 Simulation Compute Manager。在此示例中,新位置将称为 /tmp/newlocation
使用上述特性创建新位置。
使用 curl localhost:43500/terminate 或 curl <hostname>:43500/terminate 停止任何现有 Simulation Compute Manager 实例。
留出足够时间以供进程彻底退出。
确保通过调用 /sbin/pidof SimulationCompute 终止 SimulationCompute 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止所有进程。
确保通过调用 /sbin/pidof fs-harness 终止 fs-harness 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止该进程
设置环境变量:
export -x SCM_DATAPATH=/tmp/newlocation
使用以下命令启动 Simulation Compute Manager:
$INSTALL_ROOT/opt/Autodesk/simulation-computeX/bin/SimulationCompute