cmapplyconf >> Permission denied


 
Thread Tools Search this Thread
Operating Systems HP-UX cmapplyconf >> Permission denied
# 1  
Old 11-29-2011
cmapplyconf >> Permission denied

Hi all,

I am totally new to HP-UX. Been going through books and documents, passed too many problems and they helped me learn. I am working on a test environment.

I have 2 nodes, hostnames Nde1HPUX and Nde2HPUX.
The /etc/hosts, .rhosts and /etc/cmcluster/cmclnodelist are properly configured on both nodes (I guess)

/etc/hosts
Code:
192.168.200.111 Nde1HPUX
127.0.0.1           localhost       loopback
192.168.200.121 Nde2HPUX

# cat .rhosts
Nde1HPUX        root
Nde2HPUX        root

# cd /etc/cmcluster
# cat cmclnodelist
Nde1HPUX        root
Nde2HPUX        root

I got to the point of cluster configuration. After applying the following commands on Nde1HPUX
Code:
	# cmquerycl -C cmclconf.ascii -n Nde1HPUX -n Nde2HPUX

	# vi cmclconf.ascii
      
        (modified the heartbeat and stationary IPs - checked the vglock,all is                 
         OK)


        # cmcheckconf -v -C cmclconf.ascii

...

Adding node Nde1HPUX to cluster cluster1
Adding node Nde2HPUX to cluster cluster1
cmcheckconf: Verification completed with no errors found.

	# cmapplyconf -v -C cmclconf.ascii

At the cmapplyconf, I got the following:
Code:
Checking cluster file: cmclconf.ascii
Note : a NODE_TIMEOUT value of 2000000 was found in line 125. For a
significant portion of installations, a higher setting is more appropriate.
Refer to the comments in the cluster configuration ascii file or Serviceguard
manual for more information on this parameter.
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 3 devices on node Nde1HPUX
Found 3 devices on node Nde2HPUX
Analysis of 6 devices should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 2 volume groups on node Nde1HPUX
Found 2 volume groups on node Nde2HPUX
Analysis of 4 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
Checking for inconsistencies
Minimum network configuration requirements for the cluster have
not been met. Minimum network configuration requirements are:
 - 2 or more heartbeat networks OR
 - 1 heartbeat network with local switch (HP-UX Only) OR
 - 1 heartbeat network using APA with 2 trunk members (HP-UX Only) OR
 - 1 heartbeat network with serial line (HP-UX Only) OR
 - 1 heartbeat network using bonding (mode 1) with 2 slaves (Linux Only)
Adding node Nde1HPUX to cluster cluster1
Adding node Nde2HPUX to cluster cluster1
Marking/unmarking volume groups for use in the cluster
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Unable to verify cluster configuration change completion, proceeding anyway..
Cannot connect to configuration daemon (cmclconfd) on node Nde1HPUX
Cannot connect to configuration daemon (cmclconfd) on node Nde2HPUX
Completed the cluster creation

After that, nothing works.

I went to Nde2HPUX, files are created here.
Code:
# cd /etc/cmcluster
# ll
total 80
drwxr-xr-x   2 bin        bin           8192 Nov 16 18:34 cfs
-rw-------   1 root       root          8288 Nov 29 19:26 cmclconfig
-rw-------   1 root       root             0 Nov 29 19:26 cmclconfig.tmp
-rw-rw-rw-   1 root       sys             28 Nov 29 17:46 cmclnodelist
-r--------   1 bin        bin             70 Sep 23  2005 cmknowncmds
----------   1 root       root             0 Nov 29 19:24 config.lck

(I was comparing the /etc/hosts file with the a live system and the live one had an additional domain name column, got me to recall a message after configuring DNS during installation, that I have to register my HP-UX servers with DNS.. I am not sure if that is the problem or not)

I am a network engineer, so the first thing I did was pinging hostnames, and it works fine both ways.

I then continued the cluster configuration normally (since the cluster is already created as per message above)
Code:
# vgchange -a n /dev/vglock

# cmruncl -v
Permission denied to 192.168.200.121
cmruncl: Validating network configuration...
cmruncl: Network validation complete
Permission denied to Nde1HPUX
Permission denied to Nde2HPUX
Unable to validate the nodes in the cluster
cmruncl failed: No such file or directory

I've been googling for hours now and I am stuck.Any help would be appreciated and bear with me my lack of knowledge in this domain. Smilie

Thank you.

Mazen

---------- Post updated at 08:35 PM ---------- Previous update was at 08:16 PM ----------
Code:
# cmviewcl -v
Permission denied to 192.168.200.121

CLUSTER        STATUS
cluster1       unknown

  NODE           STATUS       STATE
  Nde1HPUX       down         unknown

    Cluster_Lock_LVM:
    VOLUME_GROUP          PHYSICAL_VOLUME       STATUS
    /dev/vglock           /dev/dsk/c4t0d1       unknown

    Network_Parameters:
    INTERFACE    STATUS       PATH                NAME
    PRIMARY      unknown      0/1/2/0             lan0
    PRIMARY      unknown      0/2/1/1             lan2

  NODE           STATUS       STATE
  Nde2HPUX       unknown      unknown

    Cluster_Lock_LVM:
    VOLUME_GROUP          PHYSICAL_VOLUME       STATUS
    /dev/vglock           /dev/dsk/c4t0d2       unknown

    Network_Parameters:
    INTERFACE    STATUS       PATH                NAME
    PRIMARY      unknown      0/1/2/0             lan0
    PRIMARY      unknown      0/2/1/0/5/0         lan2

---------- Post updated at 09:35 PM ---------- Previous update was at 08:35 PM ----------

Update:

I checked the following after a search.

Code:
#more /etc/inetd.conf |grep auth
auth stream tcp6 wait bin /usr/lbin/identd identd

As per the research, I should change the 'bin' to 'root'. Did that, and still getting the 'Permission denied' (just tried to do a cmviewcl and got the permission denied - IP of 2nd node)

Last edited by Scott; 11-29-2011 at 03:50 PM.. Reason: Please use code tags
# 2  
Old 11-30-2011
I may have read to "lightly" to see what you are trying to do...
I did not see any "package" here is that correct?

It is very difficult for me to help you here for I have been out of cluster team for more that 7 years now...
What I see here is there is missing an extra network or lan interface (either heartbeat or second lan ).. I remembered doing minimalist configuration where HP went bezeurk when I showed the configuration... ( claimed OK it works but we will not support in case of side effects...)), unfortunately I have no more my notes...
Things would be easier if you explain what you are trying to achieve, then we can check if you have not forgotten anything or make our comments. We will need to know how many lan interfaces you have and how they are configured and we need to know the configuration of your package VG (vgdisplay -v ).
# 3  
Old 11-30-2011
Hi vbe,

Thank you for your reply.

There is no package at the moment, it will be done in a following step (as per the document I am using - that was used by a colleague before and worked fine).

What I am trying to do is to have a cluster, I already have the storage properly configured (EVA).

lan0 is the primary and lan2 is used as the heartbeat, I already changed that via vi in the cmclconf.ascii file

Below is the vgdisplay -v output.

Code:
# vgdisplay -v
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      8
Open LV                     8
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               4384
VGDA                        2
PE Size (Mbytes)            32
Total PE                    4374
Alloc PE                    510
Free PE                     3864
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

   --- Logical volumes ---
   LV Name                     /dev/vg00/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            320
   Current LE                  10
   Allocated PE                10
   Used PV                     1

   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd
   LV Size (Mbytes)            4096
   Current LE                  128
   Allocated PE                128
   Used PV                     1

   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd
   LV Size (Mbytes)            544
   Current LE                  17
   Allocated PE                17
   Used PV                     1

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd
   LV Size (Mbytes)            224
   Current LE                  7
   Allocated PE                7
   Used PV                     1

   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd
   LV Size (Mbytes)            32
   Current LE                  1
   Allocated PE                1
   Used PV                     1

   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd
   LV Size (Mbytes)            2976
   Current LE                  93
   Allocated PE                93
   Used PV                     1

   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd
   LV Size (Mbytes)            3520
   Current LE                  110
   Allocated PE                110
   Used PV                     1

   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd
   LV Size (Mbytes)            4608
   Current LE                  144
   Allocated PE                144
   Used PV                     1


   --- Physical volumes ---
   PV Name                     /dev/dsk/c2t0d0
   PV Status                   available
   Total PE                    4374
   Free PE                     3864
   Autoswitch                  On


VG Name                     /dev/vglock
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      1
Open LV                     1
Max PV                      16
Cur PV                      2
Act PV                      2
Max PE per PV               25599
VGDA                        4
PE Size (Mbytes)            4
Total PE                    51195
Alloc PE                    50
Free PE                     51145
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

   --- Logical volumes ---
   LV Name                     /dev/vglock/lvdata
   LV Status                   available/syncd
   LV Size (Mbytes)            200
   Current LE                  50
   Allocated PE                50
   Used PV                     1


   --- Physical volumes ---
   PV Name                     /dev/dsk/c4t0d1
   PV Status                   available
   Total PE                    25599
   Free PE                     25599
   Autoswitch                  On

   PV Name                     /dev/dsk/c4t0d2
   PV Status                   available
   Total PE                    25596
   Free PE                     25546
   Autoswitch                  On

# 4  
Old 11-30-2011
Did you modify /etc/lvmrc? (no autoactivate for your clusterVG and has to be activated in exclusive mode...)
You need 3 network interface min. one for lan one for heartbeat and one for standby or alt lan.
The passwd files have to be synchronized also and I suppose the best when starting a cluster lab is to use .rhosts files...
(Sorry Im very busy lately with testing Xservers under Win7 for many dept...)
# 5  
Old 12-01-2011
Hi vbe,

I'll try these changes tonight!

Do you have any full cluster explanation document? That way I can, at least, check my prerequisites and requirements.

Thank you! Will keep you posted.

And good-luck with your own tests!

---------- Post updated 12-01-11 at 02:38 PM ---------- Previous update was 11-30-11 at 07:02 PM ----------

Hi vbe,

I removed the DNS via SAM and the cluster worked fine!

The step to edit the /etc/lvmrc --> AUTO_VG_ACTIVATE=0 is done after the cluster comes up.

Issue solved, you may close the topic.

Thank you!
# 6  
Old 12-01-2011
I would try to leave the DNS unless you IPs are not in your LAN...
I suggest to try modifying /etc/nsswitch.conf to something like:
Code:
passwd:     files
group:      files
hosts:      files [NOTFOUND=CONTINUE] dns
networks:   files

and put back you resolv.conf...
Of course for the cluster to work you would have to add them to the DNS...

Good luck!
I will see if I find anything...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

2. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

3. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

4. Red Hat

Permission denied

Hi guys im new to this db i have a small prob while installing websphereportal6.1i think i was installed succesfully but the error im getting is while starting server. check this out # ./serverStatus.sh -all Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
Discussion started by: varma917989
1 Replies

5. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies

6. UNIX for Dummies Questions & Answers

Why do I keep getting .:Permission denied?

I'll start off by saying that I know very little about Unix - however, I do know that I have a .profile file in my home directory, and that I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied". I'm pretty sure that there is... (12 Replies)
Discussion started by: bbersani
12 Replies

7. UNIX for Advanced & Expert Users

Permission denied

Hi, I can not execute a .env file $ . /Data/oracle/d03/mydbora/8.0.6/MYDB.env -bash: /Data/oracle/d03/mydbora/8.0.6/MYDB.env: Permission denied Even if : -rwxrwxrwx 1 oracle dba 2903 Mar 5 2007 /Data/oracle/d03/mydbora/8.0.6/MYDB.env Please help. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

8. UNIX for Dummies Questions & Answers

Permission Denied

I just started computer science at UW Milwaukee. When I access the university Solaris system from PuTTY, I get permission denied when I try to access the file I wrote. Now I really have no idea what I'm doing, I just don't understand why I get permission denied in my won directory. Thank You ... (0 Replies)
Discussion started by: howeezy
0 Replies

9. UNIX for Dummies Questions & Answers

./ Permission Denied.

Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies

10. UNIX for Dummies Questions & Answers

permission denied??

i'm trying to set up my internet connection and i was told i need to edit the file /etc/ppp/pap-secrets but i get a permission denied message...why?? (6 Replies)
Discussion started by: justchillin
6 Replies
Login or Register to Ask a Question