Escolar Documentos
Profissional Documentos
Cultura Documentos
ClearCase 2002.05.00
1 Introduction
This technical note describes the configuration environment used to test the integration of the EMC Celerra
Network Server with IBM Rational ClearCase 2002.05.00 operations. It details the configuration areas required
for a successful integration, where to get additional information, and presents information that you need to
consider when performing ClearCase 2002.05.00 operations with NFS and CIFS.
ClearCase is a software configuration management system developed by IBM Rational Software. This
distributed client/server application manages versions of files and directories by storing them in a database.
ClearCase allows you to track changes to every file and directory, and maintains histories of source code, test
suites, libraries, executables, and documentation.
The audience for this technical note is the installation and configuration specialist familiar with the Celerra and
IBM Rational ClearCase operations.
3 Terminology
Element Files and directories that reside in ClearCase source control.
Storage pools A set of files and directories inside the VOB that can be a source pool or a cleartext pool that
contains element data; or a derived object pool that contains derived objects.
Versioned Object Base (VOB) A repository that stores versions of file elements, directory elements,
derived objects (an intermediate result of the build process under ClearCase control), and metadata.
View An object that provides a work area for one or more users. It allows you to look at a specific version of
elements, files, and directories within a database through a given set of rules.
View tag An object that allows you to access the view network-wide. The name with which users reference a
view.
VOB storage directory The top directory in a directory tree for a VOB.
View storage directory The top directory in a directory tree for a View.
VOB tag An object that enables you to view information on a specific Versioned Object Base.
Platform
Version
Software
Hardware
clearcase_p2002.05.00-8
5.1.9.6
multisite_p2002.05.00-1
Note: For the Windows CCST environment configuration, the following parameter value was changed on the Data
Mover: maxMpxCount=50. This parameter sets the maximum number of commands allowed without
acknowledgement in the Data Mover (i.e., Notify request). The Windows client machine uses this value to limit the
number of commands. The value is returned in the negotiate command. If this parameter is set to the default value
(127) during a Windows CCST session, the following error may occur: Insufficient system resources
exist to complete the requested service.
Go to http://powerlink.emc.com/.
2.
3.
If you are working with a multiprotocol ClearCase environment, UNIX and Windows users and groups must be
mapped to the same UIDs and GIDs either by using local password and group file entries, multiple entries in
NIS, or the UNIX user management extension of a Windows Active Directory.
The following example shows how this mapping was done using local password and group files on the Data
Mover for this testing.
Note: Windows entries contain domain names; in the example below the name of the domain is capitals.
Name
winvobsrvr
unixvobsrvr
winviewsrvr
unixviewsrvr
dm2-ana0
ufscc1
cns_vob_tag
cns_vob.vbs
cns_view_tag
cns_view.vbs
nt_vob_tag
vob_unix_cns.vbs
5.2.1 Create ClearCase VOBs and Views for NFS with Storage on Celerra
The environment for this example assumes the application has VOBs and Views stored on a Celerra on a file
system shared with NFS Version 2 or 3, using either TCP or UDP over IP.
Notes for this example:
sh shell is used.
The storage pathname must be a valid pathname reachable from every ClearCase host in the network. In this
example, /net was used.
Note: The /net is the automount point for all the Data Movers clients in the network. A UNIX share can be accessed
by /net/<hostname>. If a Data Mover or the file system is changed, the storage pathname for the VOBs and/or
Views may no longer be valid. This will require a VOB relocation operation. The simplest way to make the storage not
dependent on the name of the Data Mover or file system is to create a separate automount point. Refer to section 5.3.1
for details.
The following command creates a VOB running on the local host unixvobsrvr with storage on a Celerra:
$ STGPATH=/net/dm2-ana0/ufscc1/cns_vob.vbs
$ cleartool mkvob c test tag /cns_vob_tag host \
unixvobsrvr hpath $STGPATH gpath $STGPATH $STGPATH
The following command creates a dynamic View running on the local host unixviewsrvr with storage on a
Celerra:
$ STGPATH=/net/dm2-ana0/ufscc1/cns_view.vws
$ cleartool mkview tag cns_view_tag host unixviewsrvr hpath \
$STGPATH gpath $STGPATH $STGPATH
5.2.2 Create ClearCase VOBs and Views for CIFS with Storage Located on a
Celerra
The environment for this example assumes Views are stored on a Celerra, on a file system shared with CIFS.
Notes for this example:
The storage pathname must be a valid pathname reachable from every ClearCase host in the network. In this
example, the UNC pathname notation was used.
The following command creates a VOB running on the local host winvobsrvr with storage on a Celerra:
C:\> set STGPATH=\\dm2-ana0\ufscc1\cns_view.vws
C:\> cleartool mkview c test tag cns_view_tag host winviewsrvr hpath \
%STGPATH% gpath %STGPATH% %STGPATH%
The following command creates a dynamic View running on the local host winviewsrvr with storage on a
Celerra:
C:\> set STGPATH=\\dm2-ana0\ufscc1\cns_view.vws
C:\> cleartool mkview c test tag cns_view_tag host winviewsrvr hpath \
%STGPATH% gpath %STGPATH% %STGPATH%
Note: You can use the syntax in the example in a .bat file.
Sharing of the same directories and files across UNIX and Windows environments.
Eliminating the need for third-party NFS software on Windows and third-party CIFS software on UNIX.
The following command creates a Windows VOB tag for a UNIX VOB:
C:\>set GPATH=\\dm2-ana0\ufscc1\vob_unix_cns.vbs
C:\>set HPATH=/net/dm2-ana0/ufscc1/vob_unix_cns.vbs
C:\>cleartool mktag vob tag /nt_vob_tag host unixvobsrvr \
%HPATH% -gpath %GPATH% %GPATH%
auto_ccstg
That entry refers to the indirect map /etc/auto_ccstg that specifies the mount point for the storage:
ccstg
dm2-ana0:/ufscc1/&
When the directory /ccstg is accessed, the file system ufscc1 on dm2-ana0 will be automatically mounted. A
Data Mover or file system name change will be done only in the auto_ccst. The VOB and Views pathnames
will not change, thus avoiding VOB/View relocation.
If a different NFS protocol version is used by the client, a different option may be specified in the auto_ccst
map. The following example shows the file system ufscc1 mounted with NFS v2 UDP.
ccstg
-proto=udp,vers=2 dm2-ana0:/ufscc1/&
5.3.4 Antivirus
During testing, a file with a test virus was checked in. The virus was detected and removed by the antivirus
software. This behavior is the same as a native file server. If the antivirus software removes a VOB component
because of infection, the user may have issues that require a restore of the VOB. For this reason, EMC does not
recommend the use of antivirus software with ClearCase.
2.
3.
Monitor the output of the command nas_fs -i ufscc1_snap1 and verify that the remainder value is
zero.
4.
On the VOB server, lock the entire VOB: $ cleartool lock vob:<vob-cfs-tag>
5.
Wait for the command to complete. Note that the VOB is not accessible until it is unlocked.
6.
On the Control Station, turn the mirror off: $ nas_fs -M off ufscc1_snap1
7.
8.
9.
After the snapshot has completed, the file system ufscc1_snap1 can be mounted, potentially on a different
Data Mover, and is available for backup or other nonproduction purposes such as testing.
You can use the TimeFinder/FS feature to recover from a VOB corruption. The following example is a summary
of the main steps to take if the VOB is corrupted and the snapshot ufscc1_snap1 contains a good copy of
the VOB.
1.
On the VOB server, umount the corrupted VOB: $ cleartool umount <vob-cfs-tag>
2.
On the VOB server, lock the corrupted VOB: $ cleartool lock vob: <vob-cfs-tag>
3.
ufscc1_snap1 -R -F
4.
5.
For testing with SnapSure on CIFS and NFS, the fs_ckpt refresh command was run with no impact to
ClearCase operations during file system pause/resume.
ClearCase works with the SnapSure feature of Celerra. The amount of time the VOB is unavailable during
SnapSure operations is minimal. You can further reduce this time by scheduling the fs_ckpt operations with
the lock and unlock of the VOB.
To create a checkpoint for the ufscc1 file system where the VOB resides:
1.
On the Control Station, create the metavolume to host the checkpoint: $ nas_volume -n mtv3 -c d8
2.
On the VOB server, lock the entire VOB: $ cleartool lock vob:<vob-cfs-tag>
3.
4.
5.
After the checkpoint is created, the file system, ufscc1_ckpt1, can be mounted on the same Data Mover and is
available for backup. You can use the SnapSure feature to recover from a VOB corruption. In the following
example we summarize the main steps to take if the VOB is corrupted and the snapshot ufscc1_ckpt1
contains a good copy of the VOB.
1.
On the VOB server, umount the corrupted VOB: $ cleartool umount <vob-cfs-tag>
2.
On the VOB server, lock the corrupted VOB: $ cleartool lock vob: <vob-cfs-tag>
3.
4.
5.
This is an application issue. It is being investigated by Rational. A hotfix is available and referenced by Rational
PMR#83654. As a workaround, the .ckpt directory can be hidden from the NFS client through the following
parameter setting:
param
cfs
showChildFsRoot=0
Note: The Data Mover needs to be rebooted for this parameter to take effect.
A compromise would be to store only the VOB(s), which are the most critical on a file system with cache
disabled while storing the views on a file system with cache enabled (default). Figure 1 shows how different
environment variables affect the balance between performance and high availability.
10
High Availability
QUADRANT II
QUADRANT I
-Celerra Cache
disabled for VOBs
and Views
-VOBs/Views on
different Data Movers
-VOBs/Views on
same Datamover
-No VOB
Backups
-Celerra Cache
enabled for VOBs
and Views
QUADRANT III
QUADRANT IV
High Performance
The above error means the file system where the VOB storage directory resides has run out of space. A possible
solution is to use the nas_fs x command to extend the file system.
Integrating Celerra with Rational ClearCase 2002.05.00
11
This will extend the ufscc1 file system by the size of mtv11 that now can be used without the previous error.
6 Troubleshooting
For troubleshooting information, refer to the following online documentation:
http://www-306.ibm.com/software/rational/support/
7 Related Information
This section lists places where you can find additional information.
Rational ClearCase Administrators Guide (UNIX/Windows), Version 2002.05.00 which can be found
at: http://www-1.ibm.com/support/docview.wss?uid=pub1g126550100
12
13