[ClusterLabs] pcs: how to properly unset a value for resource/stonith? [Was: (no subject)]
Jan Pokorný
jpokorny at redhat.com
Thu Jul 20 09:46:04 EDT 2017
Hello ArekW,
first of all, gentle reminder to always set the subject for the posts
to the list (or, as a rule of thumb, in any email-based conversation).
On 20/07/17 08:43 +0200, Klaus Wenninger wrote:
> On 07/20/2017 07:21 AM, ArekW wrote:
>> Hi, How to properly unset a value with pcs? Set to false or null gives error:
>>
>> # pcs stonith update vbox-fencing verbose=false --force
>> or
>> # pcs stonith update vbox-fencing verbose= --force
>>
> The latter should be fine actually.
True:
# rm test.cib
# yum install -y fence-virt
# pcs -f test.cib stonith create fence-virt-069 fence_xvm auth=sha256 \
hash=sha256 key_file=/etc/cluster/fence_xvm.key timeout=5 \
pcmk_host_map=virt-069:virt-069.example.com
# pcs -f test.cib cluster cib scope=resources
<resources>
<primitive class="stonith" id="fence-virt-069" type="fence_xvm">
<instance_attributes id="fence-virt-069-instance_attributes">
<nvpair id="fence-virt-069-instance_attributes-auth" name="auth" value="sha256"/>
<nvpair id="fence-virt-069-instance_attributes-hash" name="hash" value="sha256"/>
<nvpair id="fence-virt-069-instance_attributes-key_file" name="key_file" value="/etc/cluster/fence_xvm.key"/>
<nvpair id="fence-virt-069-instance_attributes-pcmk_host_map" name="pcmk_host_map" value="virt-069:virt-069.example.com"/>
<nvpair id="fence-virt-069-instance_attributes-timeout" name="timeout" value="5"/>
</instance_attributes>
<operations>
<op id="fence-virt-069-monitor-interval-60s" interval="60s" name="monitor"/>
</operations>
</primitive>
</resources>
# pcs -f test.cib stonith update fence-virt-069 key_file=
# pcs -f test.cib cluster cib scope=resources
<resources>
<primitive class="stonith" id="fence-virt-069" type="fence_xvm">
<instance_attributes id="fence-virt-069-instance_attributes">
<nvpair id="fence-virt-069-instance_attributes-auth" name="auth" value="sha256"/>
<nvpair id="fence-virt-069-instance_attributes-hash" name="hash" value="sha256"/>
<nvpair id="fence-virt-069-instance_attributes-pcmk_host_map" name="pcmk_host_map" value="virt-069:virt-069.example.com"/>
<nvpair id="fence-virt-069-instance_attributes-timeout" name="timeout" value="5"/>
</instance_attributes>
<operations>
<op id="fence-virt-069-monitor-interval-60s" interval="60s" name="monitor"/>
</operations>
<meta_attributes id="fence-virt-069-meta_attributes"/>
</primitive>
</resources>
--
Jan (Poki)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20170720/ebba86c2/attachment-0003.sig>
More information about the Users
mailing list