| Author | 
		  Message
		 | 
		
		  | Al Pacino | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 3:33 am    Post subject: Issue with mqm uid when using HA MQV7 | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 19 Aug 2005 Posts: 114
  
  | 
		  
		    
			  
				Folks, 
 
After upgrading MQ to version 7 on our AIX environments, I tried configuring the new feature of HA between 2 servers. After configuring the NFS and follow the steps giving, there is a step where you need to copy the configuration of .ini file. The step uses the command addmqinf. This step was failing b/c it was expecting a uid different than the current one. After digging into this more , we realized that both mqm uid on each server are different , same case for the mqm group. So , I didn't change the uid and went ahead and created a new user id and group , also created a new queue manager for testing. Made sure the new userid and groupid are the same on both server, as soon as I get to the addmqinf step on the second node , I get the same problem:
 
AMQ6242 Incorrect ownership for "/ / //QueueManger" . Current(444) Expected(989) 
 
so seems like by default "addmqinf" looks or uses mqm id. Anyone who had seen this issue before or if you have any advice on how this can be resolved , please advice. 
 
 
Thanks _________________ "We can't solve problems by using the same kind of thinking we used
 
when we created them." | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Michael Dag | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 3:46 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam) 
  | 
		  
		    
			  
				are the numeric values of the mqm id and mqm group id on both systems the same? _________________ Michael
 
 
 
 
 
MQSystems Facebook page | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Al Pacino | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 3:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 19 Aug 2005 Posts: 114
  
  | 
		  
		    
			  
				They are different ,, mqm on first node has a uid value of (989) while on the second node it is (999). When I created a new user and called it mqmtmp and gave it the uid of (444) on both machines , I got the error listed in the first post. So to answer your question , they are different. _________________ "We can't solve problems by using the same kind of thinking we used
 
when we created them." | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Michael Dag | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 4:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam) 
  | 
		  
		    
			  
				well they need to be the same as the numeric values are stored and not the userid/group name itself. _________________ Michael
 
 
 
 
 
MQSystems Facebook page | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 4:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| Michael Dag wrote: | 
   
  
	| well they need to be the same as the numeric values are stored and not the userid/group name itself. | 
   
 
 
 
And to reinforce that, the example in the manual for creating a multi-instance queue manager (albeit on Linux) states:
 
 
   
	| Quote: | 
   
  
	SERVER 1 - Check what uid and gid /etc/passwd displays for mqm, for example, mqm:x:501:100:MQ User:/var/mqm:/bin/bash
 
 
SERVER 2 - Match the uid and gid for mqm in /etc/passwd and reboot if you have had to change the values | 
   
 
 _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Al Pacino | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 5:06 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 19 Aug 2005 Posts: 114
  
  | 
		  
		    
			  
				Here is what I have done , and it fixed my issue ...
 
 
1. I changed both uid and gid from smitty for the mqm user and mqm group. 
 
 
2. Then you still have change the gid manually in the /etc/passwd. 
 
 
3. After that change , all mqm user reference  became "8" and all mqm group reference became "14" . Referring to the old uid and gid. 
 
 
4. I then ran the following commands 
 
 
find / -user 8 -print | xargs chown mqm
 
find / -group 14 -print | xargs chgrp mqm
 
 
5. Just in case , I ran 
 
  
 
ipcs | grep mqm | while read type id d3 
 
do 
 
ipcrm -$type $id 
 
done 
 
 
run the above as mqm  
 
 
to clear the memory _________________ "We can't solve problems by using the same kind of thinking we used
 
when we created them." | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mvic | 
		  
		    
			  
				 Posted: Sat Feb 27, 2010 7:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 09 Mar 2004 Posts: 2080
  
  | 
		  
		    
			  
				What do you now get from
 
   
	| Code: | 
   
  
	| ls -l /usr/mqm/bin/strmqm | 
   
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | parkerjonathan205 | 
		  
		    
			  
				 Posted: Tue Oct 19, 2010 7:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Oct 2010 Posts: 4
  
  | 
		  
		    
			  
				| Yo Al...  What new MQ v7 "feature of HA between 2 servers" are you speaking of? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Oct 19, 2010 8:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| parkerjonathan205 wrote: | 
   
  
	| Yo Al...  What new MQ v7 "feature of HA between 2 servers" are you speaking of? | 
   
 
 
 
IMHO the OP is talking about multi-instance queue managers.
 
 
Check out the "What's New" section of the WMQv7 InfoCentre   _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | parkerjonathan205 | 
		  
		    
			  
				 Posted: Tue Oct 19, 2010 10:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Oct 2010 Posts: 4
  
  | 
		  
		    
			  
				Vitor
 
 
That clears up a lot.  Actually helps me with another design problem I am working on.
 
 
Thanks! | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |