17.2. Modifying resource parameters
To modify the parameters of a configured resource, use the following command.
pcs resource update resource_id [resource_options]
When you update a resource’s operation with the pcs resource update command, any options you do not specifically call out are reset to their default values.
The following example procedure modifies the parameters of the resource VirtualIP.
Procedure
Display the initial values of the configured parameters for resource
VirtualIP.# pcs resource config VirtualIP Resource: VirtualIP (type=IPaddr2 class=ocf provider=heartbeat) Attributes: ip=192.168.0.120 cidr_netmask=24 Operations: monitor interval=30sChange the value of the
ipparameter for resourceVirtualIP.# pcs resource update VirtualIP ip=192.169.0.120Display the values of the parameters for resource
VirtualIPafter you have modifed the value of theipparameter.# pcs resource config VirtualIP Resource: VirtualIP (type=IPaddr2 class=ocf provider=heartbeat) Attributes: ip=192.169.0.120 cidr_netmask=24 Operations: monitor interval=30s