Results 1 to 7 of 7
  1. #1
    Newcomer
    Join Date
    Oct 2009
    Location
    Lithuania, Vilnius
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Backup /usr on AIX

    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. #2
    Moderator
    Join Date
    Sep 2002
    Location
    Indiana
    Posts
    2,560
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    You might try /usr/.../* That should remove the need to specify "-subdir"

    -Aaron
    Three things are certain:
    Death, taxes, and lost data.
    Guess which has occurred.

  3. #3
    Senior Member
    Join Date
    Aug 2007
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Another possibility is to use double quotes i.e.: dsmc selective "/usr/*" -subdir=yes

    Regards. Wim.

  4. #4
    Senior Member
    Join Date
    Jun 2006
    Posts
    555
    Thanks
    0
    Thanked 15 Times in 14 Posts

    Default

    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

  5. #5
    Moderator
    Join Date
    Sep 2002
    Location
    Indiana
    Posts
    2,560
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Quote Originally Posted by Efim View Post
    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
    You're right. I spent all morning editing include/exclude lists and had that on the brain.

    -Aaron
    Three things are certain:
    Death, taxes, and lost data.
    Guess which has occurred.

  6. #6
    Member
    Join Date
    Mar 2006
    Location
    France
    Posts
    105
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Quote Originally Posted by TomasR View Post
    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?...
    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

  7. #7
    Newcomer
    Join Date
    Oct 2009
    Location
    Lithuania, Vilnius
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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/*

Similar Threads

  1. ANS1999E Incremental processing of '/usr' stopped
    By benmartins in forum Backup / Archive Discussion
    Replies: 3
    Last Post: 10-02-2007, 06:27 PM
  2. Replies: 0
    Last Post: 07-20-2007, 05:17 PM
  3. HSM and an AIX upgrade AIX 4.3.3ML11 -> AIX 5.2.02
    By schumi in forum Hierarchical Storage Management
    Replies: 3
    Last Post: 08-23-2006, 11:38 AM
  4. Replies: 0
    Last Post: 04-04-2006, 01:16 PM
  5. MUST RESTORE /usr - Need Your Help
    By jvazquez in forum Backup / Archive Discussion
    Replies: 0
    Last Post: 04-30-2004, 11:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •