Pre Process doesn't run

Last post 06-01-2012, 10:52 AM by efg. 3 replies.
Sort Posts: Previous Next
  • Pre Process doesn't run
    Posted: 06-01-2012, 6:35 AM

    Hi all,

    I have an issue when trying to run a pre process with a HP-UX FileSystem IdataAgent. This is what i have configured:

    Under Subclient properties I configured the script path to -> /filesystem1/directory1/directory2/test.sh
    I chmod with 777 permissions to my script 'test.sh'.
    The content of the script is:

    '#!/usr/bin/sh

    env > ./test.out
    exit 0'

    When i run the script from the HPUX commandline it works and generates the file 'test.out' but when i launch the backup from Simpana doesnt' generates de file :(.

    This is the output of Simpana client CVD log:

    '5608 5   06/01 11:09:43 ### [CVipcD] Successfully registered control process for Job [5028:7:1] of type [1].
    5608 5   06/01 11:09:52 ### [CVipcD] Successfully registered control process for Job [5028:7:1] of type [7].
    5608 2b4 06/01 11:32:54 ### hrcrValidateExecutable() - homeDir[/opt/simpana/iDataAgent] cmdFile[ifind]
    5608 2b4 06/01 11:32:54 ### hrcrValidateExecutable() - outBuf[/opt/simpana/iDataAgent/]
    5608 2b4 06/01 11:32:54 ### CvProcess::StartProcess() - Launching "/opt/simpana/iDataAgent/ifind", "ifind -j 5029 -a 2:110 -t 1 -d commserve.domain*commserve*8400*8402 -r 1338541706 -ab 0 -i 1 -cs commserve  -jt 5029:4:1  -mountPath  -cn hpux -vm Instance001".
    5608 5   06/01 11:32:57 ### [CVipcD] Successfully registered control process for Job [5029:4:1] of type [1].
    5608 2b6 06/01 11:34:16 ### hrcrValidateExecutable() - homeDir[] cmdFile[/filesystem1/directory1/directory2/test.sh]
    5608 2b6 06/01 11:34:16 ### hrcrValidateExecutable() - outBuf[]
    5608 2b6 06/01 11:34:16 ### CvProcess::StartProcess() - Launching "/filesystem1/directory1/directory2/test.sh", ""/filesystem1/directory1/directory2/test.sh"  -bkplevel 1 -attempt 1 -job 5029 -cn hpux -vm Instance001".
    5608 2b7 06/01 11:34:17 ### hrcrValidateExecutable() - homeDir[/opt/simpana/iDataAgent] cmdFile[clBackup]
    5608 2b7 06/01 11:34:17 ### hrcrValidateExecutable() - outBuf[/opt/simpana/iDataAgent/]
    5608 2b7 06/01 11:34:17 ### CvProcess::StartProcess() - Launching "/opt/simpana/iDataAgent/clBackup", "clBackup -j 5029 -a 2:110 -t 1 -i 2 -d commserve.domain*commserve*8400*8402 -io 1  -jt 5029:7:1  -numstreams 1   -parent 1 -ab 0 -r 1338543177  -c 7 -maxcolnum 2 -numcol 2  -cn jaen8 -vm Instance001".'

    It seems that Simpana launch the script but definetly it doesn't because the file specified in the script is not created.

    Environment:

    CommServe & MediaAgent = Simpana 9 SP6
    Client = Simpana 8 SP6

     

    Any clues are appreciated.

    Thanks in advance.

  • Re: Pre Process doesn't run
    Posted: 06-01-2012, 7:15 AM

    Hello,

    what's the ' doing  in front of   #!/usr/bin/sh  ?   I'm assuming this single quote (') is not in your actual script right?

    Either way,   the file test.out would've been created in the working directory of the Commvault process that launched your script because you used a relative path ( i.e.    .\    ). Commvault does NOT "cd" into the scripts directory to execute it!

    Have you tried an absolute path for test.out? My guess is that this is your problem.

    e.g. :   env > /tmp/test.out

     

     cheers

  • Re: Pre Process doesn't run
    Posted: 06-01-2012, 7:54 AM

    Jejeje good one! Thanks for your help the issue was not specifying the entire path.

     

    Thanks!

  • Re: Pre Process doesn't run
    Posted: 06-01-2012, 10:52 AM
    • efg is not online. Last active: 09-13-2019, 10:59 AM efg
    • Top 10 Contributor
    • Joined on 02-02-2010
    • CommVault Tinton Falls NJ
    • Master
    • Points 1,678

    I'll bet if you check the /opt/simpana directory you will find the "test.out" file that the script was creating.   Since the "Pre & Post" scripts are executed by the CV services, the CV services execute from the CV install directory (Typically /opt/simpana).  Since you were specifying relative path in your script, it would be creating the file relative to where the CV services start from.

    Hope this helps explain this a little more...


    Ernst F. Graeler
    Senior Engineer III
    Development
The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2019 Commvault | All Rights Reserved. | Legal | Privacy Policy