rocks 常用命令

rocks有很多命令,下面列举经常用的一些命令。

一 rocks add

rocks add  host interface 在rocks中添加网口

rocks add host bonded compute-0-0 channel=bond0   interfaces=eth0,eth1 ip=10.1.255.254 network=private

二  rocks set host interface


set host interface ip  设置接口IP  

rocks set host interface ip compute-0-0 eth1 192.168.0.10

set host interface mac  把接口和MAC绑定的

rocks set host interface mac compute-0-0 eth1 00:0e:0c:a7:5d:ff


set host interface module  设置接口模块

rocks set host interface module compute-0-0 eth1 e1000


set host interface subnet      设置属于哪个rocks定义的网络

rocks set host interface subnet compute-0-0 eth1 public


三rocks dump用来导出rocks设置

四rocks list

rocks list host 列出机器名

rocks list  interface 列出接口信息

rocks list host macs 列出macs信息

五rocks remove

rocks remove host 移除主机

rocks remove host compute-0-0


rocks remove host interface 移除网口

rocks remove host interface compute-0-0 eth1


rocks remove host partition移除分区

rocks remove host partition compute-0-0


rocks remove host route

rocks remove host route compute-0-0 1.2.3.4


这是我在工作中常用到的一些命令,如需要其他的,可举一反三。




www.jiangyexiang.com


QQ群交流:283605880



你可能感兴趣的:(linux,集群,高性能计算,Rocks)