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.

  1. Install the EPEL repository. Run the command:
  2. sudo yum install epel-release
  3. 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.
  4. If fprintd-pam is installed, then you may encounter a conflict with SPX. To avoid this you can uninstall fprintd-pam:
  5. sudo yum remove fprintd-pam -y
  6. Note: If this command displays errors, skip to the next step.
  7. 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.
  8. Open a terminal and type the following:
  9. wget https://downloads.storagecraft.com/spx/CentOS7/storagecraft-repo-latest.rpm -O storagecraft-repo-latest.rpm
  10. sudo yum install storagecraft-repo-latest.rpm -y
  11. Install the kernel headers required for DKMS installation.
  12. sudo yum install kernel-devel-$(uname -r)
  13. 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/
  14. Install DKMS
  15. sudo yum install dkms
  16. Install SPX and the snapshot driver (kernel module) using DKMS:
  17. sudo yum install spx kmod-stcvsm-dkms
  18. 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.
  19. To install only the the snapshot driver (kernel module)
  20. sudo yum install kmod-stcvsm-dkms
  21. 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.
  22. To verify that the latest version of SPX installed, run:
  23. rpm -qi spx
  24. Start the SPX service:
  25. sudo systemctl enable --now spx
  26. Add the current user to the SPX management group:
  27. sudo /usr/bin/gpasswd -a $USER spx
  28. To open the console:
  29. Select Applications > System Tools > ShadowProtect SPX to open the SPX user interface from the GUI
  30. To open the interface from the terminal, use the command:
  31. /opt/StorageCraft/spx/bin/spx_gui

The repo rpm package only needs to be installed once. After that, install subsequent builds by using:

If you get an error message saying there's a conflict with a package, remove it:

And then repeat the install.