rg_test reports "[: too many arguments" error message while activating HA-LVM resource.
Issue
rg_testreports[: too many argumentserror message while activating HA-LVM resource configured in cluster:
[root@machine1 ~]# rg_test test /etc/cluster/cluster.conf start service service1
Running in test mode.
[...]
Loading resource rule from /usr/share/cluster/fence_scsi_check.pl
Starting service1...
volume_list=["vg_machine1", "@machine1"]
<notice> Activating vg1/ha_lv
[lvm] Activating vg1/ha_lv
Logical volume "ha_lv" changed
<notice> Making resilient : lvchange -ay vg1/ha_lv
[lvm] Making resilient : lvchange -ay vg1/ha_lv
/usr/share/cluster/lvm_by_lv.sh: line 46: [: too many arguments <<----------
<notice> Resilient command: lvchange -ay vg1/ha_lv --config devices{filter=["a|/dev/mapper/mpatha|","a|/dev/vda2|","r|.*|"]}
[lvm] Resilient command: lvchange -ay vg1/ha_lv --config devices{filter=["a|/dev/mapper/mpatha|","a|/dev/vda2|","r|.*|"]}
Reading all physical volumes. This may take a while...
Found volume group "vg1" using metadata type lvm2
Found volume group "vg_machine1" using metadata type lvm2
<info> mounting /dev/dm-9 on /mnt/ext3_resource
[fs] mounting /dev/dm-9 on /mnt/ext3_resource
<err> mount -t ext3 /dev/dm-9 /mnt/ext3_resource
[fs] mount -t ext3 /dev/dm-9 /mnt/ext3_resource
Start of service1 complete
[root@machine1 ~]#
Environment
- Red Hat Enterprise Linux 5, 6
- resource-agents-3.9.2-12.el6.x86_64
- HA-LVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
