Cluster Quickstart Guide
Cluster Quickstart Guide
Solaris OS
SPARC Platform Edition
Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without
limitation, these intellectual property rights may include one or more U.S. patents or pending patent applications in the U.S. and in other countries.
U.S. Government Rights – Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions
of the FAR and its supplements.
This distribution may include materials developed by third parties.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, the Solaris logo, the Java Coffee Cup logo, docs.sun.com, OpenBoot, Sun StorEdge, Sun Fire, Sun Ultra, SunSolve, Java, and
Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are
trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an
architecture developed by Sun Microsystems, Inc. ORACLE is a registered trademark of Oracle Corporation. The Adobe PostScript logo is a trademark of Adobe
Systems, Incorporated.
The OPEN LOOK and SunTM Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts
of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to
the Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license
agreements.
Products covered by and information contained in this publication are controlled by U.S. Export Control laws and may be subject to the export or import laws in
other countries. Nuclear, missile, chemical or biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export
or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially
designated nationals lists is strictly prohibited.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO
THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright 2008 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Tous droits réservés.
Sun Microsystems, Inc. détient les droits de propriété intellectuelle relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier,
et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plusieurs brevets américains ou des applications de brevet en attente aux Etats-Unis
et dans d'autres pays.
Cette distribution peut comprendre des composants développés par des tierces personnes.
Certaines composants de ce produit peuvent être dérivées du logiciel Berkeley BSD, licenciés par l'Université de Californie. UNIX est une marque déposée aux
Etats-Unis et dans d'autres pays; elle est licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, le logo Solaris, le logo Java Coffee Cup, docs.sun.com, OpenBoot, Sun StorEdge, Sun Fire, Sun Ultra, SunSolve, Java et Solaris
sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilisées sous
licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques
SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. ORACLE est une marque déposée registre de Oracle Corporation. Le logo Adobe
PostScript est une marque déposée de Adobe Systems, Incorporated.
L'interface d'utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de
pionniers de Xerox pour la recherche et le développement du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun détient
une licence non exclusive de Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l'interface
d'utilisation graphique OPEN LOOK et qui, en outre, se conforment aux licences écrites de Sun.
Les produits qui font l'objet de cette publication et les informations qu'il contient sont régis par la legislation américaine en matière de contrôle des exportations et
peuvent être soumis au droit d'autres pays dans le domaine des exportations et importations. Les utilisations finales, ou utilisateurs finaux, pour des armes nucléaires,
des missiles, des armes chimiques ou biologiques ou pour le nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou
réexportations vers des pays sous embargo des Etats-Unis, ou vers des entités figurant sur les listes d'exclusion d'exportation américaines, y compris, mais de manière
non exclusive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations des produits ou des services qui
sont régis par la legislation américaine en matière de contrôle des exportations et la liste de ressortissants spécifiquement designés, sont rigoureusement interdites.
LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES
SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE
IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.
090226@21990
Contents
Preface .....................................................................................................................................................5
3
Contents
Index ......................................................................................................................................................43
4 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Preface
The Sun Cluster Quick Start Guide for Solaris OS contains an example set of procedures for
installing and configuring a specific Sun Cluster 3.2 configuration on a SPARC® based system.
The configuration includes the Sun Cluster HA for Apache, Sun Cluster HA for NFS, and Sun
Cluster HA for Oracle data services.
This document is intended for experienced system administrators with extensive knowledge of
Sun software and hardware. Do not use this document as a presales guide. You should have
already determined your system requirements and purchased the appropriate equipment and
software before reading this document.
The instructions in this book assume knowledge of the SolarisTM Operating System (Solaris OS)
and expertise with the volume-manager software that is used with Sun Cluster software.
Typographic Conventions
The following table describes the typographic conventions that are used in this book.
5
Preface
AaBbCc123 The names of commands, files, and directories, Edit your .login file.
and onscreen computer output
Use ls -a to list all files.
machine_name% you have mail.
aabbcc123 Placeholder: replace with a real name or value The command to remove a file is rm
filename.
AaBbCc123 Book titles, new terms, and terms to be Read Chapter 6 in the User's Guide.
emphasized
A cache is a copy that is stored
locally.
Do not save the file.
Note: Some emphasized items
appear bold online.
Shell Prompt
C shell machine_name%
Related Documentation
Information about related Sun Cluster topics is available in the documentation that is listed in
the following table. All Sun Cluster documentation is available at http://docs.sun.com.
6 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Preface
Topic Documentation
Hardware installation and Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS
administration
Individual hardware administration guides
Data service installation and Sun Cluster Data Services Planning and Administration Guide for Solaris
administration OS
Individual data service guides
Data service development Sun Cluster Data Services Developer’s Guide for Solaris OS
Command and function references Sun Cluster Reference Manual for Solaris OS
Sun Cluster Data Services Reference Manual for Solaris OS
Sun Cluster Quorum Server Reference Manual for Solaris OS
For a complete list of Sun Cluster documentation, see the release notes for your release of Sun
Cluster software at http://docs.sun.com.
7
Preface
Getting Help
If you have problems installing or using Sun Cluster software, contact your service provider and
supply the following information.
■ Your name and email address (if available)
■ Your company name, address, and phone number
■ The model number and serial number of your systems
■ The release number of the Solaris OS (for example, Solaris 10)
■ The release number of Sun Cluster (for example, Sun Cluster 3.2)
Use the following commands to gather information about your system for your service
provider.
Command Function
8 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
1
C H A P T E R 1
The Sun Cluster Quick Start Guide for Solaris OS provides an example of how to install and
configure a specific Sun Cluster configuration. These guidelines and procedures are SPARC®
specific but can be extrapolated for x86 based configurations. These example procedures can
also be used as a guideline to configure other hardware and software configuration
combinations, when used in conjunction with the SunTM Cluster hardware, software, and data
service manuals.
Perform these procedures in the order that they are presented in this manual.
9
Configuration Specifications and Assumptions
Hardware Configuration
The procedures in the Sun Cluster Quick Start Guide for Solaris OS assume that the cluster
consists of the following hardware and that the server installation is already performed.
TM
Two Sun Fire V440 servers At least 2 Gbytes of memory Sun Fire V440 Server
Installation Guide
Two internal disks
One Sun StorEdgeTM 3510 FC Twelve 73-Gbyte physical drives Sun StorEdge 3000 Family
RAID array with dual Installation, Operation, and
controllers Service Manual, Sun
StorEdge 3510 FC Array
One Sun UltraTM 20 One QGE card, for connection to the public Sun Ultra 20 Workstation
workstation network Getting Started Guide
(819–2148)
Software Configuration
The procedures in the Sun Cluster Quick Start Guide for Solaris OS assume that you have the
following versions of software to install.
10 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Configuration Specifications and Assumptions
Sun JavaTM Availability Suite Sun Cluster 3.2 core software Cluster Control Panel (cconsole)
software
Sun Cluster Manager
Oracle 10gR2
Note – The IP addresses in the following table are for example only and are not valid for use on
the public network.
The following addresses are used for communication with the public-network subnet
192.168.10.
192.168.10.2 phys-moon
The following addresses are used for communication with the management-network subnet,
192.168.11.
192.168.11.2 phys-moon-11
Procedure Assumptions
The procedures in this manual were developed with the following assumptions:
■ Name service - The cluster uses a name service.
■ Shell environment - All commands and environment setup in this manual are for the C
shell environment. If you use a different shell, replace any C shell-specific information or
instructions with the appropriate information for your preferred shell environment.
■ User login - Unless otherwise specified, perform all procedures as superuser.
■ cconsole - These procedures assume that you are using the cconsole utility. Use this utility
to access individual nodes and to issue commands to all nodes simultaneously by using the
cconsole master window.
■ Command prompts - The phys-schost-N# prompt indicates that you type the command
in the cconsole master console window. This action issues the command on both cluster
nodes simultaneously.
The phys-sun#, phys-moon#, and admincon# prompts indicate that you type the command
only in the console window for the specified machine.
12 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Hardware
TABLE 1–5 Task Map: Creating a Sun Cluster Quick Start Configuration
Task Instructions
1. Connect the administrative console, cluster nodes, and storage array. “Installing the Hardware” on page 13
Configure the storage array.
2. Install the Solaris OS and Cluster Control Panel software on the “Installing the Software” on page 17
administrative console. Install the Solaris OS and Sun Cluster software and
patches on the cluster nodes. Configure the Solaris OS and IPMP groups.
Create state database replicas. Mirror the root file system. Set up the
Oracle system groups and user.
3. Establish the cluster and verify the configuration. “Configuring the Cluster” on page 28
4. Configure Solaris Volume Manager and create disk sets. “Configuring Volume Management” on page 29
5. Create the cluster file system and the highly available local file systems. “Creating File Systems” on page 32
6. Configure the Apache HTTP Server software. Install and configure “Installing and Configuring Application Software” on
Oracle software. page 34
7. Use Sun Cluster Manager to configure Sun Cluster HA for Apache, Sun “Configuring the Data Services” on page 39
Cluster HA for NFS, and Sun Cluster HA for Oracle.
The following figure illustrates the cabling scheme for this configuration.
Public Network
Node Node
Console
Storage
Management Network
14 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Hardware
Node Node
Switch
Switch
The use of switches in a two-node cluster permits ease of expansion if you decide to add more
nodes to the cluster.
2 On each cluster node, connect from ce1 and ce5 to the public-network subnet.
3 On each cluster node, connect from ce2 and ce6 to the management network subnet.
2 As the following figure shows, use fiber-optic cables to connect the storage array to the cluster
nodes, two connections for each cluster node.
One node connects to a port on host channels 0 and 5. The other node connects to a port on
host channels 1 and 4.
Node A
Node B
FIGURE 1–3 Sun StorEdge 3510 FC RAID Array Connection to Two Nodes
1 Create one global hot-spare drive from the unused physical drive.
a. For redundancy, distribute the physical drives that you choose for each logical drive over
separate channels.
b. Add six physical drives to one logical drive and assign the logical drive to the primary
controller of the storage array, ports 0 and 5.
16 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Software
c. Add five physical drives to the other logical drive and assign the logical drive to the
secondary controller, ports 1 and 4.
4 Map each logical drive partition to a host logical unit number (LUN).
Oracle LUN0
NFS LUN1
Apache LUN2
2 Configure the preinstalled Solaris 10 11/06 software, if you have not already done so.
For more information, see the Sun Ultra 20 Workstation Getting Started Guide (819–2148).
4 Download and apply any Solaris 10 patches by using Sun Update Connection.
5 Load the Java Availability Suite DVD-ROM into the DVD-ROM drive.
7 Install software packages for the Cluster Control Panel and man pages.
admincon# pkgadd -d . SUNWccon SUNWscman
8 Change to a directory that does not reside on the DVD-ROM and eject the DVD-ROM.
host# cd /
host# eject cdrom
9 Create an /etc/cluster file that contains the cluster name and the two node names.
admincon# vi /etc/clusters
sccluster phys-sun phys-moon
10 Create an /etc/serialports file that contains both node names and the hostname and port
number that each node uses to connect to the management network.
admincon# vi /etc/serialports
phys-sun phys-sun 46
phys-moon phys-moon 47
18 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Software
11 Add the Sun Cluster PATH and MANPATH to the .cshrc user initialization file.
■ To the PATH entry, add /opt/SUNWcluster/bin.
■ To the MANPATH entry, add /opt/SUNWcluster/man and /usr/cluster/man.
Note – If your system comes with the Solaris OS preinstalled but does not meet Sun Cluster
software installation requirements, perform this procedure to reinstall Solaris software to meet
installation requirements.
1 Add all public hostnames and logical addresses for the cluster to the naming service.
Note – The IP addresses in this step are for example only and are not valid for use on the public
network. Substitute your own IP addresses when you perform this step.
192.168.10.1 phys-sun
192.168.10.2 phys-moon
192.168.10.3 apache-lh
192.168.10.4 nfs-lh
192.168.10.5 oracle-lh
192.168.10.6 admincon
192.168.11.1 phys-sun-11
192.168.11.2 phys-moon-11
192.168.11.3 se3510fc
192.168.11.4 admincon-11
For more information about naming services, see System Administration Guide: Naming and
Directory Services (DNS, NIS, and LDAP).
Use the cconsole utility to communicate with each individual cluster node or use the master
window to send commands to both nodes simultaneously.
5 Boot phys-sun.
■ If the system is new, turn on the system.
■ If the system is currently running, shut down the system.
phys-sun# init 0
b. Assign the alias name rootdisk to the disk that you chose.
ok nvalias rootdisk Control-Y
The Control-Y keystroke combination enters the disk name that you chose from the
show-disks menu.
d. Repeat the preceding steps to identify and assign the alias name backup_root to the
alternate boot disk.
20 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Software
e. Set the boot-device environment variable to the aliases for the default boot disk and
backup boot disk.
ok setenv boot-device rootdisk backup_root
For more information, see OpenBoot 4.x Command Reference Manual.
Prompt Value
Automatic reboot No
■ Set the following partition sizes and file-system names, if not already set:
1 2 Gbyte swap
5 2 Gbyte /var
12 On both nodes, download and apply any Solaris 10 patches by using Sun Update Connection.
2 Display the settings for the umask and the environment variables.
phys-X# umask
phys-X# env | more
22 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Software
2 On both nodes, update the /etc/inet/ipnodes file with all public hostnames and logical
addresses for the cluster.
Except for the loghost entries, these entries are the same on both nodes.
Note – The IP addresses in this step are for example only and are not valid for use on the public
network. Substitute your own IP addresses when you perform this step.
phys-X# vi /etc/inet/ipnodes
192.168.11.1 phys-sun-11
192.168.11.2 phys-moon-11
192.168.11.3 se3510fc-11
192.168.11.4 admincon-11
192.168.11.1 phys-sun-11
192.168.11.2 phys-moon-11
192.168.11.3 se3510fc-11
192.168.11.4 admincon-11
3 On both nodes, ensure that the following kernel parameters are set to at least the minimum
values that Oracle requires.
b. If no kernel parameters are set, or if any kernel parameters are not set to the minimum
required value for Oracle as shown in the following table, set the parameter.
phys-X# projmod -s -K "parameter=(priv,value,deny)" default
process.max-sem-nsems 256
project.max-sem-ids 100
project.max-shm-ids 100
project.max-shm-memory 4294967295
These settings are the minimum required values to support the Oracle software in a Sun Cluster
Quick Start configuration. For more information about these parameters, see the Oracle10g
Installation Guide.
24 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Software
6 Reboot the node to remount the newly mirrored root (/) file system.
phys-sun# init 6
26 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing the Software
1 On phys-sun, load the Java Availability Suite DVD-ROM in the DVD-ROM drive.
For more information about using the Java ES installer program, see the Sun Java Enterprise
System 5 Installation Guide for UNIX.
3 Follow the onscreen instructions to install the Sun Cluster framework packages.
Language Support Choose any languages that you want to install in addition to English.
Installation Type Answer no when asked if you want to install the full set of Java ES
software.
Component Selection Choose Sun Cluster and Sun Cluster Agents. Do not deselect Sun
Cluster Manager. Confirm your selection when prompted.
Follow the onscreen instructions to install the following data service
packages:
■ Sun Cluster HA for Apache
■ Sun Cluster HA for NFS
■ Sun Cluster HA for Oracle
Shared Component Upgrades Required Accept upgrade of the list of shared components.
After the installation is finished, the installer program provides an installation summary.
This summary enables you to view logs that the program created during the installation. These
logs are located in the /var/sadm/install/logs/ directory.
4 Change to a directory that does not reside on the DVD-ROM and eject the DVD-ROM.
host# cd /
host# eject cdrom
6 On both nodes, use Sun Update Connection to download and apply any needed patches.
2 Create the Oracle Inventory group, oinstall, and the database administrator group, dba.
phys-X# groupadd oinstall
phys-X# groupadd dba
2 Type the number that corresponds to the option for Create a new cluster or new cluster node
and press the Return key.
The New Cluster and Cluster Node Menu is displayed.
3 Type the number that corresponds to the option for Create a new cluster and press the Return
key.
The Typical or Custom Mode menu is displayed.
4 Type the number that corresponds to the option for Typical and press the Return key.
28 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Configuring Volume Management
Note – The adapter names that are used in the following table are arbitrarily selected for this
example only.
Cluster Name What is the name of the cluster that you want to establish? sccluster
Cluster Transport Adapters What are the names of the two cluster transport adapters that attach the ce0, ce9
and Cables node to the private interconnect?
The scinstall utility configures the cluster and reboots both nodes. It also automatically
creates a link-based multiple-adapter IPMP group for each set of public-network adapters in
the cluster that use the same subnet. The cluster is established when both nodes have
successfully booted into the cluster. Sun Cluster installation output is logged in a
/var/cluster/logs/install/scinstall.log.N file.
6 From phys-sun, verify that the nodes and the quorum device are successfully configured.
If the cluster is successfully established, you will see output similar to the following.
phys-sun# clquorum list
d5
phys-sun
phys-moon
a. Make phys-sun the primary node for the Apache and NFS data services.
phys-sun# metaset -s nfsset -a -h phys-sun phys-moon
phys-sun# metaset -s apacheset -a -h phys-sun phys-moon
b. Make phys-moon the primary node for the Oracle data service.
phys-sun# metaset -s oraset -a -h phys-moon phys-sun
2 Verify that the configuration of the disk sets is correct and visible to both nodes.
phys-X# metaset
Set name = nfsset, Set number = 1
...
Set name = apacheset, Set number = 2
...
Set name = oraset, Set number = 3
...
30 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Configuring Volume Management
Data Service LUN Name Raw Disk Device Name DID Name
6 Repeat the process to add LUN1 to the NFS disk set nfsset.
phys-sun# cldevicegroup switch -n phys-sun nfsset
phys-sun# metaset -s nfsset -a /dev/did/rdsk/d4
phys-sun# metaset -s nfsset
7 Repeat the process to add LUN2 to the Apache disk set apacheset.
phys-sun# cldevicegroup switch -n phys-sun apacheset
phys-sun# metaset -s apacheset -a /dev/did/rdsk/d5
phys-sun# metaset -s apacheset
nfsset/d1 -m nfsset/d11
nfsset/d11 1 1 /dev/did/rdsk/d4s0
oraset/d2 -m oraset/d12
oraset/d12 1 1 /dev/did/rdsk/d5s0
oraset/d0 -p oraset/d2 3G
oraset/d1 -p oraset/d2 3G
2 From phys-sun, take ownership of each of the disk sets and activate their volumes.
phys-sun# cldevicegroup switch -n phys-sun apacheset
phys-sun# metainit -s apacheset -a
32 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Creating File Systems
3 For the Oracle home directory and database directory, set the owner, group, and mode.
b. Make the Oracle directories writable only by the owner and the group.
phys-X# chmod -R 775 /oracle/oracle/product/10.2.0
phys-X# chmod -R 775 /oradata/10gR2
4 On each node, add an entry to the /etc/vfstab file for each mount point.
Note – Only the cluster file system for Apache uses the global mount option. Do not specify the
global mount option for the local file systems for NFS and Oracle.
phys-X# vi /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/apacheset/dsk/d0 /dev/md/apacheset/rdsk/d0 /global/apache ufs 2 yes global,logging
/dev/md/nfsset/dsk/d1 /dev/md/nfsset/rdsk/d1 /local/nfs ufs 2 no logging
/dev/md/oraset/dsk/d0 /dev/md/oraset/rdsk/d0 /oracle/oracle/product/10.2.0 ufs 2 no logging
/dev/md/oraset/dsk/d1 /dev/md/oraset/rdsk/d1 /oradata/10gR2 ufs 2 no logging,forcedirectio
Note – Only the cluster file system for Apache is displayed on both nodes.
phys-sun# mount
...
/global/apache on /dev/md/apacheset/dsk/d0 read/write/setuid/global/logging
on Sun Oct 3 08:56:16 2005
/local/nfs on /dev/md/nfsset/dsk/d1 read/write/setuid/logging
on Sun Oct 3 08:56:16 2005
/oracle/oracle/product/10.2.0 on /dev/md/oraset/dsk/d0 read/write/setuid/logging
on Sun Oct 3 08:56:16 2005
/oradata/10gR2 on /dev/md/oraset/dsk/d1 read/write/setuid/logging/forcedirectio
on Sun Oct 3 08:56:16 2005
phys-moon# mount
...
/global/apache on /dev/md/apacheset/dsk/d0 read/write/setuid/global/logging
on Sun Oct 3 08:56:16 2005
34 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing and Configuring Application Software
ServerType Standalone
ServerName apache-lh
DocumentRoot /var/apache/htdocs
5 Edit the keypass file so that it prints the pass phrase for the encrypted key that corresponds to a
host and a port.
This file will be called with server:port algorithm as arguments. Ensure that the file can print
the pass phrase for each of your encrypted keys when called with the correct parameters.
Later, when you attempt to start the web server manually, it must not prompt you for a pass
phrase. For example, suppose that a secure web server is listening on ports 8080 and 8888, with
private keys for both ports that are encrypted by using RSA. The keypass file could be the
following:
# !/bin/ksh
host=‘echo $1 | cut -d: -f1‘
6 Update the paths in the Apache start/stop script file, /usr/apache/bin/apachect1, if they
differ from your Apache directory structure.
b. Ensure that any logical hostnames or shared addresses that Apache uses are configured and
online.
36 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Installing and Configuring Application Software
For more information about using the Oracle Universal Installer, see the Oracle Database Client
Installation Guide for Solaris Operating System (SPARC 64–Bit).
For more information, see the Oracle Database Client Installation Guide for Solaris Operating
System (SPARC 64–Bit).
6 Change to a directory that does not reside on the DVD and eject the DVD.
phys-sun# eject cdrom
2 Start the creation of the database by using a utility from the following list:
■ The Oracle Database Configuration Assistant (DBCA)
■ The Oracle sqlplus(1M) command
During creation, ensure that all of the database-related files are placed in the /oradata/10gR2
directory.
3 Verify that the file names of your control files match the file names in your configuration files.
38 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Configuring the Data Services
1 Enable access for the Oracle user and password to be used for fault monitoring.
Use the Oracle authentication method to grant to the oracle user authority on the v_$sysstat
view and the v_$archive_dest view.
phys-X# sqlplus "/ as sysdba"
sql> exit;
#
Note – The values that you set in the listener.ora file and in the tnsnames.ora file must be
the same.
3 From the Sun Java Web Console screen, choose the Sun Cluster Manager link.
4 From the Sun Cluster Manager screen, choose Tasks from the sidebar.
2 Follow the prompts to configure a scalable Sun Cluster HA for Apache data service.
Specify the following information. Otherwise, accept the default.
Component Value
When all information is supplied, the wizard creates the data service and displays the
commands that were used. The wizard performs validation checks on all Apache properties.
40 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Configuring the Data Services
2 Follow the prompts to configure a Sun Cluster HA for NFS data service.
Specify the following information. Otherwise, accept the default.
Component Value
Share options
Access permissions rw
nosuid Off
Security Default
Path /local/nfsset
When all information is supplied, the wizard creates the data service and displays the
commands that were used.
2 Follow the prompts to configure the Sun Cluster HA for Oracle data service.
Specify the following information. Otherwise, accept the default.
Component Value
Alert_log_file /oracle/oracle/product/10.2.0/alert_log
Connect_string oracle/oracle-password
Server:Debug_level 1
Listener_name LISTENER
Listener:Debug_level 1
When all information is supplied, the wizard creates the data service and displays the
commands that were used. The wizard performs validation checks on all Oracle properties.
Next Steps Installation and configuration of your Sun Cluster Quick Start configuration is complete.
Information about administering your cluster is available in the following documentation:
Topic Documentation
Hardware Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS
Sun Cluster 3.1 - 3.2 With Sun StorEdge 3510 or 3511 FC RAID Array Manual for
Solaris OS
Data Services Sun Cluster Data Services Planning and Administration Guide for Solaris OS
Sun Cluster Data Service for Apache Guide for Solaris OS
Sun Cluster Data Service for NFS Guide for Solaris OS
Sun Cluster Data Service for Oracle Guide for Solaris OS
42 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Index
A B
adding boot-device environment variable, setting, 21
logical addresses to the ipnodes file, 23 boot devices, alternate boot path, 26
LUNs to disk sets, 30-31
public-network IP addresses
ipnodes file, 23
naming service, 19
C
cable connections
administrative console
to the administrative console, 14
adding
to the cluster nodes, 14-15
to MANPATH, 19
to the Sun StorEdge 3510 FC RAID array, 15-16
to PATH, 19
cconsole command
connecting to the networks, 14
See also Cluster Control Panel software
installing starting, 20
patches, 18 CCP, See Cluster Control Panel software
software, 18-19 ce:ce_taskq_disable environment variable,
specifications, 10 setting, 24
alternate boot path, displaying, 26 cldevicegroup command, taking ownership of disk
Apache software sets, 32
apachectl script, 36 Cluster Control Panel software, installing, 18
configuration file, 35 cluster file systems
configuring, 35-36 creating, 33-34
directives, 35 mounting, 34
documentation, 35 verifying mounts, 34
keypass file, 35 cluster nodes
mod_ssl web site, 35 adding
specifications, 10 to MANPATH, 22
starting, 36 to PATH, 22
stopping, 36 applying patches, 21
verifying configuration changes, 36 configuring, 28-29
automatic reboot, disabling, 20 connecting
to the management network, 15
43
Index
F
file systems
D creating, 33-34
data service software mounting, 34
configuring verifying mounts, 34
Sun Cluster HA for Apache, 40
Sun Cluster HA for NFS, 41
Sun Cluster HA for Oracle, 41-42
installing, 26-27 H
dba system group, creating, 28 help, 8
DID mappings, listing, 30 httpd.conf file, modifying, 35
44 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Index
K N
kernel parameters, Oracle settings, 24 naming service, adding public-network IP
keypass file, creating, 35 addresses, 19
NFS software
setting the version, 25
specifications, 10
L
listing, DID mappings, 30
LOFS, See loopback file system (LOFS)
log files O
Java ES installer program, 27 oinstall system group, creating, 28
45
Index
ORACLE_BASE, setting, 22 Q
ORACLE_SID, setting, 22 quorum devices, verifying, 29
Oracle software
creating
database, 38
dba system group, 28 R
home directory, 28 replicas, creating, 25
root (/) file systems, mirroring, 25-26
oinstall system group, 28
root disk, partitions, 21
oracle user account, 28
password, 28
v$sysstat view, 38
disabling the cssd daemon, 38 S
installing, 36-38 scinstall utility
setting log files, 29
database permissions, 39 starting, 28
directory permissions, 33 servers, See cluster nodes
kernel parameters, 24 setting
specifications, 11 Apache directives, 35
NFS version, 25
ORACLE_BASE environment variable, 22
Oracle kernel parameters, 24
P ORACLE_SID environment variable, 22
partitioning umask, 22
logical drives, 17 Solaris multipathing, enabling, 23
root disk, 21 Solaris software
patches configuring, 23-25
administrative console, 18 installing, 19-21
partitions, 21
cluster nodes, 21
Solaris Volume Manager
PATH
disk sets
adding to the administrative console, 19 adding LUNs, 30-31
adding to the cluster nodes, 22 creating, 30
permissions taking ownership, 32
Oracle database, 39 verifying, 30
Oracle directories, 33 mirroring root (/) file systems, 25-26
public network specifications
adding IP addresses hardware, 10
ipnodes file, 23 administrative console, 10
naming service, 19 Sun Fire V440 servers, 10
connecting Sun StorEdge 3510 FC RAID array, 10
to the administrative console, 14 software, 10-11
to the cluster nodes, 15 Apache software, 10
example addresses, 11-12 NFS software, 10
Oracle software, 11
46 Sun Cluster Quick Start Guide for Solaris OS • February 2008, Revision A
Index
T
technical support, 8
U
umask, setting, 22
Update Connection software, 21
/usr/cluster/bin/cconsole command
See also Cluster Control Panel software
starting, 20
47
48