Install SPX on CentOS 7 or RHEL 7
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 yum 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 yum 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/CentOS7/storagecraft-repo-latest.rpm -O storagecraft-repo-latest.rpm
- sudo yum install storagecraft-repo-latest.rpm -y
- Install the kernel headers required for DKMS installation.
- sudo yum install kernel-devel-$(uname -r)
- If this fails (because it is locked in the vault), you need to manually download the kernel-devel package from the vault: http://archive.kernel.org/centos-vault/
- Install DKMS
- sudo yum install dkms
- Install SPX and the snapshot driver (kernel module) using DKMS:
- sudo yum 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 yum 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 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 Applications > System Tools > ShadowProtect SPX to open the SPX user interface from the GUI
- 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 yum update spx kmod-stcvsm-dkms
If you get an error message saying there's a conflict with a package, remove it:
- sudo yum remove {package_name}
And then repeat the install.