TSM 6.3: Setup Storage Pool Space And Run The First Backup/Restore


1) By default there are 3 storage group (disk type) in TSM. You need to add the volume into storage group that you are going to use.

Create a folder named backuppool in G: drive, archivepool in I: drive

image

* Define the volume for backuppool and archivepool, f means how many Mege bytes.
def vol backuppool G:\backuppool\bk1.dsm f=10000
def vol archivepool I:\archivepool\arc1.dsm f=10000

image

2) Policy domain is where you can define management class to meet the business requirements. e.g. how how version will be kept, how many days the archive copy will kept. In my example, I will define a policy domain named FILE, which will be used to meet the file server backup needs.

* Define a policy domain named FILE, backretention defines the retention period (days) after a file has been deleted.
define domain FILE desc=”Domain for backup of files” backretention=360

* Define a policy set named NORMAL. One policy domain can have multiple sets, but only one is active.
define policyset FILE NORMAL desc=”The policy for normal requirements”

* Define management class DAILY, MONTHLY, YEARLY
define mgmtclass FILE NORMAL DAILY desc=”Daily management class”
define mgmtclass FILE NORMAL MONTHLY desc=”Monthly management class”
define mgmtclass FILE NORMAL YEARLY desc=”Yearly management class”

* Make DAILY as the default management class in the NORMAIL policy set
assign defmgmtclass FILE NORMAL DAILY

* Define backup/archive copy groups attributes. verexists defines that when a file exists on the client node, retain how many backup versions of the file. retextra defines how many days the extra version will be kept. verd defines that when the file is deleted, how many versions will be kept. retver defines how many days the archived copy will be kept. (In my example, Daily backup keeps for
def copygroup FILE NORMAL DAILY standard type=backup dest=backuppool verexists=7 retextra=30 verd=1 reto=360
def copygroup FILE NORMAL DAILY standard type=archive dest=archivepool retver=31
def copygroup FILE NORMAL MONTHLY standard type=backup dest=backuppool verexists=12 retextra=365 verd=1 reto=365
def copygroup FILE NORMAL MONTHLY standard type=archive dest=archivepool retver=365
def copygroup FILE NORMAL YEARLY standard type=backup dest=backuppool verexists=3 retextra=1095 verd=1 reto=1095
def copygroup FILE NORMAL YEARLY standard type=archive dest=archivepool retver=1095

* Use update command to modify the parameters. e.g I changed the daily reto from 360 to 31.
update copygroup FILE NORMAL DAILY standard type=backup dest=backuppool verexists=7 retextra=31 verd=1 reto=31

image

image

* As mentioned above only one policy set can be active. Activate the policy set.
validate policyset FILE NORMAL
activate policy FILE NORMAL

image

* Update the node client policy domain association. By default it is associated to STANDARD
update node TSM_CLIENT01 domain=FILE

* Check the filespace and storage group usage
q filespace
q stg

image

3) Login into the TSM_Client01 to run a backup job.

image

Select the content then click backup.

image

A detailed report will display once the backup is completed.

image

4) Run a Archive job.

image

image

image

5) Login back to TSM_Sandbox to check the storage group space usage.

image

6) Login to TSM_Client01 to delete the file that just backed up, then launch the BA client.

image

image

image

image

Retrieve process is exactly the same.

Advertisements

38 thoughts on “TSM 6.3: Setup Storage Pool Space And Run The First Backup/Restore

  1. Hello Jackie,
    Installed TSM6.3 on standalone server which can see all SAN LUN which are presented to VMWARE ESX 5.1. Now when I try to take VMbackup from proxy server which is one of VM of TSM server (using Vmware workstation), am not see LAN free backup. what are options for LAN free backup. Do I need seperate proxy for VMware which can see all LUN ? or TSM server can do LAN free backup.

    Thanks,
    Chandrakant

    1. Hi Chandrakant,

      The LAN-Free does not work in your environment, as you missed a few things:
      1) The proxy server needs to have the access to both SAN and the Tape.
      2) The TSM storage agent needs to be installed in the proxy server.

      This article explains it very well – https://www.ibm.com/developerworks/mydeveloperworks/wikis/home/wiki/Tivoli%20Storage%20Manager/page/Recommendations%20for%20Using%20LAN-free%20with%20Tivoli%20Storage%20Manager%20for%20Virtual%20Environments?lang=en

      Thanks,
      Jackie

  2. Thank you Jackie for your post it’s very helpful.
    I’m new to TSM and i would like to backup my data daily weekly and monthly as you mentioned in your post.
    How can i assign the same node to backup it’s data to 3 different management classes you created.
    I want to backup the same folder /opt
    Regards

    1. Good question! Generally, the management class is defined in the Include-Exclude list in the option file. Different file/directory can bind to different management class.

      1. Hi Wissam, TSM is designed for ‘incremental forever’, so you only need to run the daily incremental backup. If you still want to do a weekly/ monthly full ‘backup’, it is actually called archive in TSM (understanding the difference between backup and archive is very important).

        Here is something you can try:
        1) Create a daily BACKUP schedule and a monthly ARCHIVE schedule
        2) Define the management class for different direcotries in include-exclude list in the option file. Use the combination of following options to satisfy your needs:

        exclude.backup
        exclude.archive
        include.backup
        include.archive

  3. Hi Jackie,
    Is it possible to create 3 tape pool on one tape library with 46 slots. I would like to be able to create 3 backup jobs each with different archive period. 10 years, 2 years and 6 months. I want to know which tapes are used for 10 years and which for 2 years. so i replace only the required tapes with new ones.

    1. Hi Wissam, You always ask good questions 🙂 I have never done it before. And I don’t think it is feasible. I don’t see there is a place to allow me to assign the slots to different logic tape libraries.

      And you don’t need to do it that way even it is doable. As TSM tracks the metadata of the data on the tapes. It tells you which tape needs to be moved to offiste place, which needs to be retrieved back to the onsite place.

      Check out this command ‘q drm’ – http://publib.boulder.ibm.com/infocenter/tsminfo/v6/index.jsp?topic=%2Fcom.ibm.itsm.srv.ref.doc%2Fr_cmd_drmedia_query.html

    1. I doubt it. You can assign volume by names to pools. But remember that the pools are associated with tape libraries. The general steps are:
      define path -> define library -> define device -> define stg

      As you only have one physical tape library, to meet your requirements you have to figure out a way to turn this physical tape library into 3 logical tape libraries. Then create a storage pool for each one of them respectively. The difficulty here is how to create the logical tape library.

  4. Hi Jackie,
    it’s true what you sad, there is an option on the physical tape library but there is a limitation on the drives. I have 4 drives. so i can create 2 virtual libraries with 2 drives each.
    any way thank you for your reply.

  5. Hi Jackie,can you pls help out with a post on tape configuration for archive .
    I also need the post on oracle backup on TSM.
    thanks

    1. I don’t have a spare tape library for my Sandbox environment. The process is pretty simple. Basically it has four steps:

      1) Physically connect the device to the server (FC or iSCSI).
      2) Install device drivers for tape library and drives. After that they should be displayed correctly in the device manager.
      3) Run tsmdlst to check device names, it should look like mt4.0.0.5(library),lb4.1.0.5(drive)
      4) Add the libary and drives in TSM:
      define device: def libr …
      define path to library: def path …
      define drives: define drive …
      define path to drives: def path …
      define LTO device class: def devclass LTO …

      I don’t have Oracle server in my Sandbox environment either. I will post one when it is ready.

  6. Hi Jackie Chen,
    I have a problem, I finish backup to tape , and about 3 month later , I want to restore few files , but I can not find it to restore . ( inactive mode not found, too )
    Does it auto detele ?
    Thanks you .

      1. I set deault policy . To fix this problem , how to config policy ? and where ( define domain or define copygroup or ……) I don’t understand clearly the explained of options in 2 this command
        ex : in define domain have option BACKRETention, ARCHRETention
        in define copygroup have option VERExists , VERDeleted, RETExtra,RETOnly

        Thank you !!!

    1. Hi Viet, the learning curve of TSM is a little steep. You have to understand the basic concepts first. In my blog, you should be able to find my TSM training notes. And IBM TSM information center is a useful reference. Also you can use ‘help …’ command to get more information.

  7. i have a tsm server and IBm TS3200 and a disk storage IBM ds5200
    i need your advice please,
    i mapped a lun to my tsm server and i formated the lun to my tsm server
    now i have e:\ only one. 5To.

    what i must doing now for Hierarchy first disk backup -> tape bakup or first disk -> second ->tape backup for external backup.

    may i create an archive backup or just backup pool and then tape backup

    how can i do tape backup please

    please advice me

    1. It does not matter you use disk or tapes or both. You just need to figure out the best way that works in your environment. Read my example, you are able to define the destination (where the data is backed up to) in the copy group.

  8. so for my tape i must create a copy group and it must be archive type or backyp type?
    what it the difference bettwen backup and archive please, it delete the original file (in archive mode)??

  9. Hi,

    im newbei to TSM operation. I have done all your advice at the TSM Server side but i can’t understand that, we have more than storage tape, vtl and disk. How can i select a server’s backup data write to this backup pool?

    Regards,

  10. Hi Jackie,
    I just want to thank and encourage you for your works, very usefull for beginers (like me) and Intermediate Admins.
    When you will be tired and unable to post anything, just remember that you have now an audience 🙂
    (Sorry for my English, I’m french-speaking person)

  11. Hi jackie,
    In my organazation we are facing server out off data storage space,but storage pool only 50% utilised,we are taking clients backup to storage pools not directly to tape,what would be problem.pls help me out of this problem

  12. please can you explain about cluster y we use cluster in tsm…. and what is the difference b/w backup copy group nd archive opy group parameters

  13. This is good info and enough for me to kind of understand the retentions. But I notice you didn’t set a time of when backups would start. Is that separate?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s