sc 3.2, load balanced apache offline on both nodes

Hi
I am trying to set up apache on the only 2 nodes of sun cluster 3.2. nodes are running solaris 10-x86

For some reasons, apache resource on both nodes goes offline in some seconds.

There is a shared address resource which is online

rs, rg list and show below,

clrg online apache-rg

[/quote]

dmesg

Can someone please help me?
Thanks in advance.
:b:

looks like your apache is misconfigured...

Jul 17 09:04:49 tommy_sun SC[,SUNW.apache:4.1,apache-rg,apache-rs,apache_svc_start]: [ID 708422 daemon.error] Command {/usr/apache2/bin/apachectl configtest >/dev/null 2>&1} failed: httpd cannot parse httpd.conf.
Jul 17 09:04:49 tommy_sun SC[,SUNW.apache:4.1,apache-rg,apache-rs,apache_svc_start]: [ID 251552 daemon.error] Failed to validate configuration.

Thank you for quick reponse. Yes you are right, I disabled sun cluster now and tried manually starting apache2 with svcadm.
I had deleted "Listen 80" in http.conf by mistake.(actuall apache was working earlier but as it was not working with sun cluster, I had changed Listen directive to IP 80 and recently I disabled IP 80 but forgot to add Listen 80 again)

apache2 starts fine on one node now. Other node shows unitialized state for apache2? what could be the issue?

I am sorry but this is taking to the basics but I think there will be problems when I try apache2 with sc.

I am not able to see fresh logs in apache2/error_logs

Earlier it was working fine before sun cluster config.

---------- Post updated at 10:17 AM ---------- Previous update was at 10:01 AM ----------

I don't understand why is restarter is sc_restarter (restarter svc:/system/cluster/sc_restarter:default) instead of
svc:/system/svc/restarter:default :confused:

---------- Post updated at 10:29 AM ---------- Previous update was at 10:17 AM ----------

svccfg apache2
delprop general/restarter
reboot

apache2 is now online other node as well :slight_smile: Now I will enable /online rs and rgs

clrg online apache-rg
clrg: (C748634) Resource group apache-rg failed to start on chosen node and might fail over to other node(s)
clrg: (C135343) No primary node could be found for resource group apache-rg; it remains offline

---------- Post updated at 10:41 AM ---------- Previous update was at 10:32 AM ----------

SOLVED

svcadm disable apache2 on both nodes
clrg online apache-rg

clrg status
clrg status

so now it is working fine. I am thinking that after httpd.conf issues, it was 'restarter' for svc:apache2 on the other node was causing issues. Again I had to disable apache2 using svcadm and then sun cluster could online apache-rg. Also now I remember I was trying to get SUNW.SMF_proxy_scalable to get working with apache2 but for some reason that did not work so I was trying load balancing with sunw.apache.

Thank you for helping me out dukenuke2. appreciate it.:b:

most of the work was on your side ;). but thanks for the bits!

:), I did not know where to start looking, you rightly pointed to httpd.conf and that's where the problem was :b:

If you don't mind, can I mention here that I have a problem using SUNW.SMF_proxy_scalable DSA.

I am moving to SMF-proxy agent instead of load balancing I configured earlier. I am keeping the shared add rg as it is. deleted old apache-rg and started fresh.

that works fine.

-bash-3.00# clresourcegroup show -v apache-rg

FYI, apshared-rg is shared add resource group.

Issue is this does not work,

clrs create -g apache-rg -t SUNW.Proxy_SMF_scalable -x Proxied_service_instances=/tmp/apa apache-rs apache-rs

-bash-3.00# cat /tmp/apa

am I doing anything incorrect?

Hi,

why twice written apache-rs ?????

Sorry bad copy paste. I did not use apache-rs twice in actual command. :b:

Thanks!

hi upengan78,
have you configurated this Sun Cluster (u2) on VMware virtual machines ?

not really on vmware, it is on virtualbox :smiley:

hahah ok :wink:

PS: I'm using cluster on VMware and I had to do a "dirty trick" to bring the quorum device online on both nodes ... and I wanted to know if you had the same problem.

Thank you, gxmsgx,

I am using ISCSI for quorum and shared devices but devices look okay. I am trying to get SUNW.PROXY_SMF_scalableworking :wink:

---------- Post updated at 02:35 PM ---------- Previous update was at 10:36 AM ----------

SOLVED !

Below command did it.