|
|
Open High Availability Cluster FAQHA Clusters Quick Links
This page is a list of Questions and Answers about Open High Availability Cluster. For the general OpenSolaris FAQ, click here. If you would like to ask a question or provide feedback on this FAQ, please send it to ha dash clusters dash discuss at opensolaris dot org. Topics in this FAQ
Questions:Section 1: Basics
Section 2: Building
Section 3: Building Agents
Section 4: Building Core
Section 5: Installing Sun Cluster
Section 6: Sun Cluster ConfigurationsAnswers:Section 1: Basics
Q: Which parts of Solaris Cluster have not been open-sourced?
Q: Why aren't all the Sun Cluster agents open-sourced?
Q: Can I run the open-source agents on Sun Cluster 3.2 on Solaris 10?
Q: If I run the agents on Sun Cluster 3.2 / Solaris 10, are they supported? Section 2: Building
Q: The SUNWonbld package creates a user "gk" - what is it used for?
Q: nbuild doesn't output anything indicating a result-- how do I know if my build succeeded?
Q: How do I customize the email address to which the build result email is sent? /opt/scbld/bin/nbuild -Da LOGNAME=<your-email-addr>
Q: How can I tell nbuild that my Sun Studio compiler is somewhere other than /opt/SUNWspro/ ? /opt/scbld/bin/nbuild -Da SPRO_ROOT=<your-compiler-path> Q: Why do I see an error like the following when building the ON consolidation?
/local_code/onnv-gate/usr/src/tools/proto/opt/onbld/bin/i386/cw -_cc -O
-K pic -xspace -Xa -xildoff -errtags=yes -errwarn=%all
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%no
ne -W0,-xglobalstatic -v -xstrconst -D_REENTRANT -g -xc99=%none
-W0,-noglobal -_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs
-I/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap -I/usr/i
nclude/mps -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\" -D_TS_ERRNO
-I/local_code/onnv-gate/proto/root_i386/usr/include -DPIC
-D_REENTRANT -c -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS
-D_SOLARIS_SDK -DUSE_WA
ITPID -DNEEDPROTOS -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS
-DNS_DOMESTIC -DLDAP_SSLIO_HOOKS -DSTR_TRANSLATION -DLDAP_SASLIO_HOOKS
-I/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap -I/usr/i
nclude/mps -o pics/bprint.o ../sources/ldap/ber/bprint.c
+ /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin
-fno-asm -nodefaultlibs -D__sun -O -fpic -Wall -Wno-unknown-pragmas
-Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-unin
itialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs
-Wno-char-subscripts -Wno-switch -Werror -std=gnu89 -D_REENTRANT
-gdwarf-2 -std=gnu89 -fno-dwarf2-indirect-strings -I/local_code/on
nv-gate/usr/src/lib/libldap5/include/ldap -I/usr/include/mps
-DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO
-I/local_code/onnv-gate/proto/root_i386/usr/include -DPIC -D_REENTRANT
-c -DSVR4 -DSYSV -D__svr4 -D
__svr4__ -DSOLARIS -D_SOLARIS_SDK -DUSE_WAITPID -DNEEDPROTOS -DNET_SSL
-DNO_LIBLCACHE -DLDAP_REFERRALS -DNS_DOMESTIC -DLDAP_SSLIO_HOOKS
-DSTR_TRANSLATION -DLDAP_SASLIO_HOOKS -I/local_code/onnv-gate/usr/s
rc/lib/libldap5/include/ldap -I/usr/include/mps -o
/tmp/nightly.tmpdir.101509/.cwCAAflWUbA.o ../sources/ldap/ber/bprint.c
In file included from ../sources/ldap/ber/lber-int.h:108,
from ../sources/ldap/ber/bprint.c:32:
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:84:
error: redefinition of `struct ldap_x_iovec'
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:87:
error: redefinition of typedef 'ldap_x_iovec'
/usr/include/mps/lber.h:176: error: previous declaration of
'ldap_x_iovec' was here
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:94:
error: redefinition of typedef 'LDAP_IOF_READ_CALLBACK'
/usr/include/mps/lber.h:183: error: previous declaration of
'LDAP_IOF_READ_CALLBACK' was here
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:96:
error: redefinition of typedef 'LDAP_IOF_WRITE_CALLBACK'
/usr/include/mps/lber.h:185: error: previous declaration of
'LDAP_IOF_WRITE_CALLBACK' was here
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:98:
error: redefinition of typedef 'LDAP_X_EXTIOF_READ_CALLBACK'
/usr/include/mps/lber.h:187: error: previous declaration of
'LDAP_X_EXTIOF_READ_CALLBACK' was here
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:100:
error: redefinition of typedef 'LDAP_X_EXTIOF_WRITE_CALLBACK'
/usr/include/mps/lber.h:189: error: previous declaration of
'LDAP_X_EXTIOF_WRITE_CALLBACK' was here
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:102:
error: redefinition of typedef 'LDAP_X_EXTIOF_WRITEV_CALLBACK'
/usr/include/mps/lber.h:191: error: previous declaration of
'LDAP_X_EXTIOF_WRITEV_CALLBACK' was here
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:108:
error: redefinition of `struct lber_x_ext_io_fns'
/local_code/onnv-gate/usr/src/lib/libldap5/include/ldap/solaris-int.h:123:
error: redefinition of typedef 'LDAP_MALLOC_CALLBACK'
/usr/include/mps/lber.h:212: error: previous declaration of
'LDAP_MALLOC_CALLBACK' was here
A: SCX delivers SUNWldapcsdk-dev as part of the shared components. This was inherited from the Java Enterprise System. The libldap6 headers are conflicting with the libldap5 headers delivered as part of the ON consolidation. You can safely pkgrm SUNWldapcsdk-dev, as SCX and the OHAC builds do not need it. Back to Top Section 3: Building Agents
Q: What compiler can I use to build the agents?
Q: Why does my build fail looking for libyabe.so? /opt/SUNWspro//bin/cc -xO3 -xcg89 -Wa,-cg92 -xspace -W0,-Lt -Xa -DTEXT_DOMAIN=\"\" -DMESSAGE_DIR=\"/usr/cluster/lib/locale\" -DSOL_VERSION=200710 -I/builds/ohacds+5.11+sparc/proto/Sol_11-nd/root_sparc/usr/include -I/builds/ohacds+5.11+sparc/proto/Sol_11-nd/root_sparc/usr/cluster/include -I/usr/include -I/opt/scbld/ref_proto/ohac/ohac_latest/root_sparc/usr/cluster/include -I/opt/scbld/ref_proto/ohac/ohac_latest/root_sparc/usr/cluster/include/rgm -Y I,/usr/include -I/builds/ohacds+5.11+sparc/usr/src/cmd/ha-services/common -c /builds/ohacds+5.11+sparc/usr/src/cmd/ha-services/common/ds_utils.c ld.so.1: acomp: fatal: libyabe.so: open failed: No such file or directory cc: Fatal error in /opt/SUNWspro/prod/bin/acomp : Killed *** Error code 9 dmake: Fatal error: Command failed for target `ds_utils.o' Current working directory /builds/ohacds+5.11+sparc/usr/src/cmd/ha-services/common/sparc The problem is that your system is missing the SPROlang package, which is part of the "Support Files" in Sun Studio. You need to install the support files in addition to the compiler itself.
Q: Can I build the agents on Solaris 10 instead of Solaris Express? /opt/scbld/bin/nbuild -Da OS=5.11
Q: Can I build the agents specifically for Solaris 10?
Q: Why does my build fail on Solaris Express Community Edition Build 68 or newer looking for /usr/lib/libuuid.so.1? /opt/SUNWspro//bin/cc -xO3 -DPOST_S9_BUILD -W0,-xc99=%none -Xa -DTEXT_DOMAIN=\"SUNW_SC_DNS\" -DMESSAGE_DIR=\"/opt/SUNWscdns/lib/locale\" -DSOL_VERSION=200710 -I/builds/ohacds+5.11+i386/proto/Sol_11-nd/root_i386/usr/include -I/builds/ohacds+5.11+i386/proto/Sol_11-nd/root_i386/usr/cluster/include -I/usr/include -I/opt/scbld/ref_proto/ohac/ohac_latest/root_i386/usr/cluster/include -I/opt/scbld/ref_proto/ohac/ohac_latest/root_i386/usr/cluster/include/rgm -Y I,/usr/include -I/builds/ohacds+5.11+i386/proto/Sol_11-nd/root_i386/usr/cluster/include -I/builds/ohacds+5.11+i386/proto/Sol_11-nd/root_i386/usr/cluster/include/rgm -I/builds/ohacds+5.11+i386/usr/src/cmd/ha-services/common -s -o dns_svc_start dns_svc_start.c dns.o -s -L/builds/ohacds+5.11+i386/proto/root_i386/usr/lib -L/builds/ohacds+5.11+i386/proto/root_i386/usr/cluster/lib -L /usr/lib -L/opt/scbld/ref_proto/ohac/ohac_latest/root_i386/usr/cluster/lib -Y P,/usr/lib -Y P,/opt/scbld/ref_proto/ohac/ohac_latest/root_i386/usr/cluster/lib -R/usr/cluster/lib -lscf -ldsdev -lscha -L/builds/ohacds+5.11+i386/usr/src/cmd/ha-services/common/i386 -lds_common ld: warning: file libdladm.so.1: required by /usr/lib/libuuid.so.1, not found Undefined first referenced symbol in file dladm_walk /usr/lib/libuuid.so.1 ld: fatal: Symbol referencing errors. No output written to dns_svc_start The solution is to either apply the following diff to ohacds/usr/src/Makefile.master.cl (revision 1.115):
--- Makefile.master.cl.orig Wed Jun 13 03:12:55 2007
+++ Makefile.master.cl Thu Aug 2 19:40:24 2007
@@ -157,8 +157,8 @@
REF_PROTO=
$(CLOSED_BUILD)REF_PROTO= $(BUILD_TOOLS)/ref_proto/$(REFERENCE_PROTO)/root_$(MACH)
-REF_LIBS= $(REF_PROTO)/usr/lib
-REF_LIBS64= $(REF_PROTO)/usr/lib/$(MACH64)
+REF_LIBS= $(REF_PROTO)/usr/lib $(REF_PROTO)/lib
+REF_LIBS64= $(REF_PROTO)/usr/lib/$(MACH64) $(REF_PROTO)/lib/$(MACH64)
REF_INC= $(REF_PROTO)/usr/include
#
@@ -274,8 +274,8 @@
DEV_CM= "@($(POUND_SIGN))$(DEV_NM) Internal Development: $(VERSION) `$(ECHO) $$LOGNAME` `date +%Y-%m-%d` `$(ECHO) [\`basename $$CODEMGR_WS\`]`"
LIBCC_ = -lCstd -lCrun
-LIBCC_32 = -L$(REF_LIBS) -lCstd -lCrun
-LIBCC_64 = -L$(REF_LIBS64) -lCstd -lCrun
+LIBCC_32 = $(REF_LIBS:%=-L%) -lCstd -lCrun
+LIBCC_64 = $(REF_LIBS64:%=-L%) -lCstd -lCrun
LIBCC = $(LIBCC_$(CLASS))
NM =/usr/ccs/bin/nm
@@ -431,10 +431,10 @@
ENVLIBS2= $(ENVROOT2:%=-L%/usr/cluster/lib) $(ENVROOT2:%=-L%/usr/lib)
DEFAULT_LPATH= $(ENVLDLIBS1:%usr/ccs/lib=%usr/cluster/lib) \
- -L $(REF_LIBS) -L$(REF_CL_LIBS) \
+ $(REF_LIBS:%=-L%) -L$(REF_CL_LIBS) \
$(ENVLDLIBS2:%usr/ccs/lib=%usr/cluster/lib) \
$(ENVLDLIBS3:%usr/ccs/lib=%usr/cluster/lib) \
- $(CCYLIBS)$(REF_LIBS) $(CCYLIBS)$(REF_CL_LIBS) \
+ $(REF_LIBS:%=$(CCYLIBS)%) $(CCYLIBS)$(REF_CL_LIBS) \
-R/usr/cluster/lib
LDLIBS.cmd = $(DEFAULT_LPATH)
Or to download the already modified Makefile.master.cl-1.115-fix.txt and copy it to your ohacds/usr/src/Makefile.master.cl. This change is already included in the ohacds-src-20070816.tar.bz2 source archive. Back to Top Section 4: Building Core
Q: What compiler can I use to build the core?
Q: Can I build the core on Solaris 10 instead of Solaris Express?
Q: Can I compile part of the workspace with dmake instead of nbuild? $ man -M /opt/scbld/man nbmake Q: Why do I see an error like the following? 32610 ## Building pkgmap from package prototype file. 32611 ERROR in /export/ohac/ohac+5.11+i386/usr/src/pkgdefs/SUNWscspmu/prototype_com: 32612 no object for usr/cluster/lib/SunClusterManager/WEB-INF/lib/registrationservlet.jar found in root directory 32613 pkgmk: ERROR: unable to build pkgmap from prototype file 32614 ## Packaging was not successful. 32615 *** Error code 1 A: This build error is due to CR 6702804. It shows up when you try to compile against a version of the ON source newer than build 79. This was fixed in ON build 91. Q: Why do I see an error like the following? 5992 cl_net: cl_comm cl_dcs cl_haci cl_load cl_orb cl_runtime 5993 cl_orb: cl_bootstrap cl_load cl_runtime 5994 cl_quorum: cl_haci cl_load cl_orb cl_runtime 5995 cl_rsmtrans: cl_comm cl_haci cl_load cl_orb cl_runtime 5996 cldlpihb: cl_dlpitrans cl_load cl_orb cl_runtime 5997 clfpstr: cl_comm clprivnet 5998 clif_rds: cl_comm cl_haci cl_runtime 5999 clif_rsm: cl_bootstrap cl_comm cl_haci cl_load cl_runtime 6000 clif_rsmrdt: cl_bootstrap cl_comm cl_haci cl_runtime 6001 clq_netapp_nas: cl_haci cl_load cl_orb cl_quorum cl_runtime 6002 clq_quorum_server: cl_haci cl_load cl_orb cl_quorum cl_runtime 6003 clq_scsi2: cl_haci cl_load cl_orb cl_quorum cl_runtime 6004 clq_scsi3: cl_haci cl_load cl_orb cl_quorum cl_runtime 6005 cltcpint: cl_dlpitrans cl_load cl_orb cl_runtime 6006 pxfs: cl_comm cl_dcs cl_haci cl_load cl_orb cl_runtime 6007 ------------------------------------------------ 6008 Error: fatal undefined symbols in kernel modules 6009 Module name Undefined symbol 6010 ------------------------------------------------ 6011 pxfs/obj32/pxfs: [4986] cl_net/obj32/cl_net: [1860] cl_haci/obj32/cl_haci: [10255] : memcpy 6012 *** Error code 1 A: You're probably using an older version of the Sun Studio 11 compiler. Make sure you have the latest version. Back to Top Section 5: Installing Sun Cluster
Q: Where can I find documentation about how to install Sun Cluster 3.2 on Solaris 10? Q: Can I install Solaris 10 and Sun Cluster 3.2 on 32-bit x86 systems? Q: Can I install Solaris Express Community Edition and Solaris Cluster Express on 32bit x86 systems? Q: Why does scinstall report that JDMK is not installed, when I installed it from jdmk51_02-allplatforms.zip? Back to Top Section 6: Sun Cluster ConfigurationsQ: Can I use iSCSI with Sun Cluster? |