Forum Discussion

Balaji_Subraman's avatar
9 years ago

Sybase backup not starting

Dear All,

we configured to backup the sybase system in netbackup. when we triggered the manuall backup from sybase system side, backup working fine and completed without any errors.

but while trying to start backup from netbackup console, it got cancelled. i found the error message in bphdb log file as below in sybase system.

Your sybase home directory is /sybase/XID. Check the environment variable SYBASE if it is not the one you want!
Using locale name "POSIX" defined in environment variable LANG
Locale name "POSIX" doesn't exist in your /sybase/XID/locales/locales.dat file

Environment variable as below for root user and backup user.

for root user:

xidvsrv:/usr/openv/netbackup/logs/bphdb # locale
LANG=POSIX
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

for backup user

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
 

please help me to resolve the issue and how to make the script to run as backup user.

 

Balaji

  • Hi Marianne,

    Thanks for the reply.

    in sample script su - user lines not mentioned. but after that i found KB https://www.veritas.com/support/en_US/article.000095787 

    now environment variable error resolved.

    Thanks & Regards

    Balaji.

3 Replies

  • Can we assume that the successful backup on the client was run as sybase user? When started on master server, the backup runs as root. So, important that there is a 'su - user ... ' in the script. Look for the sample scripts on the client to see what it should look like.
  • Hi Marianne,

    Thanks for the reply.

    in sample script su - user lines not mentioned. but after that i found KB https://www.veritas.com/support/en_US/article.000095787 

    now environment variable error resolved.

    Thanks & Regards

    Balaji.

  • Hi Marianne,

    thanks for marking the post as solution.

    now i am facing the below error

    CT-LIBRARY error:
            ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.

    it seems user switching to sybase admin is not happening.  i am attaching script file. please check and correct me if anything wrong.