Taking file level backup of unrecognized characters in Linux servers

On Linux servers, if you have files or directories which contains characters from another language, i.e not english words, the Tivoli Storage Manager client cannot recognize these characters during manual backups, schedule backups, or when trying to view them using the BA Web Client.

If you are taking manual backup through GUI, and if you click the report button on the backup window you will notice that some files could not be backed up because of this reason. During a scheduled backup the dsmsched.log will report ANS4042E errors, and the Tivoli Storage Manager server activity log will report ANE4042E. In addition when attempting to use the Web Client to select files that contain characters from another language they will not be displayed. You will see the following error in the dsmsched.log
ANS4042E Object name ????? contains one or more unrecognized characters and is not valid.

For Manual Backups
Performing Scheduled backups (using scheduler service or dsmcad service), the scheduler and dsmcad services started from the inittab may not have the proper locale environmental settings regardless of the user’s locale settings and if you are running manual backups, the user’s locale environment settings are not able to handle foreign characters. To resolve this issue, you need to change the language settings of the operating system.



If you have to perform manual backups, change the variables LANG and LC_CTYPE to en_US by running following commands before opening BA Client GUI.
export LANG=en_US
export LC_CTYPE=en_US

Remember that these settings will be disabled once you close the current session. 

For Scheduled Backups using dsmc sched
If you are performing scheduled backups using (dsmc sched) and if the scheduler is being started from the inittab a script must be used to change the locale settings.

First create a script for starting scheduler service  for example name dsmcsched.sh
#!/bin/sh
DSM_CONFIG=/opt/tivoli/tsm/client/ba/bin/dsm.opt
DSM_DIR=/opt/tivoli/tsm/client/ba/bin/
DSM_LOG=/opt/tivoli/tsm/client/ba/bin/
LANG=en_US
LC_ALL=en_US
export DSM_CONFIG DSM_DIR DSM_LOG LANG LC_ALL
cd /opt/tivoli/tsm/client/ba/bin
dsmc sched & > /tmp/sched.txt 2> /tmp/schederr.txt

Now you have to make  entry in /etc/inittab as below
tsm2:345:once:/opt/tivoli/tsm/client/ba/bin/dsmcsched.sh > /tmp/dsmcsched.txt 2>&1

Also Read: Types of TSM BA Client Interfaces - Video Tutorials

For scheduled backups using dsmcad
If you are performing scheduled backups using (dsmcad) and if the dsmcad is being started from the inittab,  a script must be used to change the locale settings.

First create a script for starting scheduler service  for example name dsmcad.sh
#!/bin/sh
DSM_CONFIG=/opt/tivoli/tsm/client/ba/bin/dsm.opt
DSM_DIR=/opt/tivoli/tsm/client/ba/bin/
DSM_LOG=/opt/tivoli/tsm/client/ba/bin/
LANG=en_US
LC_ALL=en_US
export DSM_CONFIG DSM_DIR DSM_LOG LANG LC_ALL
cd /opt/tivoli/tsm/client/ba/bin
dsmcad & > /tmp/dsmcad.txt 2> /tmp/dsmcaderr.txt

Now you have to make  entry in /etc/inittab as below
tsm1:345:once:/opt/tivoli/tsm/client/ba/bin/dsmcad.sh > /tmp/dsmcad.txt 2>&1

Any changes made to the inittab might require server restart, so you have to plan accordingly. 

1 Response to "Taking file level backup of unrecognized characters in Linux servers"