Sponsored Content
Top Forums Shell Programming and Scripting The other node name of a SUN cluster Post 302092299 by blowtorch on Sunday 8th of October 2006 03:00:20 PM
Old 10-08-2006
Since you are using ksh, you can use this bit:
Code:
thishost=$(uname -n)
basehost=${thishost%[0-9]}
thissuffix=${thishost##*[a-z][0-9]}
thatsuffix=$((3-$thissuffix))
thathost=${basehost}${thatsuffix}
echo $thathost

Hope this helps. Pretty much the best that I can think of right now...

Cheers
 

9 More Discussions You Might Find Interesting

1. HP-UX

Node can't join cluster

Need help guys! when running cmrunnode batch i'm getting this error cmrunnode : Waiting for cluster to... (1 Reply)
Discussion started by: Tris
1 Replies

2. HP-UX

MC/SG Fail to join cluster node

Hi, Please advise me whereas I have two node cluster server configured with MC/SG. Application and DB are running on Node 1, while Node 2 is standby. All the volume group devices are part of cluster environment. There is only one package running at node 1. Node 2 is having the problem to... (1 Reply)
Discussion started by: rauphelhunter
1 Replies

3. High Performance Computing

Setting up 2 node cluster using solaris 10

hi, i am trying to setup a 2 node cluster environment. following is what i have; 1. 2 x sun ultra60 - 450MHz procs, 1GB RAM, 9GB HDD, solaris 10 2. 2 x HBA cards 3. 2 x Connection leads to connect ultra60 with D1000 4. 1 x D1000 storage box. 5. 3 x 9GB HDD + 2 x 36GB HDD first of all,... (1 Reply)
Discussion started by: solman17
1 Replies

4. Solaris

Active Sun cluster node?

I now the logical name and Virtual IP of the cluster. How can I find the active sun cluster node without having root access? (3 Replies)
Discussion started by: sreeniatbp
3 Replies

5. Solaris

Single node Sun Cluster with zones

How can we add a shared zfs dataset between 2 zones on a same host. I have sun cluster 3.2 installed in a server which has 2 zones. I want to share a zfs data set between these 2 zones how can we do that ? (7 Replies)
Discussion started by: fugitive
7 Replies

6. Solaris

SVM metaset on 2 node Solaris cluster storage replicated to non-clustered Solaris node

Hi, Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies

7. Solaris

Sun Cluster 3.2 x86: Node is rebooting itself

Hey Admins, I am running sun cluster 3.2 x86 on Vmware. I m facing an issue from 2 days.. One main node is continuously rebooting..... not sure... whats woring... I just had change heartbeat timeout values on 1 this node... Now both node are just rebooting itself..seems panic.. Any... (1 Reply)
Discussion started by: snchaudhari2
1 Replies

8. Solaris

Sun cluster 4.0 - zone cluster failover doubt

Hello experts - I am planning to install a Sun cluster 4.0 zone cluster fail-over. few basic doubts. (1) Where should i install the cluster s/w binaries ?. ( global zone or the container zone where i am planning to install the zone fail-over) (2) Or should i perform the installation on... (0 Replies)
Discussion started by: NVA
0 Replies

9. AIX

Cluster node not starting

Setting up HACMP 6.1 on a two node cluster. The other node works fine and can start properly on STABLE state (VGs varied, FS mounted, Service IP aliased). However, the other node is always stuck on ST_JOINING state. Its taking forever and you can't stop the cluster as well or recover from script... (2 Replies)
Discussion started by: depam
2 Replies
clsetup(1CL)						 Sun Cluster Maintenance Commands					      clsetup(1CL)

NAME
clsetup - configure Sun Cluster interactively SYNOPSIS
/usr/cluster/bin/clsetup -V /usr/cluster/bin/clsetup -? /usr/cluster/bin/clsetup [-f logfile] DESCRIPTION
The clsetup command provides the following configuration capabilities, depending on what state the cluster is in when you issue the com- mand. The user must be superuser to run this command. This command has no short form. o When you run the clsetup command at post-installation time, the command performs initial setup tasks, such as configuring quorum devices and resetting the installmode property. If you deselected automatic Quroum Configuration when you created the cluster using either scinstall or the cluster create command, then you must run the clsetup command immediately after the cluster has been installed. Ensure that all nodes have joined the cluster before you run the clsetup command and reset the installmode prop- erty. If you used automatic quorum configuration when you created the cluster, you do not need to run the clsetup command after clus- ter installation. The automatic quorum configuration feature also resets the installmode property of the cluster. You can issue this form of the clsetup command from any node in the cluster. o When you run the clsetup command during normal cluster operation, the scsetup command provides an interactive, menu-driven util- ity to perform cluster configuration tasks. The following are some of the cluster components which this utility administers: o Quorum o Resource groups o Data services o Cluster interconnect o Device groups and volumes o Private hostnames o New nodes o Other cluster properties You can issue this form of the clsetup command from any node in the cluster. o When you run the clsetup command from a node that is in noncluster mode, the clsetup command provides a menu-driven utility for changing and displaying the private IP address range. You must reboot all nodes into noncluster mode before you start this form of the clsetup utility. OPTIONS
The following options are supported: -? --help Prints help information for the command. -f logfile --file logfile Specifies the name of a log file to which commands can be logged. If this option is specified, most command sets generated by clsetup can br run and logged, or just logged, depending on user responses. -V --version Prints the version of the command set. No command line processing will be performed and the command will not enter into its interactive menu. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsczu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
Intro(1CL), cldevicegroup(1CL), clnode(1CL), clquorum(1CL), clreslogicalhostname(1CL), clresourcegroup(1CL), clresourcetype(1CL), clressharedaddress(1CL), cluster(1CL), cltelemetryattribute(1CL) Sun Cluster 3.2 5 May 2006 clsetup(1CL)
All times are GMT -4. The time now is 04:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy