---
title: "Linux 集群之 PBS torque + maui"
author: "RyanXL"
date: "2013-01-29T11:31:42Z"
tags: []
categories: ["开源软件"]
slug: "linux-pbs-torque-maui"
draft: false
lastmod: "2013-05-06T17:53:32Z"
id: 1777705
url: "https://ryanxl.iteye.com/blog/1777705"
---

指定用户允许使用的节点：

参考 http://rockscluster.5d6d.net/thread-76-1-1.html

 

例如root用户只能使用compute-2, compute-0-3, compute-0-4的节点：

对已存在的队列，作如下设置：

set queue batch queue\_type = Execution  
set queue batch resources\_default.neednodes = platformf5 F$ E* q/ s, n5 H  
set queue batch enabled = True  W1 h. ~( I9 m9 f  
set queue batch started = True

 

修改/opt/torque/server\_priv/nodes文件：

compute-0-0 np=16 

compute-0-1 np=16

compute-0-2 np=16 platform root 

compute-0-3 np=16 platform root

compute-0-4 np=16 platform root

compute-0-5 np=16

 

重启torque：

qterm -t quick

pbs\_server

 

重启maui（使用 schedctl -r 无效）：

ps -A | grep maui #找到maui的进程号

kill -9 \*\*\** #杀死该进程

/opt/maui/sbin/maui