Cannot run dsmadmc on TSM server

warineeh

ADSM.ORG Member
Joined
Sep 26, 2007
Messages
13
Reaction score
0
Points
0
TSM server 5.2.2.5 on AIX5.2
The TSM server have ever been used for backing up.and I could run asmadmc command.
Yesterday, when I ran dsmadmc command, it showed error message .
It did not show password prompt to ask password. It was waiting for long time before it was terminate.
I checked dsmserv process. It is OK.
I don't know what happen.

Please help me to suggest for checking other way.

# dsmadmc

IBM Tivoli Storage Manager
Command Line Administrative Interface - Version 5, Release 2, Level 0.0
(c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved.
Enter your user id: admin


ANS1017E Session rejected: TCP/IP connection failure

ANS8023E Unable to establish session with server.
ANS8002I Highest return code was -50.

# ps -ef |grep dsm

root 2543822 1 0 23:48:05 - 4:22 dsmserv quiet
root 2560096 2535580 0 11:21:30 pts/1 0:00 grep dsm
 
Can you:

1.execute command errpt -a on AIX system
2. look at /usr/tivoli/tsm/server/bin/dsmserv.err
3. look at /usr/tivoli/tsm/client/ba/bin/dsmerror.log.

Regards

Barbara
 
Error message when I run dsmserv forground

Thank you for your answer

Someone recommend to check TSM server by running "dsmserv" command
when I run dsmserv command, It shown

Unable to open file /usr/tivoli/tsm/server/bin/backup.dsm.
Cannot open or remove a file containing a running program.


how could I resorve this problem?
 
Try
# ps -ef |grep dsm
I'm afraid that you not stop server before using dsmserv.You should kill old process dsmserv and now run dsmserv.
 
Cannot start dsmadmc on server

Thank you for your recommend ka.

The dsmserv process did not show before I will start it again.
Now, I can start dsmserv process. I resolved it by copy backup.dsm from other TSM server.

But I cannot start dsmadmc on TSM server.

# dsmadmc
IBM Tivoli Storage Manager
Command Line Administrative Interface - Version 5, Release 2, Level 0.0
(c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved.

Enter your user id: admin
ANS1017E Session rejected: TCP/IP connection failure
ANS8023E Unable to establish session with server.

ANS8002I Highest return code was -50.
root @ ahor3002 : /usr/tivoli/tsm/client/ba/bin
# ps -ef |grep dsm
root 2506816 17338482 0 10:50:37 pts/1 0:00 grep dsm
root 2551976 1 0 18:10:07 - 0:00 /bin/ksh ./rc.adsmserv
root 17297488 2551976 0 18:10:07 - 3:14 dsmserv quiet


Please help to suggest me ka

Best Regards
:(
 
Copying the backup.dsm from the other TSM server - perhaps was not the correct thing to do. Since it was written for another TSM server.

You need to find out what happened to the backup.dsm file on the original host.
Take a look at your dsmserv.dsk file - and compare it against your OS - perhaps you lost a disk or a disk mount.

If you lost the disk - then you have no other choice but to recreate the DB volume and perform a DB restore.
If the disk was unmounted - then remount it and restart your dsmserv process.

Hope this helps - if not then I'm taking the weekend off :)
 
Hmmm the backup.dsm was never missing. It just couldn't be opened because it was already in use and the dsmserv was already running (proper response would have been to kill the tsm server and try starting it in console mode to see what was wrong).

I think you've just stuffed your server much worse than it was before I'm afraid. You'll probably need to do a database restore of TSM now, as Steven has suggested.
 
Hi,

I agree with Steven and BBB - it is very likely you broke the TSM server by copying the backup.dsm from another server
From your first post it seemed the dsmserv was running correctly

(from this output
# ps -ef |grep dsm
root 2543822 1 0 23:48:05 - 4:22 dsmserv quiet <---- this line
root 2560096 2535580 0 11:21:30 pts/1 0:00 grep dsm
)

All the problem might be in wrong connection options.
Steps to resolve these problems usually are:
1) verify the port the TSM server listens on (1500 by default) - see dsmserv.opt file (tcpport option)
2) try to connect to that port using telnet (on the local machine: telnet 127.0.0.1 1500)
must not say "connection refused"
3) check if the dsmadmc connects to that port (settings in dsm.sys in client directory) - or you can trace it using tcpdump (not sure if it is on AIX by default but there is a equivalent for sure)
4) if all is ok and no connection is established, you should stop the running server using "./rc.adsmserv stop" from appropriate directory or by killing the dsmserv process and then running it again on the foreground (using "./dsmserv" from server directory) - it may be possible there was a "disable sessions all" command issued ....

Now when you copied the backup.dsm file from another server ... well, it depends what the file was - if the DB or Log file - in that case I am not sure how you were able to do it with server running - these files are locked and not overwritable. If it was another file then I do not understand why the file was needed for running the server ... hard to say at this moment
Try my suggestions if you manage to make a connection and then post here any error and the content of dsmserv.opt and dsmserv.dsk files ....

Maybe we can help you then

Harry
 
Last edited:
You say it is running...

I agree check the ports....

Also have you got the webadmin installed? If so it uses a different ip, so try logging on from there...

For future reference (as you are probably now aware ) copying a .dsm is a bad move.
 
Help me to suggest TSM, Please

:redface:Dear everybody
Thank you so much for your recommand

I follow Harry s'Steps to resolve these problems.
1. on /usr/tivoli/tsm/server/bin/dsmserv.opt file. I see TCPPort was set "TCPPort 1500"

* Parameters
* port_addr Specifies the port address. The default is 1500.
* You can specify a value from 1024 to 32767.
* Contact your system administrator for this value.
*
* Examples
TCPPort 1500

2.try to connect to 1500 port on local
# telnet 127.0.0.1 1500. It show trying... about 5 min before it return promt. But i did not show anything.
Trying...


I think this problem is about server port. Is it right?
#netstat
tcp4 364 0 ahor3002.1580 10.100.1.141.1150 CLOSE_WAIT
tcp4 0 0 ahor3002.ssh 10.100.200.109.1237 ESTABLISHED
tcp4 0 0 ahor3002.1500 ahor3002.53718 CLOSE_WAIT

Is it mean my port closed ?

Best Regards
 
more activity

I checked 1500 port. It show
# netstat -a |grep 1500
tcp4 0 0 *.1500 *.* LISTEN
tcp4 0 0 ahor3002.1500 ahor3002.53718 CLOSE_WAIT
tcp4 8 0 ahor3002.1500 ahor3002.53727 CLOSE_WAIT
tcp4 8 0 ahor3002.1500 ahor3002.53741 CLOSE_WAIT
tcp4 8 0 ahor3002.1500 ahor3002.53744 CLOSE_WAIT
tcp4 8 0 ahor3002.1500 ahor3002.53747 CLOSE_WAIT

please help me to verify ka. Thank you so much
 
Hi,

go to step 4)
use rc.adsmserv script to stop the server or kill the process
then start the ./dsmserv process on the foreground (be in /usr/tivoli/tsm/server/bin directory)
If the server starts, try to connect from other computer, check "q stat" for "availability"
Post here the results

Harry
 
You might want to calm down just a bit - take a deep breath and concentrate - if we can imply your current mood - your server has been down for two straight days - and if this is indeed production - you best hurry up - but keep your focus. We'll get you back running.
If this is a test box -= then we all can sit back and assist at your leisure.
 
This is DR server ka.

For step 4

# ./rc.adsmserv
10/01/07 09:48:02 Starting Tivoli Storage Manager Server



It wait for long time But don't show anything.

Please Help me
Thank you so much ka
 
Do as Harry already suggested. Run the dsmserv command in the server directory. You might need to setup a few environment variables first, you'll be able to see them in your rc.adsm file, so get them from there. Eg.

export DSMSERV_ROOT=/path/to/tsm/server
export DSMSERV_DIR=$DSMSERV_ROOT/config
export DSMSERV_CONFIG=$DSMSERV_DIR/dsmserv.opt

Then run

dsmserv
 
Hi,

rc.adsmserv is a control script - you have to tell it what to do
use
"rc.adsmserv stop" to stop the server or use simply "kill <process_ID>"

Hope it helps

Harry
 
Thank you so much for your help.

TSM:TSM>
q stat
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY STATUS
Storage Management Server for AIX-RS/6000 - Version 5, Release 2, Level 2.5

Server Name: TSM
Server host name or IP address: 192.200.9.200
Server TCP/IP port number: 1500
Server URL:
Crossdefine: Off
Server Password Set: Yes
Server Installation Date/Time: 09/04/01 13:19:41
Server Restart Date/Time: 10/01/07 13:14:10
Authentication: On
Password Expiration Period: 9,999 Day(s)
Invalid Sign-on Attempt Limit: 0
Minimum Password Length: 0
WEB Admin Authentication Time-out (minutes): 3,600
Registration: Closed
Subfile Backup: No
Availability: Enabled
Accounting: Off
Activity Log Retention Period: 60 Day(s)
Activity Summary Retention Period: 30 Day(s)
License Audit Period: 30 Day(s)
Last License Audit: 10/01/07 00:00:15
Server License Compliance: Valid
Central Scheduler: Active
Maximum Sessions: 25
Maximum Scheduled Sessions: 12
Event Record Retention Period: 10 Day(s)
Client Action Duration: 5 Day(s)
Schedule Randomization Percentage: 25
Query Schedule Period: 6 Hour(s)
Maximum Command Retries: Client
Retry Period: Client
Scheduling Modes: Any
Log Mode: Normal
Database Backup Trigger: Disabled
BufPoolSize: 262,144 K
Active Receivers: CONSOLE ACTLOG
Configuration manager?: Off
Refresh interval: 60
Last refresh date/time:
Context Messaging: On
Server-free Status: Not Supported
Server-free Batch Size:
Table of Contents (TOC) Load Retention: 120 Minute(s)
Machine Globally Unique ID: f8.2c.1f.82.9d.a8.11.d8.b3.67.08.63.c0.c8.09.c3
Archive Retention Protection: Off

I check IP address. It is incorrect. How could I change this IP?
I could not see IP on dsmserv.opt. What config file could I change IP?
 
when I start dsmserv, It show

ANR8208W TCP/IP driver unable to initialize due to error in using port 1500,
reason code 67.
ANR8191W HTTP driver unable to initialize due to error in using port 1580,
reason code 67.
ANR8295W Shared Memory driver unable to initialize due to error in BINDing to
Port 1510, reason code 67.


Is this problem about port?


:(
 
Dear All

This problem was resolved complete ka.
Your answer could help me for resolving the problem.
Thank you so much

For this problem
First, I could not run "dsmadmc" on this server. then I run "dsmserv".
It was shown

Unable to open file /usr/tivoli/tsm/server/bin/backup.dsm.

So I copied this file from another server. and run "dsmserv" command again. This process is OK. But I could not run "dsmadmc" on this server.

I followed your step.
1. I checked dsmserv.opt . I see TCPPort was set "TCPPort 1500"
2. I checked connection on 1500 port. I could not connect to this port from local.

3. You suggress me for running dsmserv or rc.adsmserv. It's OK.

ANR8208W TCP/IP driver unable to initialize due to error in using port 1500,
reason code 67.
ANR8191W HTTP driver unable to initialize due to error in using port 1580,
reason code 67.
ANR8295W Shared Memory driver unable to initialize due to error in BINDing to
Port 1510, reason code 67


4. I used netstat -r command to check port.

tcp4 0 0 ahor3002.1500 ahor3002.53718 CLOSE_WAIT
tcp4 8 0 ahor3002.1500 ahor3002.53727 CLOSE_WAIT
tcp4 8 0 ahor3002.1500 ahor3002.53741 CLOSE_WAIT


It s port problem. I restart my server, start "rc.admserv" and check port:1500
It s OK

Thank you for your recommand ka.
 
Hi,

that seems to be the root of all evil .... have you got your TCP settings in OS correctly set? Can you log in to that server from remote machine? Can you ping it and ping other machines from it?

Harry


Ahhh, you resolved that - good for you :) Was faster than me typing the next hint :)
 
Last edited:
Back
Top