IBM TSM Client 5.x install (trial) on your Laptop using KVM Virtual Machines
This article shows how to install IBM Tivoli client software on Linux.
Refer my earlier article on installing TSM server first.
First install the operating system and network interface. I kept the VM with 8GB hard disk and 1 GB RAM.
Un-tar/unzip the TSM server software.
Install the extracted rpm's in following order:
rpm -ivh TIVsm-API.i386.rpm
rpm -ivh TIVsm-API64.rpm
rpm -ivh TIVsm-BA.rpm
cd /opt/tivoli/tsm/client/ba/bin
cp -p ./dsm.sys.smp dsm.sys
and edit dsm.sys to look like below:
SErvername SERVER1
Nodename tsm # use only host part, do not use FQDN of TSM server
COMMMethod TCPip
TCPPort 1500
TCPServeraddress tsm.likwid.com # this is FQDN of TSM server
Domain /home # to backup /home only, use ALL-LOCAL to backup all local folders
Passwordaccess generate
Passworddir /etc/security/adsm
Save this file.
cp -p dsm.opt.smp dsm.opt
Edit above file to look like below:
SErvername SERVER1
Subdir Yes
Create file to hold encrypted password:
mkdir /etc/security/adsm
Add below lines to your /root/.bash_profile file:
export DSM_DIR=/opt/tivoli/tsm/client/ba/bin
export DSM_LOG=/opt/tivoli/tsm/client/ba/bin
export LANG=en_US
export LC_CTYPE=en_US
Add below lines to your /etc/inittab file:
cad::once:/opt/tivoli/tsm/client/ba/bin/dsmcad >/dev/null 2>&1
/usr/bin/dsmcad &
ps -ef | grep dsmcad
The above process should be running.
Now you need to register this client to the TSM server.
Go to your TSM server and give below command at the tsm prompt:
set registration open
Now your server is open to auto-register the client upon first connection.
At the client server run below command:
dsmc
You should get below dialog:
[root@tsmclient bin]# dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 4.0
Client date/time: 11/10/2015 20:20:42
(c) Copyright by IBM Corporation and other(s) 1990, 2012. All Rights Reserved.
Node Name: TSM
Your ID (TSM) is not currently registered with the server.
Enter the following information to set up a new ID:
Please enter a password:
Enter new password for verification:
Enter contact information: my first tsm client by xxxx
Session established with server SERVER1: Linux/x86_64
Server Version 5, Release 5, Level 7.0
Server date/time: 11/10/2015 20:21:39 Last access: 11/10/2015 20:21:39
If all went well, your client is now connected with the TSM server. Congrats!
From TSM client prompt run below command: (you can replace below redhat.repo file with any of your files)
tsm> incr /home/student/redhat.repo
You should get below output:
Incremental backup of volume '/home/student/redhat.repo'
Directory--> 4,096 /home/student [Sent]
Normal File--> 190 /home/student/redhat.repo [Sent]
Successful incremental backup of '/home/student/redhat.repo'
Total number of objects inspected: 8
Total number of objects backed up: 2
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 0
Total number of objects expired: 0
Total number of objects failed: 0
Total number of bytes transferred: 324 B
Data transfer time: 0.00 sec
Network data transfer rate: 52,734.37 KB/sec
Aggregate data transfer rate: 0.10 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:03
First move this file to other folder, or delete it before restoring.
Then, give the rest command as below:
tsm> rest /home/student/redhat.repo
Restore function invoked.
Restoring 190 /home/student/redhat.repo [Done]
Restore processing finished.
Total number of objects restored: 1
Total number of objects failed: 0
Total number of bytes transferred: 214 B
Data transfer time: 0.00 sec
Network data transfer rate: 13,932.29 KB/sec
Aggregate data transfer rate: 0.06 KB/sec
Elapsed processing time: 00:00:03
Check /home/student/redhat.repo, it should have been restored, if all went well.
Enjoy!
Refer my earlier article on installing TSM server first.
Requirements
1. Red Hat Linux 5.x operating system
2. TSM client software version 5.5
3. One virtual machine for tsm server running RHEL 5.x
4. Another virtual machine for tsm client running RHEL 5.x
2. TSM client software version 5.5
3. One virtual machine for tsm server running RHEL 5.x
4. Another virtual machine for tsm client running RHEL 5.x
Downloads
TSM Client software - ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v5r5/Linux/LinuxX86/v554/
Installing TSM Client
First install the operating system and network interface. I kept the VM with 8GB hard disk and 1 GB RAM.
Un-tar/unzip the TSM server software.
Install the extracted rpm's in following order:
rpm -ivh TIVsm-API.i386.rpm
rpm -ivh TIVsm-API64.rpm
rpm -ivh TIVsm-BA.rpm
Configuring the tsm client
cd /opt/tivoli/tsm/client/ba/bin
cp -p ./dsm.sys.smp dsm.sys
and edit dsm.sys to look like below:
SErvername SERVER1
Nodename tsm # use only host part, do not use FQDN of TSM server
COMMMethod TCPip
TCPPort 1500
TCPServeraddress tsm.likwid.com # this is FQDN of TSM server
Domain /home # to backup /home only, use ALL-LOCAL to backup all local folders
Passwordaccess generate
Passworddir /etc/security/adsm
Save this file.
Create client user options
cp -p dsm.opt.smp dsm.opt
Edit above file to look like below:
SErvername SERVER1
Subdir Yes
Create file to hold encrypted password:
mkdir /etc/security/adsm
Add below lines to your /root/.bash_profile file:
export DSM_DIR=/opt/tivoli/tsm/client/ba/bin
export DSM_LOG=/opt/tivoli/tsm/client/ba/bin
export LANG=en_US
export LC_CTYPE=en_US
Add below lines to your /etc/inittab file:
cad::once:/opt/tivoli/tsm/client/ba/bin/dsmcad >/dev/null 2>&1
Starting the TSM client
/usr/bin/dsmcad &
Verify client
ps -ef | grep dsmcad
The above process should be running.
Registering tsm client to tsm server
Now you need to register this client to the TSM server.
Go to your TSM server and give below command at the tsm prompt:
set registration open
Now your server is open to auto-register the client upon first connection.
At the client server run below command:
dsmc
You should get below dialog:
[root@tsmclient bin]# dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 4.0
Client date/time: 11/10/2015 20:20:42
(c) Copyright by IBM Corporation and other(s) 1990, 2012. All Rights Reserved.
Node Name: TSM
Your ID (TSM) is not currently registered with the server.
Enter the following information to set up a new ID:
Please enter a password:
Enter new password for verification:
Enter contact information: my first tsm client by xxxx
Session established with server SERVER1: Linux/x86_64
Server Version 5, Release 5, Level 7.0
Server date/time: 11/10/2015 20:21:39 Last access: 11/10/2015 20:21:39
If all went well, your client is now connected with the TSM server. Congrats!
How to backup a file
From TSM client prompt run below command: (you can replace below redhat.repo file with any of your files)
tsm> incr /home/student/redhat.repo
You should get below output:
Incremental backup of volume '/home/student/redhat.repo'
Directory--> 4,096 /home/student [Sent]
Normal File--> 190 /home/student/redhat.repo [Sent]
Successful incremental backup of '/home/student/redhat.repo'
Total number of objects inspected: 8
Total number of objects backed up: 2
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 0
Total number of objects expired: 0
Total number of objects failed: 0
Total number of bytes transferred: 324 B
Data transfer time: 0.00 sec
Network data transfer rate: 52,734.37 KB/sec
Aggregate data transfer rate: 0.10 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:03
Restoring this file
First move this file to other folder, or delete it before restoring.
Then, give the rest command as below:
tsm> rest /home/student/redhat.repo
Restore function invoked.
Restoring 190 /home/student/redhat.repo [Done]
Restore processing finished.
Total number of objects restored: 1
Total number of objects failed: 0
Total number of bytes transferred: 214 B
Data transfer time: 0.00 sec
Network data transfer rate: 13,932.29 KB/sec
Aggregate data transfer rate: 0.06 KB/sec
Elapsed processing time: 00:00:03
Check /home/student/redhat.repo, it should have been restored, if all went well.
Enjoy!
Comments
Post a Comment