warper2
New Member.
1759 views

run script before acs comes up

Is there a way to have a script run on each node of oes cluster prior to ncs loading? I need to be able to rename conf files
in /etc/apache2/vhost.d folder prior to load in for some reason the nodes should crash and come up with the conf file not
named org extension for apache. I hope this explains it correctly.

Thanks
Labels (1)
0 Likes
6 Replies
AutomaticReply Absent Member.
Absent Member.

Re: run script before acs comes up

warper2,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit https://www.microfocus.com/support-and-services and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.microfocus.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.microfocus.com)
- You might consider hiring a local partner to assist you.
https://www.partnernetprogram.com/partnerfinder/find.html

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.microfocus.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your Micro Focus Forums Team
http://forums.microfocus.com



0 Likes
Knowledge Partner
Knowledge Partner

Re: run script before acs comes up

In article <warper2.7s7tpz@no-mx.forums.microfocus.com>, Warper2 wrote:
> Is there a way to have a script run on each node of oes cluster prior to
> ncs loading?


An option could be to add those renames to the ncs start itself, just make
a backup copy of it (/etc.init.d/novell-ncs if I recall correctly) before
editting it.
Though I'm not sure why you'd need to. Are your apache conf files getting
messed up on crashes? If so, it would be worth trying to figure out those
crashes as the root cause.


Andy of
http://KonecnyConsulting.ca in Toronto
Knowledge Partner
http://forums.novell.com/member.php/75037-konecnya
If you find a post helpful and are logged in the Web interface, please
show your appreciation by clicking on the star below. Thanks!

___
Andy of Konecny Consulting in Toronto
Knowledge Partner Profile
If you find a post helpful, click the Like button below. Thanks!
0 Likes
warper2
New Member.

Re: run script before acs comes up

Thanks for the input. I did not see a clean way to do this in the init script. Let me explain a little
further. Say we have a 4 node cluster. Lets say the switch pukes up and the whole cluster crashes.
Since using apache in a cluster environment all the nodes would have not shutdown the cluster,
so the nodes would not have run the unload scripts. I have the unload scripts doing this.
mv /etc/apache2/vhosts.d/gwwebssl.conf /etc/apache2/vhosts.d/gwwebssl.org

The goal is to run that command for all apache based services on all nodes in the cluster prior to
ncs coming on line so apache will start properly. Until all scripts are renamed apache will not come.
I hope I explained the issue better. Basically need to rename all the conf files before ncs and apache
load. Even if it renamed and restarted apache before ncs comes up would work.

Thanks
0 Likes
Knowledge Partner
Knowledge Partner

Re: run script before acs comes up

In article <warper2.7su19b@no-mx.forums.microfocus.com>, Warper2 wrote:
> Lets say the switch pukes up and the whole cluster crashes.

Ah, I get it now. Been there with vSphere/OES really not liking storage
going away.

What I think should work (at least with SLES10/11 based, you didn't say
which version you are on) is to create a bash script with your command, so
something like


#!/bin/bash
# to make sure apache comes up properly post crash
mv /etc/apache2/vhosts.d/gwwebssl.conf /etc/apache2/vhosts.d/gwwebssl.org


Find where the ncs startup is in the /etc/init.d structure which will look
something like @S13novell-ncs & @S12apache2. Then make a symbolic called
@S##ncs-recvry linking to your bash script with the ## being lower than
the novell-ncs one, and probably need it lower than the apache one.

Hopefully that will work for you. I don't currently have any Cluster
Service customers. They all felt that vSphere HA was good enough for their
needs, sigh.


Andy of
http://KonecnyConsulting.ca in Toronto
Knowledge Partner
http://forums.novell.com/member.php/75037-konecnya
If you find a post helpful and are logged in the Web interface, please
show your appreciation by clicking on the star below. Thanks!

___
Andy of Konecny Consulting in Toronto
Knowledge Partner Profile
If you find a post helpful, click the Like button below. Thanks!
0 Likes
warper2
New Member.

Re: run script before acs comes up

Thanks Andy,

I thought I had posted back this morning. I actually ended up using /etc/init.d/boot.local and added needed commands to it and worked perfectly.
0 Likes
Knowledge Partner
Knowledge Partner

Re: run script before acs comes up

In article <warper2.7sunhb@no-mx.forums.microfocus.com>, Warper2 wrote:
> I thought I had posted back this morning. I actually ended up using
> /etc/init.d/boot.local and added needed commands to it and worked
> perfectly.


Sometimes we techs forget if we 'spoke' with our inside or outside
voice, perhaps that was the case this morning 😉

I was contemplating that location as well.

Glad you got it working, and now anyone else looking for the same thing
will file our notes here.


Andy of
http://KonecnyConsulting.ca in Toronto
Knowledge Partner
http://forums.novell.com/member.php/75037-konecnya
If you find a post helpful and are logged in the Web interface, please
show your appreciation by clicking on the star below. Thanks!

___
Andy of Konecny Consulting in Toronto
Knowledge Partner Profile
If you find a post helpful, click the Like button below. Thanks!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.