Preparing a Linux server for BMC Digital Workplace Catalog installation
Before you install BMC Digital Workplace Catalog on a Linux server, perform the following tasks as a system administrator with root user permissions. If you are installing BMC Digital Workplace Catalog for a high availability deployment, perform these tasks on each host Linux server.
Before you begin
Review the information in Installation-process-overview-for-BMC-Digital-Workplace-Catalog. Complete the Installation-worksheets-for-BMC-Digital-Workplace-Catalog.
To verify the correct JDK version
Starting from the 20.02 release, you must have Oracle JDK or OpenJDK 11 installed.
1. To check for existing Java installations, run the alternatives command as shown in the following example. On some Linux systems, you can also use update-alternatives with the same syntax.
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/java-11-openjdk/bin/java
2 /usr/lib/jvm/java-1.8.0_92/bin/java
Enter to keep the current selection[+], or type selection number:
2. If multiple Java installations are present, select OpenJDK 11.
To install OpenJDK 11
Install OpenJDK 11 by running the following command:
yum-config-manager --enable rhel-7-server-optional-rpms
yum install java-11-openjdk-devel- Confirm that the location of the OpenJDK 11 folder is represented in the symbolic link /usr/java/latest.
Preparing a server for installation as a non-root user
If you want to install BMC Digital Workplace Catalog as a non-root user, the system administrator with root user access must grant the non-root user account with permission to the folders and files indicated in the following tables. If a file or folder in the tables does not exist on the server, create the file or folder and set its ownership and permissions.
- Folder level permissions
- File level permissions
- To grant permission to a user based on Linux groups
- To install XMLStarlet
Folder level permissions
File level permissions
Grant the permissions in the following table to the non-root user until the installation is complete. Afterward, you can remove these permissions.
To grant permission to a user based on Linux groups
Your IT policy will determine whether you should grant permissions at the owner or group level. BMC recommends that a system administrator with root user permissions grants the permissions at the group level from the command line.
The following steps provide an example of one method for granting access from the command line.
Create a group to assign the permissions that will be granted to all users who are part of the group.
Create a non-root user in the newly created group.
Assign a password to the newly created non-root user.
Changing password for user dwpuser.
New password: (create a secure password)
Retype new password: (repeat the password)
For each file and folder specified in the tables, change the group ownership to the newly created group, and then change the mode to set the specified permissions for the group.
For example, to assign group level permissions to the /opt/bmc folder, run the following commands:
chmod g+rwx /opt/bmc
After the non-root user account has been granted the required permissions to the specified files and folders, you can continue to the next procedure.
To install XMLStarlet
Use the RPM Package Manager:
This installation might require installation of related dependencies.
Installing the Linux system dependencies
Before you install BMC Digital Workplace Catalog on a Linux server, use a user account with root level permissions to download and install the system dependencies (prerequisite libraries that the installer requires).
- To install the Linux system dependencies
- To install libraries if the library package could not be found
To install the Linux system dependencies
Use the following yum command to install the prerequisite Linux system libraries.
After you issue the yum install command, check for console messages that indicate a library could not be installed, for example, "No package compat-libstdc++-33.i686 available."
To install libraries if the library package could not be found
If the console shows libraries that could not be installed, you must find the missing libraries and issue the rpm command to install them. For example, some Linux repositories do not supply the 32-bit versions of the libraries, indicated by i686 in the package name.
Go to www.rpmfind.net and search for the missing library, for example, compat-libstdc++-33.
Search the page for the most recent 32-bit version of the library for your Linux version and architecture, for example, compat-libstdc++-33-3.2.3-72.el7.i686.rpm.
Copy the link to the rpm file.
Install the library onto your server by running the rpm command.
The following example shows a direct installation from a link to a public mirror that serves the library.
...
Preparing... ################################# [100%]
Updating / installing...
1:compat-libstdc++-33-3.2.3-72.el7 ################################# [100%]
If the library is installed successfully, then you can proceed to the next step. Otherwise, troubleshoot your environment with your system administrators.
Verifying space requirements and sticky bit permissions for the temporary folder
The BMC Digital Workplace Catalog installer stores logs and working files in a temporary folder that must have at least 1.5 GB of available space.
- To check the available space in the temporary folder
- To remove sticky bit permissions on the temporary folder
To check the available space in the temporary folder
Run the df -k command with the following syntax to read the amount of free space on a folder:
If the available space is less than 1.5 GB, a system administrator must increase the size of the temporary folder allocation.
To remove sticky bit permissions on the temporary folder
If the installer fails to create a ARSystemInstalledConfiguration.xml file in the /tmp folder, you can try to install BMC Digital Workplace Catalog again after you remove the sticky bit permissions from the /tmp directory.
Configuring the server to improve performance
This section contains guidelines for modifying the server configuration to improve runtime performance.
- To set the limits on the number of processes and open files
- To increase the number of transactions and users using kernel tuning
To set the limits on the number of processes and open files
Verify the number of processes (nproc value) and the open files a process is allowed to run.
To review the currently allowed number of open files that a process can run, run ulimit -Ha to review the hard limit, and ulimit -Sa to review the soft limit.
...
open files (-n) 4096
# ulimit -Sa
open files (-n) 1024
In most cases, the value set by default is sufficient.
To maximize performance, set the number of open files allowed per process to 16,384, or to the maximum value allowed by your system administrator. To set the number, run ulimit -n followed by the value to set.
# ulimit -Ha
...
open files (-n) 16384
# ulimit -Sa
open files (-n) 16384
If the system hangs, collect the Java heap dumps and thread dumps for troubleshooting. For information about collecting Java dumps and thread jumps, refer to KA00101754.
To increase the number of transactions and users using kernel tuning
Consider increasing the value of kernel parameters that affect the Linux server (or any other multithreaded server process). This increase ensures that BMC Digital Workplace Catalog can support the expected volume of transactions and users.
For example, consider increasing the following process features:
Number of threads available to a process.
Available memory—Some components require between 500 MB and 1 GB of memory to run.
Number of associated files or process descriptors—Descriptors should be at least 2.5 to 3 times the number of expected concurrent connections or 1024 (whichever is greater). Examples of connections include user logons and custom APIs.
Contact your system administrator or operating system vendor for more information about kernel tuning.
Where to go from here
Set up only one of the following database engines:
Database engine | Reference |
---|---|
Microsoft SQL Server | |
Oracle |