1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

Backup to new Mgmtclass

Discussion in 'Backup / Archive Discussion' started by dabe, May 17, 2013.

  1. dabe

    dabe New Member

    Joined:
    May 17, 2013
    Messages:
    3
    Likes Received:
    0
    Occupation:
    IT Administrator
    Hi,

    we defined a new Policy domain and Management Class on our TSM-Server (linux) and then we assigned it to a host. But when i run a backup via command line on this host, the backupfiles stored by the default mgmt class. Did we miss somthing in the configuration and how we can backup to this new mgmtclass from commandline?

    Many thanks in advance!


    Dave
     
  2.  
  3. domino

    domino Senior Member

    Joined:
    Nov 16, 2005
    Messages:
    716
    Likes Received:
    32
    Occupation:
    System Engineer
    Location:
    Germany
    adjust config file
    Code:
    include * <new_mgmt>
    or define the <new_mgmt> as default
     
  4. maxdb82

    maxdb82 New Member

    Joined:
    Jul 19, 2010
    Messages:
    12
    Likes Received:
    0
    Sure, you have to bind a specific filesystem to a management class by including it in the inclexcl file, in order to use it.

    Ex:

    INCLUDE "/home/.../*" MC_1MONTH

    If you do not specify a management class all the backupped filesystems will be bound to the default management class.

    If you specify a default management class for the domain, but do not include it in the inclexcl file, the backupped filesystem will be saved with the retention and version of the default management class, but in a query output they will still be bound with the 'DEFAULT' label (making harder to discover their retention).
     
  5. dabe

    dabe New Member

    Joined:
    May 17, 2013
    Messages:
    3
    Likes Received:
    0
    Occupation:
    IT Administrator
    Hi,

    thanks for your reply! But how can i use the incl/excl file on the command line with the dsmc command? Our Developer run often backups from the command line or with batchscripts, for example:

    dsmc incremental /workspace/ -optfile=dsm.opt -subdir=yes -compression=no

    We know there is a option for the archive command (-archmc) like

    dsmc archive /workspace/* -subdir=yes -archmc=archive_10Y

    but we don't know how we can backup with the dsmc backup command to a different Mgmtclass e.g. developer filespaces.

    br Dave
     
  6. tsm_dude

    tsm_dude Senior Member

    Joined:
    Dec 12, 2007
    Messages:
    329
    Likes Received:
    20
    As Domino and maxdb82 state in there reply, you need the includes.
    Perhaps create another dsm.opt called dsm.developer.opt and put the include / mgmt in there.
    Then call it with dsmc -optfile= ./dsm.developer.opt when running backup
    With Archive simply specify your mgmt with archmc=
     
  7. dabe

    dabe New Member

    Joined:
    May 17, 2013
    Messages:
    3
    Likes Received:
    0
    Occupation:
    IT Administrator
    OK, i created a new .opt file with the INCLUDE "/backup/.../*" MGMT_CLASS option, but i get the following output in my logfile:

    ANS1036S Invalid option 'INCLUDE' found in options file '/opt/tivoli/tsm/client/ba/bin/dsm_test.opt'
    at line number : 23



    It seems that the INCLUDE option is not supported in the .opt file.

    Is there another solution to backup from commandline to a different Mgmtclass?

    br Dave
     
  8. smajl

    smajl Senior Member

    Joined:
    Dec 10, 2009
    Messages:
    134
    Likes Received:
    19
    Location:
    Brno
  9. suleman

    suleman New Member

    Joined:
    Oct 8, 2010
    Messages:
    41
    Likes Received:
    0
    Hello All!

    I have aix client and want to backup "/backup/*" with Monthly_MGT_CLASS but not able to do that it always select default management class.

    SErvername TSMMAIN
    COMMMethod TCPip
    TCPPort 1500
    TCPServeraddress xx.xx.xx.xx #node.domain.company.COM
    PASSWORDAccess generate
    passworddir /usr/tivoli/tsm/client/ba/bin64/mainpwd
    NODENAME TSMMAIN_MONTHLY
    include /backup/* MONTHLY_MGT_CLASS

    Please help.

    Thanks in advance.
     
  10. domino

    domino Senior Member

    Joined:
    Nov 16, 2005
    Messages:
    716
    Likes Received:
    32
    Occupation:
    System Engineer
    Location:
    Germany
    try

    include "/backup/.../*" MONTHLY_MGT_CLASS
     
  11. suleman

    suleman New Member

    Joined:
    Oct 8, 2010
    Messages:
    41
    Likes Received:
    0
    Hi domino,

    Thanks for your reply and set as mentioned but no success.

    SErvername TSMMAIN
    COMMMethod TCPip
    TCPPort 1500
    TCPServeraddress xx.xx.xx.xx #node.domain.company.COM
    PASSWORDAccess generate
    passworddir /usr/tivoli/tsm/client/ba/bin64/mainpwd
    NODENAME TSMMAIN_MONTHLY
    include "/backup/.../*" MONTHLY_MGT_CLASS

     
  12. suleman

    suleman New Member

    Joined:
    Oct 8, 2010
    Messages:
    41
    Likes Received:
    0
    Hi,

    I set as follows and able to backup as i wish, don't know what is the reason behind this as i already have clients as previous configuration....???

    SErvername TSMMAIN
    COMMMethod TCPip
    TCPPort 1500
    TCPServeraddress xx.xx.xx.xx #node.domain.company.COM
    PASSWORDAccess generate
    passworddir /usr/tivoli/tsm/client/ba/bin64/mainpwd
    NODENAME TSMMAIN_MONTHLY
    include "/.../*" MONTHLY_MGT_CLASS
     
  13. dbohm

    dbohm New Member

    Joined:
    Oct 14, 2011
    Messages:
    2
    Likes Received:
    0

    This request concerns me a little and let me explain why. I interpret this request as sometimes I want to back up the file using management class A and sometimes I want to back up the file using management class B. What will happen is each time you change the management class the file, including all previous versions of the file if the file is active, will have the management class changed. The question seems to imply that you want to have some versions of a backup file bound to one management class and other versions of the file bound to a different management class but TSM does not work this way.
     
  14. DazRaz

    DazRaz New Member

    Joined:
    Jun 15, 2008
    Messages:
    97
    Likes Received:
    4
    Did you restart your client scheduler? Changes to the .opt file require the scheduler to be restarted so it picks up the changes.
     
  15. suleman

    suleman New Member

    Joined:
    Oct 8, 2010
    Messages:
    41
    Likes Received:
    0
    It is not scheduled, but i restart the dsmcad service so that changes in dsm.sys n dsm.opt files pickup the changes.
     

Share This Page