Why do I see the error '/usr/share/cluster/utils/fs-lib.sh: line 201: [: -eq: unary operator expected' when testing my resource group with rg_test in a RHEL 6 Update 5 or later Highly Available cluster with rgmanager?
Issue
The following error is generated when stopping or starting my resource group(service) with rg_test
:
# rg_test test /etc/cluster/cluster.conf stop service halvm
Running in test mode.
Loading resource rule from /usr/share/cluster/lvm_by_vg.sh
[...]
Loading resource rule from /usr/share/cluster/script.sh
Stopping halvm...
/usr/share/cluster/utils/fs-lib.sh: line 133: [: -eq: unary operator expected
<err> stop: Could not match /dev/mapper/vgShared1-lvol9 with a real device
[fs] stop: Could not match /dev/mapper/vgShared1-lvol9 with a real device
/usr/share/cluster/utils/fs-lib.sh: line 133: [: -eq: unary operator expected
<err> stop: Could not match /dev/mapper/vgShared1-lvol8 with a real device
[fs] stop: Could not match /dev/mapper/vgShared1-lvol8 with a real device
Stop of halvm complete
Environment
- Red Hat Enterprise Linux Server 6 (with the High Availability Add on)
resource-agents-3.9.2-40.el6_5.10
up to the latest versionresource-agents-3.9.5-12.el6_6.3.x86_64
rgmanager
- Using
rg_test
to test resources or services
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.