Operating System - Linux
1844181 Members
2480 Online
110229 Solutions
New Discussion

Re: Variables in red hat cluster

 
R.O.
Esteemed Contributor

Variables in red hat cluster

Hello,

We have a two nodes cluster in Red Hat AS 2.1. This cluster has a package and I am seeing that when the package migrates from a node to the other one, there are several enviroment variables not charged, and the service does not works. If I started the service by executing directly the pkg control file with the start option, the service works fine. I tried to put these variables in root´s .bash_profile, /etc/profile and into the pkg control file. I do not know why relocating the package does not catch these variables. Any idea?

Regards,

R.O
"When you look into an abyss, the abyss also looks into you"
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Variables in red hat cluster

The package control file is probably not correctly installed into both nodes. There are most likely variances that explain the variables not being correct.

Or there may be real life differences between the systems that require adjustment of the package control files.

Also check /etc/profile, it may be doing things to variables you don't expect.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
NiCK_76
Respected Contributor

Re: Variables in red hat cluster

Hi R.O.

I suggest you put variables in service script. Script will export variables what you need to system ,when service is starting .

NiCK
just for fun
R.O.
Esteemed Contributor

Re: Variables in red hat cluster

Hi,

The variables were already in the service sript. I presume was not an error regarding the variables.

Regards,
"When you look into an abyss, the abyss also looks into you"