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 /usr on AIX

Discussion in 'Backup / Archive Discussion' started by TomasR, Nov 5, 2009.

  1. TomasR

    TomasR New Member

    Joined:
    Oct 8, 2009
    Messages:
    11
    Likes Received:
    0
    Location:
    Lithuania, Vilnius
    Hello,
    The system is AIX 6.1
    TSM client version - 5.5.0
    Trying to backup files in /usr from command line:
    dsmc selective /usr/* -subdir=yes and getting error message:
    ANS1102E An excessive number of command line arguments are passed to the program.
    ANS1133W An expression might contain a wildcard not enclosed in quotes.

    OK. When command is modified (removed asterisk):
    dsmc selective /usr/ -subdir=yes it works.

    But I can backup other filesystems in such way - for example:
    dsmc selective /opt/* -subdir=yes

    Can anybody explain what special is in /usr filesystem?...
     
  2.  
  3. heada

    heada Moderator

    Joined:
    Sep 23, 2002
    Messages:
    2,560
    Likes Received:
    168
    Occupation:
    Storage Administrator
    Location:
    Indiana
    You might try /usr/.../* That should remove the need to specify "-subdir"

    -Aaron
     
  4. wim

    wim Senior Member

    Joined:
    Aug 14, 2007
    Messages:
    208
    Likes Received:
    2
    Another possibility is to use double quotes i.e.: dsmc selective "/usr/*" -subdir=yes

    Regards. Wim.
     
  5. Efim

    Efim Senior Member

    Joined:
    Jun 26, 2006
    Messages:
    556
    Likes Received:
    22
    Hi
    I don't know why /opt/* works.

    For backup full file system we use FS name with / : dsmc sel /usr/ -subdir=yes
    for backup directory we can use asterisk for backup all files. dsmc sel /opt/ttt/* -subdir=yes
    I think the right way is using right command syntax.

    heada: I can't test now but I think you can use /.../ only in include/exclude list. In dsmc you can use only wildcard characters (asterisk and question mark).

    Efim
     
  6. heada

    heada Moderator

    Joined:
    Sep 23, 2002
    Messages:
    2,560
    Likes Received:
    168
    Occupation:
    Storage Administrator
    Location:
    Indiana
    You're right. I spent all morning editing include/exclude lists and had that on the brain.

    -Aaron
     
  7. erwanns

    erwanns Member

    Joined:
    Mar 29, 2006
    Messages:
    115
    Likes Received:
    5
    Location:
    France
    The error mesages are very clear. There are two many arguments. As the asterisk (*) is note quoted, it's interpreted by the shell, and not by TSM. So, the shell transmit too many arguments to dsmc (20 max by default). Just count the number of file and directories in the /usr and /opt (not recursively). Or test with ls /usr/* and ls /opt/*. There are much less in /opt, aren't they ? That's the reason why you must quote the joker characters.

    See help message for ANS1102E :
    This command processing routine received more operands than it can use. The rules are:

    * Query can contain only one file specification.
    * Restore and Retrieve can contain two file specifications.
    * Archive, Incremental, and Selective can contain a maximum of 20 file specifications. To bypass the 20-operand limit, use the -REMOVEOPERANDLIMIT option on the failing archive, incremental, or selective command.

    Note: The TSM Client operates much more efficiently if it expands wild cards internally, rather than accepting the expanded list from the shell.

    Regards,
    Erwann
     
  8. TomasR

    TomasR New Member

    Joined:
    Oct 8, 2009
    Messages:
    11
    Likes Received:
    0
    Location:
    Lithuania, Vilnius
    Hi,
    Thanks for the answers.
    I see where was the problem. Now backup script is corrected and works fine.
    But it is still interesting - why other filesystem backup's works in that way???
    for example /home/*, /opt/*
     
: /usr, aix, backup, dsmc, syntax

Share This Page