Open HA Cluster » Documentation » Core » Building Core
en

Building Core

Building Open HA Cluster Core

The majority of Open High Availability Cluster (OHAC) code is released under the Common Development and Distribution License (CDDL) Version 1.0.

Source based on existing open source projects will continue to be available under their current licenses. Some binary components are covered under the OpenSolaris Binary License and some are covered under other open source licenses. Specific download pages provide license information associated with the available component pieces.

Building From Source

 To build from source, you need a system installed with:

# **cd /var/tmp**
# **unzip ///path///jdmk51_02-allplatforms.zip**
# **cd /opt**
# **unzip /var/tmp/sun-jdmk-runtime-5.1-b34.2.zip**
# **unzip /var/tmp/sun-jdmk-runtime-jmx-5.1-b34.2.zip**
# **unzip /var/tmp/sun-jdmk-sdk-5.1-b34.2.zip**

 You also need to download and install the following build tools:

  • The ON Specific Build Tools (SUNWonbld.PLATFORM.tar.bz2)
    The SUNWonbld package is a pkgadd-format directory that has been archived using tar and bzip2. Unpack it in a temporary directory and use pkgadd(1M) to install it. For example:
# **cd /var/tmp**
# **bzcat ///path///SUNWonbld.//PLATFORM//.tar.bz2 | tar xf -**
# **pkgadd -d onbld SUNWonbld**
# **cd /opt**
# **bzcat ///path///ohac-tools-//DATE.PLATFORM//.tar.bz2 | tar xf -**

Building Core

 To build the OHAC Core, you also need to download and install the following archives:

# **cd /opt**
# **bzcat ///path///ohac-closed-bins-//DATE.PLATFORM//.tar.bz2 | tar xf -**
# **bzcat ///path///ohac-ext-pkgs-//DATE.PLATFORM//.tar.bz2 | tar xf -**

 You also need to download and install a few private files from the ON source archive:

# **cd /var/tmp**
# **bzcat ///path///on-src.tar.bz2 | tar xf -**
# **cat ///path///on-filelist | cpio -pdum /**

 And finally, you need to download and install the source archive:

  • The OHAC Core Source Code (ohac-src-DATE.tar.bz2)
    You can install the source code wherever you like. This example assumes the archive is extracted to /builds:
$ **cd /builds**
$ **bzcat ///path///ohac-src-//DATE//.tar.bz2 | tar xf -**

 To build the Core source, run nbuild from within the source tree. This example creates a complete build of both non-debug and debug using the Sun Studio Compiler, and assumes all the compilers, tools and archives were installed in their default locations:


$ **cd /builds/ohac**
$ **/opt/scbld/bin/nbuild -Da**

 The resulting build is located in /builds/ohac+5.11+PLATFORM where you can find:

  • log/log.TIMEDATE.NUM - log files for this build
  • packages/PLATFORM/Sol_11 - debug packages
  • packages/PLATFORM/Sol_11-nd - non-debug packages

Installing or Upgrading Core

 Use scinstall(1M) to install or upgrade Core. This example shows how to install the debug x86 Core product:


# **/builds/ohac+5.11+i386/dvd.jas/Solaris_x86/Product/sun_cluster/Solaris_11/Tools/scinstall -iI**

 This example shows how to upgrade the debug x86 Core product:


# **/builds/ohac+5.11+i386/dvd.jas/Solaris_x86/Product/sun_cluster/Solaris_11/Tools/scinstall -u update**

Tags:
Created by admin on 2009/10/26 12:08
Last modified by admin on 2009/10/26 12:08

Collectives


XWiki Enterprise 2.7.1.34853 - Documentation