Corosync, Pacemaker for High Availability without crm utility?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Corosync, Pacemaker for High Availability without crm utility?

560 Views
samwellho
Contributor I

I trying to setting High Availability using Corosync + Pacemaker  on T4240RDB with NXP SDK v2.0.

(with referenced at here)
I have build image with the Corosync + Pacemaker packages.

However, I cannot use crm utility for settings because no crmsh was built.

When I build crmsh (bitbake crmsh), it was not successful and report errors:

...

...

...

NOTE: Executing RunQueue Tasks

ERROR: oe_runmake failed

ERROR: Function failed: do_compile (log file is located at ~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/work/ppc64e6500-fsl-linux/crmsh/3.0.3-r0/temp/log.do_compile.9376)

ERROR: Logfile of failure stored in: ~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/work/ppc64e6500-fsl-linux/crmsh/3.0.3-r0/temp/log.do_compile.9376

Log data follows:

| DEBUG: SITE files ['endian-big', 'bit-64', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc-linux', 'powerpc64-linux', 'common']

| DEBUG: Executing shell function do_compile

| NOTE: make -j 16

| a2x -f manpage doc/crm.8.adoc

| a2x -f manpage doc/crmsh_hb_report.8.adoc

| (cd .; ~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/sysroots/x86_64-linux/usr/bin/python-native/python setup.py build \

| --build-base ~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/work/ppc64e6500-fsl-linux/crmsh/3.0.3-r0/crmsh-3.0.3/build \

| --verbose)

| running build

| running build_py

| running egg_info

| writing requirements to crmsh.egg-info/requires.txt

| writing crmsh.egg-info/PKG-INFO

| writing top-level names to crmsh.egg-info/top_level.txt

| writing dependency_links to crmsh.egg-info/dependency_links.txt

| reading manifest file 'crmsh.egg-info/SOURCES.txt'

| writing manifest file 'crmsh.egg-info/SOURCES.txt'

| running build_scripts

| a2x: ERROR: "xmllint" --nonet --noout --valid "~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/work/ppc64e6500-fsl-linux/crmsh/3.0.3-r0/crmsh-3.0.3/doc/crmsh_hb_report.8.xml" returned non-zero exit status 4

| make: *** [doc/crmsh_hb_report.8] Error 1

| make: *** Waiting for unfinished jobs....

| a2x: ERROR: "xmllint" --nonet --noout --valid "~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/work/ppc64e6500-fsl-linux/crmsh/3.0.3-r0/crmsh-3.0.3/doc/crm.8.xml" returned non-zero exit status 4

| make: *** [doc/crm.8] Error 1

| WARNING: exit code 1 from a shell command.

| ERROR: oe_runmake failed

| ERROR: Function failed: do_compile (log file is located at ~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/build/tmp/work/ppc64e6500-fsl-linux/crmsh/3.0.3-r0/temp/log.do_compile.9376)

ERROR: Task 6 (~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-cgl/meta-cgl-common/recipes-cgl/crmsh/crmsh_3.0.3.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1409 tasks of which 1408 didn't need to be rerun and 1 failed.

...

...

...

This is my conf/local.conf file:

MACHINE ??= '...'

DISTRO ?= 'fsl-qoriq'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    STOPTASKS,/tmp,100M,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K \

    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

# Parallelism Options

BB_NUMBER_THREADS = "16"

PARALLEL_MAKE = "-j 16"

#

hostname_pn-base-files = "..."

#

ETH0_AUTO_DHCP = "0"

ETH1_AUTO_DHCP = "0"

#

PREFERRED_VERSION_openssl = "1.0.2%"

# Append some packages

IMAGE_INSTALL_append = " ccid pcsc-lite libusb1 strongswan openssh openssl opensc gnupg quagga iptables nano iperf3 util-linux-fsck bash xmlto procps zip unzip ntp tzdata haveged pacemaker crmsh"

#

DL_DIR = "~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/downloads"

SSTATE_DIR = "~/run/nxp/QorIQ-SDK-V2.0-20160527-yocto/sstate-cache"

INHERIT += "own-mirrors"

SOURCE_MIRROR_URL ?= "http://git.freescale.com/source/"

SSTATE_MIRRORS = "file://.*/(.*)/(.*) file://${SSTATE_DIR}/native/\1/\2 \n"

# use xz to compress sstate

SSTATE_PKG_SUFFIX = "txz"

SSTATE_PKG_TARZIPPROG = "xz"

ACCEPT_FSL_EULA = "1"

Please help me how to build crmsh on NXP SDK v2.0 for T4240RDB or how to config High Availability using Corosync + Pacemaker  on T4240RDB without crm utility?

Thanks.

Tags (3)
0 Kudos
0 Replies