User Tools

Site Tools


tsm:tsm_tdpvmware711_filerest_lnx

This is an old revision of the document!


TDP for VE file level restore for Linux

Using TDP for VE, you can mount a Virtual Server filesystems, or disks directly on a Data Mover Server, and also map shares (SMB for Windows and NFS for Linux). This operation is done using the Web interface from TDP for VE, also available as plugin the the Vsphere Web interface: https://datamover:9081/TsmVMwareUI

I've a Windows 2008R2 data mover installed with TDP for VE
Windows Data Mover is also configured as Mount Point Server for Windows servers (for file level restore).

To be able to use file level restore on Linux servers, I've installed CentOS 7 x64.

Requisites:

  • linux package lsscsi
  • linux package iscsiadm
  • TSM client for linux 7.1.1 (same version as running on DataMover)

Configure the Linux Mount Point Server

FIXME Use the same TSM ba client package than on main proxy !

Configure the TSM client acceptor, and also start the required services iscsi and nfs-server

[root@luitbackup02 bin]# cat dsm.opt
SERVERName  MPNODE_LUITBACKUP01_MP_LNX

[root@luitbackup02 bin]# cat dsm.sys
SERVERName  MPNODE_LUITBACKUP01_MP_LNX
  NODEName           LUITBACKUP01_MP_LNX
  PASSWORDAccess     generate
  VMCHost            10.1.1.22
  TCPServeraddress   10.1.1.100
  TCPPort            1500
  HTTPPort           1581   ** Must be unique for each node
  COMMMethod         tcpip
  ERRORLOGName       dsmerror.LUITBACKUP01_MP_LNX.log
  ERRORLOGREtention    14,d

[root@luitbackup02 ~]# dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 7, Release 1, Level 1.1 
  Client date/time: 12/31/2014 11:11:32
(c) Copyright by IBM Corporation and other(s) 1990, 2014. All Rights Reserved.

Node Name: LUITBACKUP01_MP_LNX
Session established with server ARWEN: AIX
  Server Version 7, Release 1, Level 1.0
  Server date/time: 12/31/2014 11:11:32  Last access: 12/31/2014 11:06:40

Please enter your user id <LUITBACKUP01_MP_LNX>: 

Please enter password for user id "LUITBACKUP01_MP_LNX": 
tsm> exit
[root@luitbackup02 bin]# cat /etc/systemd/system/dsmcad.service
[Unit]
Description=Start dsmcad TSM client acceptor

[Service]
Type=oneshot
ExecStart=/etc/rc.d/init.d/dsmcad start
ExecStop=/etc/rc.d/init.d/dsmcad stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
[root@luitbackup02 bin]# systemctl enable dsmcad.service
[root@luitbackup02 bin]# systemctl start dsmcad.service
[root@luitbackup02 bin]# ps -ef | grep dsm
root     18402     1  0 14:06 ?        00:00:00 /opt/tivoli/tsm/client/ba/bin/dsmcad
[root@luitbackup02 bin]# systemctl enable nfs-server.service
[root@luitbackup02 bin]# systemctl start nfs-server.service
[root@luitbackup02 bin]# systemctl enable iscsi.service
[root@luitbackup02 bin]# systemctl start iscsi.service

Validate the client config using https://datamover:9081/TsmVMwareUI –> configuration

Before starting the mount operation on the DataMover node

[root@luitbackup02 bin]# lsscsi 
[0:0:0:0]    disk    VMware   Virtual disk     1.0   /dev/sda 
[2:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0 
[root@luitbackup02 bin]# cat /etc/exports
[root@luitbackup02 bin]# df -h
Filesystem                               Size  Used Avail Use% Mounted on
/dev/mapper/centos_luitbackup02-slashlv   16G  4,0G   11G  27% /
devtmpfs                                 1,9G     0  1,9G   0% /dev
tmpfs                                    1,9G   80K  1,9G   1% /dev/shm
tmpfs                                    1,9G   41M  1,9G   3% /run
tmpfs                                    1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda1                                283M  134M  131M  51% /boot

After mount operation on the DataMover node

The mount operation is done directly from Web Interface https://datamover:9081/TsmVMwareUI, select Restore, Restore Points, and select your linux VM to mount. You have to choose in the mount wizard, the Windows primary Mount Proxy Node pair.

[root@luitbackup02 bin]# lsscsi
[0:0:0:0]    disk    VMware   Virtual disk     1.0   /dev/sda 
[2:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0 
[5:0:0:0]    disk    IBM      RecoveryAgent    0.1   /dev/sdb 
[6:0:0:0]    disk    IBM      RecoveryAgent    0.1   /dev/sdc 
[root@luitbackup02 bin]# df -h
Filesystem                               Size  Used Avail Use% Mounted on
/dev/mapper/centos_luitbackup02-slashlv   16G  4,0G   11G  27% /
devtmpfs                                 1,9G     0  1,9G   0% /dev
tmpfs                                    1,9G   80K  1,9G   1% /dev/shm
tmpfs                                    1,9G   41M  1,9G   3% /run
tmpfs                                    1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda1                                283M  134M  131M  51% /boot
/dev/sdb1                                118M  5,0M  104M   5% /tsmmount/tsm_file_level/sourcerer/2014-12-03-23_14_23/Volume1
/dev/mapper/rootvg-hd4                   488M  308M  151M  68% /tsmmount/tsm_file_level/sourcerer/2014-12-03-23_14_23/Volume2
/dev/mapper/rootvg-hd1                   488M  172M  287M  38% /tsmmount/tsm_file_level/sourcerer/2014-12-03-23_14_23/Volume3
/dev/mapper/rootvg-hd10opt               488M  403M   56M  88% /tsmmount/tsm_file_level/sourcerer/2014-12-03-23_14_23/Volume4
/dev/mapper/rootvg-hd3                   488M  2,4M  456M   1% /tsmmount/tsm_file_level/sourcerer/2014-12-03-23_14_23/Volume5
[root@luitbackup02 log]# cat /etc/exports
/tsmmount/tsm_file_level/sourcerer 10.1.1.100(ro,wdelay,nohide,crossmnt,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
[root@luitbackup02 log]# cat /var/lib/nfs/etab
/tsmmount/tsm_file_level/sourcerer      10.1.1.100(ro,sync,wdelay,nohide,crossmnt,secure,root_squash,no_all_squash,no_subtree_check,secure_locks,acl,anonuid=65534,anongid=65534,sec=sys,ro,secure,root_squash,no_all_squash)

Common ERRORS

Unable to dismount the VM's volumes using Web interface

http://www-01.ibm.com/support/docview.wss?uid=swg21473127

C:\ProgramData\Tivoli\TSM\RecoveryAgent\mount

[root@luitbackup02 bin]# systemctl enable dsmcad.service
[root@luitbackup02 bin]# systemctl start dsmcad.service
[root@luitbackup02 nodes]# pwd
/var/lib/iscsi/nodes
[root@luitbackup02 nodes]# ll
total 8
drw------- 3 root root 4096 Dec 30 16:01 sourcerer-hard6disk11-20141203231423
drw------- 3 root root 4096 Dec 30 16:01 sourcerer-hard6disk12-20141203231423
[root@luitbackup02 nodes]# rm -rf *
[root@luitbackup02 send_targets]# ls -lrt
total 4
drw------- 2 root root 4096 Dec 31 10:06 10.1.1.40,3260
[root@luitbackup02 send_targets]# rm -rf 10.1.1.40,3260/
[root@luitbackup02 send_targets]# pwd
/var/lib/iscsi/send_targets

[root@luitbackup02 class]# systemctl stop iscsid.socket 
[root@luitbackup02 class]# systemctl stop iscsid.service
[root@luitbackup02 class]# systemctl start iscsid.service

Unable to mount the VM backup

ERROR ANS3173E The Linux devices failed to mount correctly.
ERROR ANS3101E The mount operation for virtual machine 'Redhat5TIPs Guest' failed with rc = 6833
ERROR ANS3174E (RC6841) The VM mount failed.

http://www-01.ibm.com/support/docview.wss?uid=swg21685119

Check the file C:\ProgramData\Tivoli\TSM\RecoveryAgent\mount\TDP_FOR_VMWARE_MOUNT040.sf on the datamover node.

Most case VM backup has been migrated to TAPE or VTL, while default is DISK
Add the following parameter to C:\Program Files\Tivoli\TSM\baclient\dsm.XXX_LOCAL_MP_WIN.opt

VMSTORAGEType TAPE or VTL
tsm/tsm_tdpvmware711_filerest_lnx.1639614951.txt.gz · Last modified: 2021/12/16 01:35 by manu