Install SPX on RHEL 8 or AlmaLinux 8
Note: SPX supports DKMS, which allows you to build the snapshot driver for the kernel you are using.
- Install the EPEL repository. Run the command:
- sudo dnf install epel-release
- Note: Most CentOS and RHEL Linux installs include the EPEL components. However, if needed, you may manually download and install the EPEL repositories. Go to the Fedora website, https://fedoraproject.org/wiki/EPEL, to get the EPEL package. Then run the above command.
- If fprintd-pam is installed, then you may encounter a conflict with SPX. To avoid this you can uninstall fprintd-pam:
- sudo dnf remove fprintd-pam -y
- Note: If this command displays errors, skip to the next step.
- Install and configure our repo on the system. This only needs to be done once. Just run an update on SPX after defining the repo.
- Open a terminal and type the following:
- wget https://downloads.storagecraft.com/spx/CentOS8/storagecraft-repo-latest.rpm -O storagecraft-repo-latest.rpm
- sudo dnf install storagecraft-repo-latest.rpm -y
- Install the kernel headers required for DKMS installation.
- sudo dnf install kernel-devel-$(uname -r)
- Install DKMS
- sudo dnf install dkms
- Install SPX and the snapshot driver (kernel module) using DKMS:
- sudo dnf install spx kmod-stcvsm-dkms
- Note: The above command line does a clean install of SPX. If SPX and a snapshot driver are already installed, a one-time manual DKMS installation is required.
- To install only the the snapshot driver (kernel module):
- sudo dnf install kmod-stcvsm-dkms
- Important: This assumes the appropriate kernel-devel package has been installed. If it hasn't been installed, CentOS might install kernel-bug-devel, which will cause the snapshot to fail.
- To perform an Agent Only install with snapshot driver (kernel module):
- sudo dnf install spx-agent kmod-stcvsm-dkms
- To verify that the latest version of SPX installed, run:
- rpm -qi spx
- Start the SPX service:
- sudo systemctl enable --now spx
- Add the current user to the SPX management group:
- sudo /usr/bin/gpasswd -a $USER spx
- To open the console:
- Select 'Activities' then Search "SPX" to locate the SPX package
- To open the interface from the terminal, use the command:
- /opt/StorageCraft/spx/bin/spx_gui
The repo rpm package only needs to be installed once. After that, install subsequent builds by using:
- sudo dnf upgrade spx kmod-stcvsm-dkms
If you get an error message saying there's a conflict with a package, remove it:
- sudo dnf remove {package_name}
And then repeat the install.