To set up Solstice HA 1.3, perform the following steps:
To choose an HA configuration, perform the following steps:
In an HA configuration, you can have one or two logical hosts. One logical host should contain the HA instance owner's physical directory. To choose a logical host to contain the HA instance owner's directory, create a directory under the logical host's filesystem, for example:
where db2inst is the instance owner. Then use HA-NFS (which comes with Solstice HA 1.3) to export that directory to make it highly available.
Do not use the automounter command for this step. The automounter
utility uses loopback virtual file system (LOFS) to mount the directories if
they are local. Solstice HA 1.3 does not support LOFS.
On both machines, NFS-mount the highly available directory /logical_host/home/db2inst from the HA-NFS server for use as the HA instance owner's home directory.
For example, a line in the /etc/vfstab file for the logical host snap and the instance db2inst should look like the following:
snap:/snap/home/db2inst - /export/home/db2inst nfs - yes hard,rw,bg
Create a DB2 instance using the NFS-mounted home directory
as the instance owner's home directory. To create the instance,
use the db2icrt command, which is located in the
DB2DIR/instance directory, where DB2DIR is
Run the db2icrt command from the machine where the home
directory of the instance (INSTHOME) physically resides.
Because the INSTHOME directory is NFS-mounted on all machines, you
only have to run the db2icrt command on one machine.
The syntax of the db2icrt command is:
|Note:||FencedID may not be root or bin.|
When you create an instance, ensure that its primary and secondary groups are different from the Administration Server's primary (SYSADM) group. When you create an instance on the same machine as the Administration Server, its SYSADM group is automatically added to the secondary group list of the Administration Server so that you can use the Control Center to perform administration tasks on that instance.
db2icrt -u db2fenc1 db2inst1
When an instance is created, its name is also added to the list of instances on the system.
The db2icrt command creates the
INSTHOME/sqllib directory, where INSTHOME is the
home directory of the instance owner.
To avoid a potential loss of data if an instance is deleted, you should not create user files or directories under the INSTHOME/sqllib directory, other than those created by DB2. Exceptions are:
To setup the HA instance with Solstice HA, run the hadb2eee.setup program. The program will prompt you for the following information:
When the setup program completes successfully, it does the following:
During this step, the setup program runs itself (the
hadb2eee.setup script) on the other node
A sample hadb2-mpp.cfg file might look like this:
HA-INSTANCE: db2inst1 ON HA-MAINNODE: snap NODE:whirl 0 NODE:whirl 1 NODE:whirl 2 NODE:whirl 3 NODE:snap 4 NODE:snap 5 NODE:snap 6 NODE:snap 7
where HA-INSTANCE is the username of the instance owner, HA-MAINNODE is the name of the logical host which contains the home directory of the instance owner, and NODE binds a database partition server (node) number with a logical host.
You can now start up DB2 by entering the following command:
hareg -y hadb2
After completing the setup of Solstice HA 1.3, go to "Step 7. Create the Administration Server" to continue with the remaining installation steps.
[ DB2 List of Books | Search the DB2 Books ]