Discussion:
[Linux-cluster] HA cluster 6.5 redhat active passive Error
deepesh kumar
2017-04-29 11:34:04 UTC
Permalink
Hi ,

Currently I am testing 2 node active passive cluster on RHEL 6.5 with ext4
fs.

I have set up all basic settings ..like Luci , ricci and other services
running and both the nodes are part of cluster.

I am not able to make the clvmd configuration attributes for my vy . All
required seetings in lvm.conf with tags for all nonshared vgs are in place.

logs...


Apr 28 21:08:07 12RHAPPTR04V rgmanager[2183]: I am node #2
Apr 28 21:08:07 12RHAPPTR04V rgmanager[2183]: Resource Group Manager
Starting
Apr 28 21:08:07 12RHAPPTR04V rgmanager[2183]: Loading Service Data
Apr 28 21:08:11 12RHAPPTR04V rgmanager[2183]: Initializing Services
Apr 28 21:08:11 12RHAPPTR04V rgmanager[3212]: [lvm] HA LVM: Unable to get
volume group attributes for /dev/mapper/shared_vg-ha_lv
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3249]: [lvm] Deactivating
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3277]: [lvm] Making resilient :
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3305]: [lvm] Resilient command:
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb --config
devices{filter=["a|/dev/mapper/0QEMU_QEMU_HAR
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3330]: [lvm] lv_exec_resilient failed
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3354]: [lvm] lv_activate_resilient
stop failed on /dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3379]: [lvm] Unable to deactivate
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V polkitd[3405]: started daemon version 0.96
using authority implementation `local' version `0.96'
Apr 28 21:08:13 12RHAPPTR04V rtkit-daemon[3400]: Sucessfully made thread
3397 of process 3397 (/usr/bin/pulseaudio) owned by '42' high priority at
nice level -11.
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3418]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3440]: [lvm] Attempting cleanup of
/dev/mapper/shared_vg-ha_lv
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3465]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V rgmanager[2183]: stop on lvm "UNIDB" returned
1 (generic error)
Apr 28 21:08:14 12RHAPPTR04V rgmanager[3537]: [script]
/usr/share/cluster/db2start.sh does not exist
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: Services Initialized
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: State change: Local UP
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: Starting stopped service
service:Database
Apr 28 21:08:14 12RHAPPTR04V rgmanager[3578]: [script]
/usr/share/cluster/db2start.sh does not exist
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: start on script "DB2"
returned 5 (program not installed)
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: #68: Failed to start
service:Database; return value: 1
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: Stopping service
service:Database
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3613]: [lvm] HA LVM: Unable to get
volume group attributes for /dev/mapper/shared_vg-ha_lv
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3646]: [lvm] Deactivating
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3668]: [lvm] Making resilient :
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3693]: [lvm] Resilient command:
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb --config
devices{filter=["a|/dev/mapper/0QEMU_QEMU_HAR
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3716]: [lvm] lv_exec_resilient failed
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3741]: [lvm] lv_activate_resilient
stop failed on /dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3763]: [lvm] Unable to deactivate
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3785]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3808]: [lvm] Attempting cleanup of
/dev/mapper/shared_vg-ha_lv
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3831]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[2183]: stop on lvm "UNIDB" returned
1 (generic error)
Apr 28 21:08:17 12RHAPPTR04V rgmanager[3899]: [script]
/usr/share/cluster/db2start.sh does not exist
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: stop on script "DB2" returned
5 (program not installed)
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: #12: RG service:Database
failed to stop; intervention required
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: Service service:Database is
failed
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: #13: Service service:Database
failed to stop cleanly
Apr 28 21:08:28 12RHAPPTR04V rgmanager[2183]: State change: 12RHAPPTR03V UP
Apr 28 21:08:46 12RHAPPTR04V kernel: fuse init (API version 7.14)
Apr 28 21:08:46 12RHAPPTR04V seahorse-daemon[4044]: DNS-SD initialization
failed: Daemon not running
Apr 28 21:08:46 12RHAPPTR04V seahorse-daemon[4044]: init gpgme version 1.1.8
Apr 28 21:08:46 12RHAPPTR04V pulseaudio[4099]: pid.c: Stale PID file,
overwriting.
Apr 28 21:09:38 12RHAPPTR04V ricci[4367]: Executing '/usr/bin/virsh
nodeinfo'


thanks
Deepesh kumar
--
DEEPESH KUMAR
Digimer
2017-04-29 17:14:35 UTC
Permalink
Post by deepesh kumar
Hi ,
Currently I am testing 2 node active passive cluster on RHEL 6.5 with
ext4 fs.
I have set up all basic settings ..like Luci , ricci and other services
running and both the nodes are part of cluster.
I am not able to make the clvmd configuration attributes for my vy . All
required seetings in lvm.conf with tags for all nonshared vgs are in place.
logs...
Apr 28 21:08:07 12RHAPPTR04V rgmanager[2183]: I am node #2
Apr 28 21:08:07 12RHAPPTR04V rgmanager[2183]: Resource Group Manager
Starting
Apr 28 21:08:07 12RHAPPTR04V rgmanager[2183]: Loading Service Data
Apr 28 21:08:11 12RHAPPTR04V rgmanager[2183]: Initializing Services
Apr 28 21:08:11 12RHAPPTR04V rgmanager[3212]: [lvm] HA LVM: Unable to
get volume group attributes for /dev/mapper/shared_vg-ha_lv
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3249]: [lvm] Deactivating
/dev/mapper/shared_vg-ha_lv//hadb
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb --config
devices{filter=["a|/dev/mapper/0QEMU_QEMU_HAR
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3330]: [lvm] lv_exec_resilient failed
Apr 28 21:08:12 12RHAPPTR04V rgmanager[3354]: [lvm]
lv_activate_resilient stop failed on /dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3379]: [lvm] Unable to deactivate
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V polkitd[3405]: started daemon version 0.96
using authority implementation `local' version `0.96'
Apr 28 21:08:13 12RHAPPTR04V rtkit-daemon[3400]: Sucessfully made thread
3397 of process 3397 (/usr/bin/pulseaudio) owned by '42' high priority
at nice level -11.
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3418]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3440]: [lvm] Attempting cleanup
of /dev/mapper/shared_vg-ha_lv
Apr 28 21:08:13 12RHAPPTR04V rgmanager[3465]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:13 12RHAPPTR04V rgmanager[2183]: stop on lvm "UNIDB"
returned 1 (generic error)
Apr 28 21:08:14 12RHAPPTR04V rgmanager[3537]: [script]
/usr/share/cluster/db2start.sh does not exist
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: Services Initialized
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: State change: Local UP
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: Starting stopped service
service:Database
Apr 28 21:08:14 12RHAPPTR04V rgmanager[3578]: [script]
/usr/share/cluster/db2start.sh does not exist
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: start on script "DB2"
returned 5 (program not installed)
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: #68: Failed to start
service:Database; return value: 1
Apr 28 21:08:14 12RHAPPTR04V rgmanager[2183]: Stopping service
service:Database
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3613]: [lvm] HA LVM: Unable to
get volume group attributes for /dev/mapper/shared_vg-ha_lv
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3646]: [lvm] Deactivating
/dev/mapper/shared_vg-ha_lv//hadb
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb
lvchange -an /dev/mapper/shared_vg-ha_lv//hadb --config
devices{filter=["a|/dev/mapper/0QEMU_QEMU_HAR
Apr 28 21:08:15 12RHAPPTR04V rgmanager[3716]: [lvm] lv_exec_resilient failed
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3741]: [lvm]
lv_activate_resilient stop failed on /dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3763]: [lvm] Unable to deactivate
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3785]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3808]: [lvm] Attempting cleanup
of /dev/mapper/shared_vg-ha_lv
Apr 28 21:08:16 12RHAPPTR04V rgmanager[3831]: [lvm] Failed to stop
/dev/mapper/shared_vg-ha_lv//hadb
Apr 28 21:08:16 12RHAPPTR04V rgmanager[2183]: stop on lvm "UNIDB"
returned 1 (generic error)
Apr 28 21:08:17 12RHAPPTR04V rgmanager[3899]: [script]
/usr/share/cluster/db2start.sh does not exist
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: stop on script "DB2"
returned 5 (program not installed)
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: #12: RG service:Database
failed to stop; intervention required
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: Service service:Database
is failed
Apr 28 21:08:17 12RHAPPTR04V rgmanager[2183]: #13: Service
service:Database failed to stop cleanly
Apr 28 21:08:28 12RHAPPTR04V rgmanager[2183]: State change: 12RHAPPTR03V UP
Apr 28 21:08:46 12RHAPPTR04V kernel: fuse init (API version 7.14)
Apr 28 21:08:46 12RHAPPTR04V seahorse-daemon[4044]: DNS-SD
initialization failed: Daemon not running
Apr 28 21:08:46 12RHAPPTR04V seahorse-daemon[4044]: init gpgme version 1.1.8
Apr 28 21:08:46 12RHAPPTR04V pulseaudio[4099]: pid.c: Stale PID file,
overwriting.
Apr 28 21:09:38 12RHAPPTR04V ricci[4367]: Executing '/usr/bin/virsh
nodeinfo'
thanks
Deepesh kumar
Hi Deepesh,

You probably got a notice that the linux-cluster list is deprecated. I
am replying to the new list, clusterlabs. You will want to subscribe
there and continue over there as there are many more people on that list.

For clvmd, you need to set lvm.conf to set;

global {
locking_type = 3;
fallback_to_clustered_locking = 1
fallback_to_local_locking = 0
}

This assumes you are not trying to use LVM and clustered LVM at the
same time. If you are, you probably don't want to. If you do anyway,
don't set the fallback variables.

With this, you then start cman, then start clvmd. With clvmd running,
new VGs default to clustered type. You can override this with 'vgcreate
-c{y,n}'.

If you still have trouble, please share your full cluster.conf
(obfuscate passwords, please).
--
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of
Einstein’s brain than in the near certainty that people of equal talent
have lived and died in cotton fields and sweatshops." - Stephen Jay Gould
--
Linux-cluster mailing list
Linux-***@redhat.com
https://www.redhat.c
Loading...