Pages

Monday, December 24, 2007

Sun cluster administration - PART I

*****first add patches**********

bunzip2 file.tar.bz2
tar xvf file.tar
cd file_folder
./install_cluster
find . -name '*.zip' -exec unzip {} \;
patchadd -m . patchorder

*****copy suncluster installables *********
cp -r SUNCLUSTERNEW

******Check cluster private network interfaces****

ifconfig qfe0 plumb
ifconfig qfe0 172.16.100.1 up
ifconfig qfe1 plumb
ifconfig qfe1 172.16.200.1 up

#similar addition on second node and ping each other to check
connectivity.

******edit .profile file
PATH=$PATH:/opt/SUNWcluster/bin:/usr/cluster/bin:/etc/vx/bin
MANPATH=$MANPATH:/opt/SUNWcluster/man:/usr/cluster/man:/usr/share/man:/opt/VRTS/
man
export PATH MANPATH

*******edit /etc/clusters
prion sun157 sun104

#check the readability of disks using format command
#edit /etc/defaultdomain
prion.com
domainname prion.com

****** install cluster software
#cd into the installable directory
./scinstall

This utility will ask for some options, you have give entries with
proper knowledge of the cluster topology. After installation system will
reboot.

Now do the same thing on node 2, be careful to choose the option as
adding the node to cluster i.e.., option 3 during the second option
screen.

once cluster is installed on the second machine. time to check the
states.

****** NTP syncing*****
#edit /etc/inet/ntp.conf.cluster removing the peer entry for non
existing hosts
****** add quorum disk****

Check the disks using scdidam -L
choose the free common disk as the quorum disk. number of quorum disk
should be number of nodes minus one.
scsetup

check status with scstat -q
scconf -p | more

****** Install Veritas Volume Manager ******
scvxinstall

#### Be careful to have the root disk encapsulated if the OS is already
installed
****** List available disks ******
vxdisk list

*** adding and creating different disk groups

vxdiskadd c1t0d0 c1t1d0 c1t2d0
vxdisksetup -i c1t0d0
'" " " " " " "
vxdisk init nfsdg disk01=c1t0d0 disk02=c1t1d0 disk03=c1t2d0

vxdisk list

vxassist -g nfsdg make nfsvol 500m layout=mirror, nolog alloc=disk01
disk02

scconf -a -D type=vxvm,name nfsdg, nodelist=sun157:sun104,
preference=true,failback=disabled # this command is to add the disk to cluster

scstat -D

newfs . /dev/vx/rdsk/nfsdg/nfsvol
mkdir /global/nfs
mount -o global /dev/vx/dsk/nfsdg/nfsvol /global/nfs

#### Till above the disk creation and mounting is completed (In veritas
volume manger the node which installs the disk is owner of that
partition)

Now to make these changes permanent edit /etc/vsftab file suitably.
example

/dev/vx/dsk/nfsdg/nfsvol /dev/vx/rdsk/nfsdg/nfsvol /global/nfs ufs 2
yes global,logging

****** Configuring IPMP ********


edit /etc/hosts as follows

ip.add.ress.hme0 name
ip.add.ress.qfe2 name

edit /etc/hostnmae.hme0 as follows

hostname group groupname
addif name(asinhostsfile) -failover deprecated up

edit /etc/hostname.qfe2 as follows
name(asinhostsfile) group groupname -failover deprecated up

check /etc/default/mpathd for failback config

reboot the machines

tools to bring down/up interface

if_mpadm -d hme0
if_mpadm -r hme0


*************** Configuring services for HA ************

Monday, December 17, 2007

"business is more of a personal relation than your products"

annau...
"business is more of a personal relation than your products"
it is a real punch line...i vl keep it mind always...today myself anda colleague made 500/- in 5 minutes in his account and left theoffice for marketing...manj...even v can open account and trade as wewish...awesome...
vl catch up...
manju.

Wednesday, December 12, 2007

some routing protocol fundas

EIGRP http://en.wikipedia.org/wiki/EIGRP

Enhanced Interior Gateway Routing Protocol (EIGRP) is a Cisco proprietary routing protocol loosely based on their original IGRP. EIGRP is an advanced distance-vector routing protocol, with optimizations to minimize both the routing instability incurred after topology changes, as well as the use of bandwidth and processing power in the router. EIGRP and IGRP are compatible with each other.

The data EIGRP collects is stored in three tables:

Neighbor Table: Stores data about the neighbouring routers,

Topology Table: It effectively contains the aggregation of the routing tables gathered from all the neighbours, with their respective metric. This will be in two states "ACTIVE" during the aquiring and reshuffle process ( when a router added or went down), and "PASSIVE" during the stable topology is established.

Routing table: Stores the actual routes to all destinations; the routing table is populated from the topology table with every destination network.

STP http://en.wikipedia.org/wiki/Spanning_tree_protocol

Spanning Tree Protocol Is an OSI layer-2 protocol which ensures a loop free topology for any bridged LAN

Multiple active paths between network nodes causes a bridge loop. Bridge loops create several problems.it creates a spanning tree within a mesh network of connected layer-2 bridges (typically ethernet switches), and disables the links which are not part of that tree, leaving a single active path between any two network nodes.

It acts with following rules

Elect a root bridge
Determine the least cost paths to the root bridge
Disable all other root paths.
Modifications in case of ties

There are 3 types of STP
1. Per-VLAN Spanning Tree (PVST)
2. Rapid Spanning Tree Protocol (RSTP)
3. Multiple Spanning Tree Protocol (MSTP)

OSPF http://en.wikipedia.org/wiki/OSPF

The Open Shortest Path First (OSPF) protocol is a hierarchical interior gateway protocol (IGP) for routing in Internet Protocol, using a link-state in the individual areas that make up the hierarchy. A computation based on Dijkstra's algorithm is used to calculate the shortest path tree inside each area.

An OSPF network is divided into areas

Backbone area

The backbone area (also known as area zero or area 0.0.0.0)is responsible for distributing routing information between nonbackbone areas. The backbone must be contiguous, but it does not need to be physically contiguous; backbone connectivity can be established and maintained through the configuration of virtual links. All OSPF areas must connect to the backbone area.

Stub area
A stub area is an area which does not receive external routes except the default route, but does receive inter-area routes. This kind of area is useful when, for example, all Internet access goes through autonomous system border routers (ASBRs) in Area 0.0.0.0, but there are multiple paths to other nonzero areas in the OSPF domain.

OSPF defines the following router types:

* Area border router (ABR)
* Autonomous system border router (ASBR)
* Internal router (IR)
* Backbone router (BR)


Designated "router"

A designated router (DR) is the router interface elected among all routers on a particular multiaccess network segment, generally assumed to be broadcast multiaccess.

A backup designated router (BDR) is a router that becomes the designated router if the current designated router has a problem or fails