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

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



Hi Lon/Rajesh,

Thanks for the response. Earlier I thought RHEL release no. is directly mapped to cluster version and hence I was reading release from /etc/redhat-erlease file and get cluster specific commands to get cluster info. e.g.

RHEL 2.1    "/sbin/cluadmin -- cluster status"
RHEL 3.0    "/usr/sbin/clustat"

But I noticed that RHEL 3.0 could have cluster setup where  "/sbin/cluadmin -- cluster status" works. ( Where my code fails :-( ).
So now I need to find a way to detect cluster version and use corresponding cluster commands.

Rajesh has given a pointer to detect version For RHEL 2.1 and 3.0 run "rpm -qa |grep clumanager" and for rhel4.0 use ccs,cman,fence independent rpms to find the version. ( Rajesh which is the appropriate command to find version for RHEL4.0 ?)


m/c 1:
# rpm -qa |grep clumanager
clumanager-1.0.11-1
# rpm -q redhat-release
redhat-release-3AS-13.5.1
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
# ls -l /sbin/cluadmin
-rwxr-xr-x    1 root     root       533296 Apr 17  2002 /sbin/cluadmin

m/c 2:
# rpm -qa |grep clumanager
clumanager-1.2.3-1
# rpm -q redhat-release
redhat-release-3AS-1
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon)
# ls -l /sbin/cluadmin
ls: /sbin/cluadmin: No such file or directory
# ls -l /usr/sbin/clustat
-rwxr-xr-x    1 root     root        56128 Oct  6  2003 /usr/sbin/clustat

Do I need to consider second bit for cluster release? (e.g 2 in clumanager-1.2.3-1)
Thanks friends for your help.

Have a nice day !
- Krishna

----- Original Message ----
From: Lon Hohberger <lhh redhat com>
To: linux clustering <linux-cluster redhat com>
Sent: Thursday, January 11, 2007 8:35:24 PM
Subject: 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



--
Linux-cluster mailing list
Linux-cluster redhat com
https://www.redhat.com/mailman/listinfo/linux-cluster



Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]