Simulation Compute Manager 本地临时 Linux 工作文件位置

作业会使用系统上的本地临时工作文件夹。该文件夹会在作业执行结束时被删除。文件在数据库中保留 30 天。

可以在以下位置找到使用的工作文件位置:

要更改此位置,请先更改环境变量 SCM_WORKING,然后再启动 Simulation Compute Manager。这将导致 Simulation Compute Manager 的工作数据库和临时文件重新定位到新位置。

(在以下说明的 adskscmXsimulation-computeX 中,X 应替换为 SCM 主版本)

更改工作站的临时工作文件路径的步骤

以下过程将更新 Simulation Compute Manager 的临时工作路径的位置。您将需要 root 或 sudo 访问权限,才能停止服务并对配置文件执行编辑。在此示例中,新位置将称为 /tmp/scmWorking

  1. 使用上述特性创建新位置。

  2. 使用 sudo systemctl stop adskscmX 停止 Simulation Compute Manager

  3. 在文本编辑器中打开文件 /usr/lib/systemd/system/adskscmX.service。这将需要 root 或 sudo 访问权限。

  4. 在行 PIDFile="/var/lock/scm.pid.lock"(大约 9 行处)后插入以下内容

    #Change the SCM default storage path
    Environment="SCM_WORKING =/tmp/scmWorking"
  5. 使用命令 sudo systemctl daemon-reload 重新加载 Simulation Compute Manager

  6. 使用命令 sudo systemctl start adskscmX 重新启动 Simulation Compute Manager

更改瘦客户端的临时工作文件路径的步骤

以下过程将更新 Simulation Compute Manager 的临时工作路径的位置。在此示例中,新位置将称为 /tmp/scmWorking

使用上述特性创建新位置。

  1. 使用 curl localhost:43500/terminatecurl <hostname>:43500/terminate 停止任何现有 Simulation Compute Manager 实例。

  2. 留出足够时间以供进程彻底退出。

  3. 确保通过调用 /sbin/pidof SimulationCompute 终止 SimulationCompute 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止所有进程。

  4. 确保通过调用 /sbin/pidof fs-harness 终止 fs-harness 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止该进程

  5. 设置环境变量:

    export -x SCM_WORKING=/tmp/scmWorking
  6. 使用以下命令启动 Simulation Compute Manager:

    $INSTALL_ROOT/opt/Autodesk/simulation-computeX/bin/SimulationCompute

更改工作站的 Simulation Compute Manager 存储路径的步骤

以下过程将更新 Simulation Compute Manager 存储路径的位置。您将需要 root 或 sudo 访问权限,才能停止服务并对配置文件执行编辑。在此示例中,新位置将称为 /tmp/newlocation

注意:将终止任何正在运行的作业

  1. 使用上述特性创建新位置。

  2. 使用 sudo systemctl stop adskscmX 停止 Simulation Compute Manager

  3. 在文本编辑器中打开文件 /usr/lib/systemd/system/adskscmX.service。这将需要 root 或 sudo 访问权限。

  4. 在行 PIDFile="/var/lock/scm.pid.lock"(大约 9 行处)后插入以下内容

    #Change the SCM default storage path
    Environment="SCM_DATAPATH=/tmp/newlocation"
  5. 使用命令 sudo systemctl daemon-reload 重新加载 Simulation Compute Manager

  6. 使用命令 sudo systemctl start adskscmX 重新启动 Simulation Compute Manager

更改瘦客户端的 Simulation Compute Manager 存储路径的步骤

更改 Simulation Compute Manager 存储路径位置的环境变量是 SCM_DATAPATH。必须先设置环境变量,然后再启动 Simulation Compute Manager。在此示例中,新位置将称为 /tmp/newlocation

  1. 使用上述特性创建新位置。

  2. 使用 curl localhost:43500/terminatecurl <hostname>:43500/terminate 停止任何现有 Simulation Compute Manager 实例。

  3. 留出足够时间以供进程彻底退出。

  4. 确保通过调用 /sbin/pidof SimulationCompute 终止 SimulationCompute 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止所有进程。

  5. 确保通过调用 /sbin/pidof fs-harness 终止 fs-harness 进程。如果返回进程 ID,则使用 kill -9 '<process ID>' 终止该进程

  6. 设置环境变量:

    export -x SCM_DATAPATH=/tmp/newlocation
  7. 使用以下命令启动 Simulation Compute Manager:

    $INSTALL_ROOT/opt/Autodesk/simulation-computeX/bin/SimulationCompute