ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ7.5 Installation in Vm ware Servers

Post new topic  Reply to topic Goto page 1, 2  Next
 MQ7.5 Installation in Vm ware Servers « View previous topic :: View next topic » 
Author Message
PurushSCB
PostPosted: Sun Jul 27, 2014 11:32 pm    Post subject: MQ7.5 Installation in Vm ware Servers Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi All,

I installed the MQ 7.5 in VM Server.

List of Issues:
1. Usually while installing the MQSeriesRunTime, the admin id 'mqm' creation has been taken care automatically. But it throws the below error. so i created the id 'mqm' / group manually and installed the rpm's

Creating user mqm
ERROR: Failed to add 'mqm' user:
useradd: group 'mqm' does not exist
error: %pre(MQSeriesRuntime-7.5.0-1.x86_64) scriptlet failed, exit status 6
error: install: %pre scriptlet failed (2), skipping MQSeriesRuntime-7.5.0-1

2. After the installation, i cant run any mqsc commands which shows the below error.
AMQ7077: You are not authorized to perform the requested operations


Is there any steps whcih we need to taken care for VM Ware servers ? please advise.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 28, 2014 12:59 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I have a script that I run before installing MQ on Linux.

It does (amongst a myridad of other things)

creates the mqm group with a defined ID
creates the mqm user with a defined ID
Sets up the Kernel Params
Creates the directory (top level) where the QMGR files will live
Creates the directory (top level) where the QMGR log files will live
sets the permissions for these Directories.

I could add things like putting my user in the mqm group (I can hear the contact admin of teeth already) but notmally, I create a defined user, normally called 'mqadmin' and gives it mqm group membership. I setup the $PATH for it and a few other things.

There are a lot of posts on this forum where people have had similar issues to what you are seeing. Take some time to review them.
Then I can
Code:

su - mqadmin

and be confident that I can do all the MQAdmin things I need from the one account.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Mon Jul 28, 2014 2:12 am    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi Jedi, thanks
After the successfull MQ 7.5 installation, i am not able to run the any admin commands like crtmqm using the mqm id itself.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 28, 2014 2:39 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

PurushSCB wrote:
Hi Jedi, thanks
After the successfull MQ 7.5 installation, i am not able to run the any admin commands like crtmqm using the mqm id itself.


Perhaps you might like to look at the post I made at
PostPosted: Sat Jul 26, 2014 7:17 am

in this thread
http://www.mqseries.net/phpBB2/viewtopic.php?t=68029

You might be encountering the same problem. If you aren't then please show us the errors you are getting.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Mon Jul 28, 2014 3:17 am    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

No issues in the bash profile settings for the id mqm.
Also i didnt found any issues in the lib path / home path permissions.
id details:
id mqm
uid=708(mqm) gid=1603(mqm) groups=1603(mqm)

The same package which i installed in a physical server, it is working fine.

In this VM server[Any thing which requires specifically for VM ?], i manullay created the user mqm and add it it grp mqm. After the successfully installation, pls find the version details, I cant able to create the qmgr.

bash-4.1$ dspmqver
Name: WebSphere MQ
Version: 7.5.0.3
Level: p750-003-140123
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.32-358.14.1.el6.x86_64
InstName: Installation1
InstDesc:
Primary: No
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 750
LicenseType: Production
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Mon Jul 28, 2014 3:18 am    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Error Message:

bash-4.1$ crtmqm TEST
AMQ7077: You are not authorized to perform the requested operation.

No errors in the /var/mqm/errors
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 28, 2014 3:38 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Here is some output from a Test VM of mine.
CentOS 6.5, VMWare V10.0

Code:

[sdavi@localhost ~]$ id -a
uid=500(sdavi) gid=501(mqm) groups=501(mqm),502(mqbrkrs) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[sdavi@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[sdavi@localhost ~]$ dspmq
[sdavi@localhost ~]$ dspmqver
Name:        WebSphere MQ
Version:     7.5.0.0
Level:       p000-L120604
BuildType:   IKAP - (Production)
Platform:    WebSphere MQ for Linux (x86-64 platform)
Mode:        64-bit
O/S:         Linux 2.6.32-431.20.3.el6.x86_64
InstName:    Installation1
InstDesc:   
InstPath:    /opt/mqm
DataPath:    /var/mqm
Primary:     No
MaxCmdLevel: 750

[sdavi@localhost ~]$ crtmqm FRED
WebSphere MQ queue manager created.
Directory '/var/mqm/qmgrs/FRED' created.
The queue manager is associated with installation 'Installation1'.
Creating or replacing default objects for queue manager 'FRED'.
Default objects statistics : 74 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
[sdavi@localhost ~]$ strmqm FRED
WebSphere MQ queue manager 'FRED' starting.
The queue manager is associated with installation 'Installation1'.
5 log records accessed on queue manager 'FRED' during the log replay phase.
Log replay for queue manager 'FRED' complete.
Transaction manager state recovered for queue manager 'FRED'.
WebSphere MQ queue manager 'FRED' started using V7.5.0.0.
[sdavi@localhost ~]$ dspmq
QMNAME(FRED)                                              STATUS(Running)
[sdavi@localhost ~]$


As you can see, the use under which the CRTMQM command was run is a member of the 'mqm' group.
The command works.
So what is different about your system?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Tue Jul 29, 2014 10:24 am    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi Jedi,

I did the below steps now, but still facing the same problem

1. Uninstalled the MQ7.5
2. Deleted the user & group - mqm
3. Created the user & group - mqm
Commands
useradd mqm -d /var/mqm
groupadd mqm
usermod -a -G mqm mqm
4. Installed the MQ7.5 rpm's

Version:

[mqm@tl2388 ~]$ dspmqver
Name: WebSphere MQ
Version: 7.5.0.1
Level: p750-001-130308
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.32-358.14.1.el6.x86_64
InstName: Installation1
InstDesc:
InstPath: /opt/mqm
DataPath: /var/mqm
Primary: No
MaxCmdLevel: 750

Error Message:

[mqm@tl2388 ~]$ crtmqm TEST
AMQ7077: You are not authorized to perform the requested operation.

No oether errors in the server.
Back to top
View user's profile Send private message
MB Developer
PostPosted: Tue Jul 29, 2014 8:20 pm    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

HI Purush.

You need to run setmqenv for the user..

And set Primary Installation as YES.


InstPath: /opt/mqm
DataPath: /var/mqm
Primary: No
MaxCmdLevel: 750
_________________
Thanks....
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Tue Jul 29, 2014 10:50 pm    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi Mate,

i ran the below command from the user 'mqm', got the same error.

. /setmqenv -s

I dont know how to set the primary installation as yes, can you help ?
Back to top
View user's profile Send private message
MB Developer
PostPosted: Tue Jul 29, 2014 10:57 pm    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

Hi PurushSCB,

Try below steps...

PATH=$PATH:/opt/mqm/bin
export PATH

i.e login as root

[root@localhost Raj]# PATH=$PATH:/opt/mqm/bin
[root@localhost Raj]# export PATH
[root@localhost Raj]# strmqcfg
MQ Explorer: Using existing workspace: /root/IBM/WebSphereMQ/workspace-Installation1/ (MQ 8.0)
[root@localhost Raj]# dspmq
QMNAME(jj) STATUS(Ended immediately)



And Set Primary Installation YES

/opt/mqm/bin/setmqinst -i -p /opt/mqm

[root@localhost Raj]# /opt/mqm/bin/setmqinst -i -p /opt/mqm
117 of 117 tasks have been completed successfully.
'Installation1' (/opt/mqm) set as the primary installation.


Primary: Yes
InstPath: /opt/mqm
DataPath: /var/mqm


bash-4.1$ crtmqm QMM
There are 87 days left in the trial period for this copy of WebSphere MQ.......
_________________
Thanks....
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Tue Jul 29, 2014 11:30 pm    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi Mate,

Thanks for the help, i did as per your advise, but still i am facing same issue. Is there anything which i have missed out ?

[mqm@tl2388 ~]$ dspmqver
Name: WebSphere MQ
Version: 7.5.0.1
Level: p750-001-130308
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.32-358.14.1.el6.x86_64
InstName: Installation1
InstDesc:
InstPath: /opt/mqm
DataPath: /var/mqm
Primary: Yes
MaxCmdLevel: 750


[mqm@tl2388 ~]$ crtmqm PURUSH
AMQ7077: You are not authorized to perform the requested operation.
Back to top
View user's profile Send private message
MB Developer
PostPosted: Wed Jul 30, 2014 1:09 am    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

Hi PurushSCB,


try once like ./crtmqm PURUSH

[mqm@tl2388 ~]$ ./crtmqm PURUSH

As a root

1. root@binary-G41-M7:/home/binary# usermod -a -G mqm mqm
2. su mqm
3. try mq commands
_________________
Thanks....
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Wed Jul 30, 2014 2:22 am    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi I tried friend, but still i am getting the same problem

[mqm@tl2388 ~]$ ./crtmqm PURUSH
AMQ7077: You are not authorized to perform the requested operation
Back to top
View user's profile Send private message
PurushSCB
PostPosted: Wed Jul 30, 2014 3:13 am    Post subject: Reply with quote

Novice

Joined: 06 Aug 2011
Posts: 14

Hi Jedi, I have 1 clarification. Is the 'mqm' id/grp was created while installing the RPM itself or those stuffs are done via manually. ?

I suspect that MQ is treating the mqm id as NORMAL ID due to the manual creation of mqm.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ7.5 Installation in Vm ware Servers
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.