Installation of SAP Content Server Database
Installation of SAP Content Server Database
SAP Content Server is a standalone component in which a large quantity of electronic documents of any
format and with any content can be stored. The documents can be saved either in one or more MaxDB
instances or in the file system
Environment
This document shows an example of the installation of a Content Server database and its integration into
MSCS.
Resolution
Preparation
1 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
At the moment the usage of multiple MaxDB instances in the Microsoft cluster is not supported. The SAP
MaxDB Database Studio must not be installed in the cluster environment.
1. Installing the Content Server Database using the SAP SWPM provisioning manager
As of SAP Content Server 640 there is a built in service in SWPM for the SAP Content Server.
Start the SAPINST program and select the corresponding installation service.
2 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
In the dialog with the selection of the databases, only one database may be selected for use in the cluster
environment.
Even if the installation will allow to install the Content Server database and Cache Server database at once,
the multiple usage of MaxDB databases in the cluster is not supported!
3 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
In the dialog for the MaxDB software destination select as Global Program Drive the local drive and as Global
Data Drive the cluster disk (in this example it is I: ).
The Private Data Path has to be located on the cluster disk and the server software on the local drive.
However, the installation dialog
provides the same location for the private data and for the server software.
Select here the local drive. This document will show how to migrate the private data to the cluster disk later
after the installation is completed.
4 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
Due to wrong handling of the long passwords within MSCS environment we suggest to use a password with
the maximal length of 8 characters.
5 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
1.4 Defining the locations for the MaxDB data and log volumes
The volumes must be located on the cluster disks. Select the corresponding paths for the volumes (in this
example cluster disks I: and J: are used.)
Use the summary dialog of the SWPM tool to check all entries. Select ‘Next’ to start the installation.
6 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
After the installation is completed follow next steps to migrate the private data path to the cluster disk.
2. Migration of the private data path to the cluster disk after installation
2.1 Checking the installation state with the MaxDB xinstinfo tool
The xinstinfo tool with the database name as option returns the current configuration of the installed software:
The private data path is installed locally and needs to be moved to the cluster disc.
The database must be offline. You can stop it via service console, or using the dbmcli command.
7 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
The SDBUPD tool is located on the MaxDB installation DVD. Beside upgrade tasks it provides the migration
for the private data path.
Change into the directory with MaxDB installation medium. Execute SDBUPD and provide as options
database name and the target location for the private data path.
In this example the private data will be moved to the drive I:. The SAP convention for the private data path of
a MaxDB instance is: <drive>:\sapdb\<DBID>\data
The upgrade tool will ask you for the database manager operator, which is control, and for its password.
8 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
Now the integration of the Content Server database into MSCS can be started.
The following example will show the step by step integration of the previously installed database into the
MSCS environment.
3.1 Node A
The activity begins with the replacement of some MaxDB binaries with the cluster-enabled binaries.
- Stop the database and the communication services
- Create c:\sapdb\SDB\db\noncluster subfolder to store the original binaries and move the original binaries:
dbmsrv.exe, serv.exe, service.exe, strt.exe, stop.exe from C:\sapdb\SDB\db\pgm into this folder.
9 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
- Copy the *_clu.exe binaries from the C:\sapdb\SDB\db\cluster folder into the C:\sapdb\SDB\db\pgm
folder, rename the files removing ‘_clu’ extension.
- After renaming the original file name can only be seen in the properties dialog:
10 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
Next the MaxDB cluster libraries and MaxDB cluster manager executables must be installed. Copy it from
MaxDB cluster directory into Windows cluster system directory:
11 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
Execute from the administration command prompt the command SAPDBMSCSMan.exe –C. You can see
further command options with -help option:
This is done with the command SAPDBMSCSMan.exe -B. The option for this command consists of 4 parts:
- Network name , which can be found in the Networks View in the Cluster Failover Manager. In the current
example it is Cluster Network 3.
- Virtual IP Address of the cluster database server. Virtual IP address is provided by the network
administrator. It is not bounded to any real network device. Any ‘ping’ request will not return a response.
In this example the virtual host name is vhost and the bounded IP is xx.xx.xx.66:
- Network Mask. Which is found in the properties dialog of the corresponding network:
12 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
- Disk resource where the global data of the MaxDB software is installed. The disk resource can be found in
the Storage view of the Cluster Failover Manager:
- Communication Port. This is the port number, where the MaxDB instance specific listener communicates
with the client. It can be found in the output of the MaxDB dbmcli command with inst_enum.
Putting it together there would be following string for the MaxDB group creation: Cluster Network
3,xx.xx.xx.70,255.255.240.0,Cluster Disk 3,7200:
13 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
At the same time, the Cluster Failover Manager will show the MaxDB Cluster Group:
The database resource must be added to the MaxDB group. This is done with the command:
SAPDBMSCSMan.exe -a <DBID>,<ClusterGroupName>
If there are further storages used by the database they should be added with the command
SAPDBMSCSMan -m “ResourceName,ClusterGroupName”. In our case, it is drive J: which is Cluster Disk 4
:
As a result the Cluster Failover Manager lists the SDB resource and one additional storage in the MaxDB
group. Right click on the SDB resource, select properties.
Go to the Dependencies tabulator and make the resource SDB dependent on other resources in this group.
14 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
The integration of the MaxDB instance SDB on the first cluster node is completed. It is important that all
resources except disk resources remain offline.
3.2 Node B
Integration of the MaxDB database on the node B consists of the MaxDB software installation, installation of
the cluster binaries and registration of the database instance.
- Open administration command prompt and change into directory with MaxDB installation.
The MaxDB software will be executed completely on the local drives. The paths for the Global Programs and
Server installation path must be the same as xinstinfo output on the first node.
In the current example the installation command looks like:
15 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
As already done on the first node, the same operations have to be executed on the second node:
- Move MaxDB binaries dbmsrv.exe serv.exe, service.exe, strt.exe, stop.exe from c:\sapdb\SDB\db\pgm
to c:\sapdb\SDB\db\noncluster
- Copy the binaries dbmsrv_clu.exe, serv_clu.exe, service_clu.exe, strt_clu.exe and stop_clu.exe from
c:\sapdb\SDB\db\cluster to c:\sapdb\SDB\pgm\ and rename to them removing the _clu.
- Install MaxDB cluster management software: copy the binaries SAPDBMSCSEx.dll, sapdbmscsman.dll,
SAPDBMSCSMan.exe, SAPDBMSCSRes.dll from c:\sapdb\SDB\db\cluster to c:\windows\cluster\
directory.
3.2.3 Register the MaxDB cluster resource types in the second cluster node
The SDBINST tool installed and registered the software in the local drives. Now the locations of the
GlobalData and private data must be re-registered to the same drive as on the first node.
The MaxDB tool sdbconfig is used for this. The following command will set the registration of the Global Data
16 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
to I:\sapdb\data:
c:\sapdb\programs\bni\sdbconfig IndepData=I:\sapdb\data
The next command will set the private data path registration to I:\sapdb\SDB\data:
For this step it is necessary to move the MaxDB cluster group to the second node ( all resources except
storage are offline!):
xinstinfo on the second node should provide the same information as it would do if the group switched back
to the first node:
17 of 18
MSCS: Manual Installation of SAP Content Server Database in MSCS Environment by Irshad Rather
Take the MaxDB group online and test several failover operations from the Windows failover manager.
18 of 18