When adding media server credentials for OST storage server, error occurs that credentials already exist
Problem
The error that credentials already exists can be encountered either via the GUI after selecting the media server to add the credential to or via the tpconfig command directly on a media server.
tpconfig command syntax to add OpenStorage credentials is: tpconfig -add -storage_server server_name -stype server_type -sts_user_id user_ID [-password password] [-st storage_type]
On UNIX systems, the directory path to this command is:
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is:
install_path\Volmgr\bin\
Error Message
Credentials Already Exist
Cause
One of the possible causes of this issue might be that the vm.conf is a copy from a different server who already had credentials to the storage server. Attempting to add via the GUI runs the tpconfig command on the correct media server which then pulls the media server name from the MM_SERVER_NAME entry in the vm.conf which was a incorrect name.
Solution
Change MM_SERVER_NAME in the vm.conf to reflect the correct server name.
On UNIX systems, the directory path to this file is:
/usr/openv/volmgr/vm.conf
On Windows systems, the directory path to this file is:
install_path\Volmgr\vm.conf