[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] cluster version identification:how?

On Thu, 2007-01-11 at 03:34 -0800, krishnamurthi G wrote:
>  Hi Frieds,
> Is there any ways to find cluster version (if it is !). 
> Problem: The cluster specific commands/paths/command outputs have been
> changed/changing completely from RHEL 2.1 to 2.4 to 2.6.

> I am working on a project where I need support for all
> version/releases, some how I need to find cluster version if available
> so that I can parse accordingly.

> Temporary Work around: The cluster config file is unique for different
> RHEL releases.
> e.g RHEL 2.1 "/etc/cluster.xml" 
> RHEL 2.4  "/etc/cluster.conf"
> RHEL 2.6 "/etc/cluster/cluster.conf"
> Check this config file and identify cluster type.

RHEL 2.1: /etc/cluster.conf
RHEL3:    /etc/cluster.xml
RHEL4:    /etc/cluster/cluster.conf
RHEL5:    /etc/cluster/cluster.conf

Why not just do 'rpm -q redhat-release'?  I'm curious; why does the
cluster version matter: are you manipulating cluster.[xml|conf]
directly?  If so, you'll need to do a few extra things.

-- Lon

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]