User Tools

Site Tools


tsm:tsm_tdpve_opt

Typical dsm.opt for TDP VE

TCPServeraddress	tsm01
NODename		VADP01_DM
TCPClientaddress	vadp01
VMCHost			vcenter
PASSWORDAccess		generate
MANAGEDServices		webclient schedule
SCHEDMODE		PROMPTED
SCHEDLOGRETENTION	30 D
ERRORLOGRETENTION	30 D
TCPPort			1500
HTTPPORT		1581
COMMMethod		tcpip
ERRORLOGName		"C:\Program Files\Tivoli\TSM\baclient\dsmerror_VADP01_DM.log"
SCHEDLOGName		"C:\Program Files\Tivoli\TSM\baclient\dsmsched_VADP01_DM.log"

VMCTLMC VMCTLMC          * management class for indexes to improve restore
VMMC    VMWAREDATAMC     * management class for data

vmmaxvirtualdisks 6 * Default: disk larger than 2TB are not backuped, then change to 6TB

VMMAXParallel		10
*VMLimitperdatastor 10
VMlimitperhost 10

*VMCHOST aluluxvcs02
VMVSTORTRANSPORT "HOTADD:NBDSSL:NBD"

*DOMAIN.VMFULL ALL-VM

VMENABLETEMPlatebackups yes
Vmprocessvmwithprdm YES
VMPROCESSVMWITHINDEPENDENT YES

testflag VMBACKUP_UPDATE_UUID   * ASK UUID to Vcenter instead of TSM DB

* INCLUDE will automatically exclude what is not included
INCLUDE.VMDISK LUXFILS* "Hard Disk 1"
INCLUDE.VMDISK LUXSQLS* "Hard Disk 1"
INCLUDE.VMDISK LUXEXCS* "Hard Disk 1"
INCLUDE.VMDISK ARCHLIVE "Hard Disk 1"

* Full VM exclude, you have to specify each disk, * is not working in this case
EXCLUDE.VMDISK LUXS121 "Hard Disk 1"

*INCLUDE.VMTSMVSS LUXEXCS*
*INCLUDE.VMTSMVSS LUXSQLS* options=keepsqllog

*Improve backup with quiescing or without
INCLUDE.VMSNAPSHOTATTEMPTS ALULUXPAOS55 2 0
INCLUDE.VMSNAPSHOTATTEMPTS ALUSPVPAOS56 2 0

Exclude disks from VM backup

EXCLUDE.VMDISK vmname "Hard Disk 3"

If you are backing up through a proxy node and you want to exclude a file from a specific VM, then you need to include the VM name in the exclude list. For example to exclude the temporary internet folder

exclude \\vmname\C:\Users\*\AppData\Local\Microsoft\Windows\INetCache\*

To exclude this folder from every VM, use

exclude \\*\C:\Users\*\AppData\Local\Microsoft\Windows\INetCache\*

To exclude all files and directories on the C: drive for all virtual machines but still backup the root directory entry use:

exclude \\*\c$\*
exclude.dir \\*\c$\*

Having duplicate include.vmdisk/exclude.vmdisk rules for VMware guest disks in the dsm.opt option file will have the unexpected consequence to indefinitely print the included/excluded disk on the output of the command :

'dsmc backup vm vmname -preview'

For example :

Define the following in dsm.opt :
EXCLUDE.VMDISK "vmname" "hard disk 1"
 

running the following command :

>  dsmc backup vm vmname -preview
    IBM Tivoli Storage Manager
    Command Line Backup-Archive Client Interface
      Client Version 6, Release 4, Level 0.0
      Client date/time: <timestamp>
    (c) Copyright by IBM Corporation and other(s) 1990, 2012. All
    Rights Reserved.

    Node Name: DATAMOVER
    Session established with server TSMSERVER: AIX
      Server Version 6, Release 2, Level 5.0
      Server date/time: <timestamp>  Last access: <timestamp>

    Accessing as node: DATACENTER
    <timestamp> [02476 info 'Default'] Initialized channel manager
    <timestamp> [02476 info 'Default'] Current working directory:
    C:\Program Files\Tivoli\TSM\baclient
    <timestamp> [02476 verbose 'ThreadPool'] TaskMax=10, IoMin=1,
    IoMax=21
    Full BACKUP VM of virtual machines 'vmname'.

    Virtual machine: 'vmname' disk: 'hard disk 1' is excluded by
    user.
    Virtual machine: 'vmname' disk: 'hard disk 1' is excluded by
    user.
    Virtual machine: 'vmname' disk: 'hard disk 1' is excluded by
    user.
    ...
  Tivoli Storage Manager Versions Affected: 6.4 on Windows and
  Linux
  Initial Impact: Low
  Additional Keywords: backup vm exclude include domain vmdk

Open a terminal Window as Administrator

C:\Program Files\Tivoli\TSM\baclient>dsmc  backup vm LU11DC01 -preview -optfile=dsm.LU11VADP01_DM.opt
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 7, Release 1, Level 0.1
  Client date/time: 11/06/2014 13:33:05
(c) Copyright by IBM Corporation and other(s) 1990, 2013. All Rights Reserved.

Node Name: LU11VADP01_DM
Session established with server LU11TSM01: AIX
  Server Version 7, Release 1, Level 0.0
  Server date/time: 11/06/2014 13:33:14  Last access: 11/06/2014 13:31:36

Full BACKUP VM of virtual machines 'LU11DC01'.


  1. vmName: LU11DC01
       DomainKeyword:  vm=LU11DC01
       toolsRunningStatus: guestToolsRunning    toolsVersionStatus: guestToolsCurrent
       consolidationNeeded: No

       VMDK[1]Label:   'Hard disk 1' (Hard Disk 1)
       VMDK[1]Name:    '[LU11STW01_DataStore1] LU11DC01/LU11DC01.vmdk'
       VMDK[1]Status:  Included


Total number of virtual machines processed: 1

C:\Program Files\Tivoli\TSM\baclient>

Additionnal options:

Vmnoprdmdisks

This option enables Tivoli Storage Manager to restore configuration information for the pRDM volumes that are associated with a VMware virtual machine, even if the LUNs that were associated with the volumes cannot be found. Because pRDM volumes are not included in virtual machine snapshot, only the configuration information can be restored, and not the data that was on the volumes.

This option does not apply to backups of Microsoft Hyper-V virtual machines.

VMNOPRDmdisks NO/YES

Vmnovrdmdisks

This option enables Tivoli Storage Manager to restore configuration information and data for vRDM volumes that are associated with a VMware virtual machine, even if the LUNs that were associated with the volumes cannot be found.

This option does not apply to backups of Microsoft Hyper-V virtual machines.

VMNOVRDmdisks NO/YES

New on TDP VE 8.1

            .-;----------------------------------------------.   
                V .-vmname1,vmname2----------------------------. |   
>>-DOMAIN.VMFUll----+--------------------------------------------+-+-><
                  +-VM=vmname1,vmname2-------------------------+     
                  +- -VM=vmname1,vmname2-----------------------+     
                  +-ALL-VM-------------------------------------+     
                  +-ALL-WINdows--------------------------------+     
                  +-SCHEDULE-TAG-------------------------------+     
                  +-VMHost=srv1,srv2---------------------------+     
                  +-VMFolder=foldername1,foldername2-----------+     
                  +-VMHOSTCLUSTER=cluster1,cluster2------------+     
                  +-VMDATASTORE=datastore1,datastore2----------+     
                  +-VMRESOURCEPOOL=resourcepool1,resourcepool2-+     
                  +-VMHOSTFOLDER=hostfoler1,hostfoler2---------+     
                  '-VMDATACENTER=datacenter1,datacenter2-------'     

Syntax rules: Multiple keywords must be separated by a ;

Example

domain.vmfull vm=my_vm1;vmfolder=folder1;vmfolder=folder2
domain.vmfull "vm1:vmdk=Hard Disk 1:vmdk=Hard Disk 2:vmdk=Hard Disk 3"
domain.vmfull "vm1:-vmdk=Hard Disk 4"
tsm/tsm_tdpve_opt.txt · Last modified: 2021/01/01 21:25 (external edit)