*****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 24, 2007
Sun cluster administration - PART I
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment