Red Hat Training

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

5.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