26.2 Adding a Network Region

Ensuring Global Access to the VOB-Special Cases for UNIX outlines the circumstances that may require you to adjust the registry entry generated for a VOB or view. That section presents some sample mktag commands that fix the storage registry by explicitly specifying, for a VOB or view, the host-local and global access paths. This section addresses the situation in which a single, global pathname to a VOB or view storage directory does not exist for all network hosts that must access it, so you must partition your network into at least two network regions.

NOTE: The most common multiple region scenario involves a mixed network environment of Windows and UNIX hosts. If you are working in, or planning, such an environment, read the remainder of this section to acquaint yourself with the procedure for adding a network region. Then use procedures described in Chapter 7, Configuring VOB and View Access in Mixed Environments, to perform the actual work of registering VOBs and views.

When to Create Additional Regions

There are several aspects of a computer network that may require you to create one or more additional registry regions:

There is another partitioning scenario with a different focus: you want to prevent, not promote, VOB and view sharing. You can create a separate region-or even a separate registry, served by a second registry host-to administer a cluster of hosts for which some or all VOBs and views visible in another region are not registered and, hence, not visible.

Multiple locales. ClearCase supports use of multibyte characters in VOB-tags and view-tags. Because the interpretation of multibyte characters is controlled by a host's locale setting (established on UNIX through the LOCALE environment variable and on Windows using the Regional Options tool in Control Panel), all hosts in a region must use the same locale setting or they will not be able to interpret multibyte VOB-tags and view-tags correctly.

No matter how many regions you have, each ClearCase host can belong to only one region.

Multiple Regions vs. Multiple Registries

Instead of, or in addition to, creating multiple network regions in a single ClearCase registry, you can construct a network with multiple registry hosts, each serving separate clusters of ClearCase hosts that may or may not share VOBs and views. This approach complicates the administration process; it is not recommended unless specific circumstances require it.

The procedures here are intended primarily to support single registry installations and offer only basic guidance for multiple registry (as opposed to multiple region) sites. Some general guidelines are available in the section Multiple Registries.

A Example Using Network Regions

Figure 36 illustrates a mixed-architecture (Windows and UNIX) network. There are two network regions, one for Windows hosts and one for UNIX hosts. Two regions are required because UNIX servers store VOBs and views that must be accessed by all network hosts. In this example, hosts in both regions use the same view-tags, but not the same VOB-tags. Furthermore, each region's hosts access VOB and view storage using different pathnames. Therefore, separate tag registry entries are required.

Figure 36 Sample Network with Two Regions

Procedure for Adding a Network Region

Use this procedure to create one or more additional regions after your first region has been created. This procedure assumes that these conditions are true:

To Create a New Region

Use the ClearCase Administration Console to create a new region (in this example, the region is named dev_nt):

  1. Start the ClearCase Administration Console.

  2. Navigate to the Regions subnode of the ClearCase Registry node.

  3. Click Action > New > Region Tag. This command opens a dialog box in which you create the new region.

You can also use the mkregion command to create region dev_nt:

cleartool mkregion -tag dev_nt -tcomment "Windows ClearCase hosts"

To Move a Host into a New Registry Region

A ClearCase host's default region and registry server are established when ClearCase is installed. To move the host into a different region served by the same registry server:

To Change a Host's Registry Server

To move the host into a region served by a different registry server:

You can verify that the new region assignment is in effect by running the hostinfo command to display the current registry host and network region.

cleartool hostinfo -long

NOTE: If a host has been configured to allow remote administration, you can also use the host node of the ClearCase Administration Console to change the host's region, though you cannot use the ClearCase Administration Console to stop or start ClearCase on a host.

To Create VOB-tags and View-tags in a New Network Region

There are several ways to populate a newly created registry region with VOB-tags and view-tags:

Using mktag

VOB-tags and view-tags are created for the new region using mktag commands of the form:

cleartool mktag -vob -tag vob-tag -region new-network-region
-host host name
-hpath host-local-pathname
-gpath global-pathname
storage-dir

cleartool mktag -view -tag view-tag -region new-network-region
-host host name
-hpath host-local-pathname
-gpath global-pathname
storage-dir

For example, host nt1 in Figure 36 accesses a UNIX VOB through VOB-tag \vob_src, which was created for the dev_nt region with the following command:

cleartool mktag -vob -tag \vob_src -region dev_nt ^
-host saturn ^
-hpath /vobstore/src.vbs ^
-gpath \\saturn\vobstore\src.vbs ^
\\saturn\vobstore\src.vbs

From this point on, each new shared VOB or view created on the network requires a tag entry for each region. That is, if a new VOB or view is created anywhere on the network, and it must be visible to hosts in both the dev_unix and dev_nt regions, you must use the ClearCase Administration Console or an additional mktag command to create a new tag in the second region. For example:

If the New Region Is Served by a Different Registry Host

If the new region belongs to a different ClearCase registry (that is, the region is served by a separate registry host):

Guidelines for Multiple Network Regions