Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

6.8. 修改资源参数

要修改配置的资源的参数,请使用以下命令:
pcs resource update resource_id [resource_options]
以下命令显示为资源 VirtualIP 配置的参数的初始值、更改 ip 参数值的命令,以及 update 命令中的值。
# pcs resource show VirtualIP
 Resource: VirtualIP (type=IPaddr2 class=ocf provider=heartbeat)
  Attributes: ip=192.168.0.120 cidr_netmask=24
  Operations: monitor interval=30s
# pcs resource update VirtualIP ip=192.169.0.120
# pcs resource show VirtualIP
 Resource: VirtualIP (type=IPaddr2 class=ocf provider=heartbeat)
  Attributes: ip=192.169.0.120 cidr_netmask=24
  Operations: monitor interval=30s