Installing SPFS on Linux

Today’s Blog post will explain how to install SPFS and create a standard configuration

Requirements

Before you even get started make sure you have following components installed on your Linux machine:

  • Spectrum Protect API Client 8.1 or higher
  • FuSE library installed

You also need to collect following information about your database environment.

Path to where to store backups

/backup

Owner and permission for backed up files

 

Spectrum Protect address and port number

See /opt/tivoli/tsm/client/ba/bin/dsm.sys

Spectrum Protect credentials

Admin username and password to setup Spectrum Protect

 

Installation

First step is to install SPFS on your Linux machine, which is easiest to do with your normal installation tool.

RedHat/CentOS and SuSE

rpm -i spfs*.rpm

Debian and Ubuntu

dpkg -i spfs*.deb

After the installation do you need to activate the product either via a trial license or the full license key.

By running the getlicense command you will get a system key that Spictra needs to generate a license for you. Send that output to info@spictra.com

getlicense

Configuration

Spectrum Protect Configuration

Create the stanza name in the Spectrum Protect API dsm.opt

echo SERVERNAME SPFS > /etc/spfs/dsm.opt

Create the SPFS dsm.sys file where you insert your Spectrum Protect Server information.

cat >> /opt/tivoli/tsm/client/api/bin64/dsm.sys <<- eof
    SERVERNAME SPFS
    TCPSERVERNAME <your.backupserver.com>
    ERRORLOGNAME /var/log/dsmerror_spfs.log
eof

In the Spectrum Protect Server GUI or CLI you need to create a regular backup-archive node.

dsmadmc -id=<your admin id> -pa=<your admin password> "register node SPFS <node password> domain=<your backup domain>

SPFS Configuration

First we need to create the configuration file for SPFS

cat > /etc/spfs/spfs.opt <<- eof
    MOUNTPOINT /backup
    NODENAME SPFS
    NODEPWDFILE /etc/spfs/TSM.PWD
    OPTIONFILE /etc/spfs/dsm.opt
eof

We need to save the node password in the TSM.PWD file encrypted. 

setpassword /etc/spfs/TSM.PWD <<< <node password>

Let's create the backup directory where your application will send it's data to and where SPFS mount the Spectrum Protect Filesystem.

mkdir /backup
mount.spfs /backup

I hope you found this blog post useful and I wish you a great summer!

#AtYourService
Christian Petersson

Subscribe to blog