Tuesday, April 28, 2009

AIX - LVM - Unmount File System

Unmount FS

Using umount or unmount command we can umount the file system i.e. file system is moved to off line.

#umount /newfs

After this you run the lsfs –a command it wont display /newfs file system details.

#lsfs –a

AIX - LVM - Mount File System

After creating the file system, we should mount the file system, without file system mount we cannot access the file system using mount command we can mount the file system.

Before mount lsfs command is wont display the /newfs file system

#lsfs –a

That /newfs file system detail is not available

#mount /newfs

Now you execute lsfs command, it will show the /newfs details

#lsfs –a

HACMP - Configuration - Verification

HACMP - Configuration - Verification

~Go to Extended topology --> extended verification and synchronization --> select verify --> correct errors should be yes --> press enter

~After verification is successful continue with the synch.

~Then go to C-SPOC (smitty cl_admin) --> manage HA services --> start cluster services --> start clinfo daemon should be true (or we can enter smitty clstart).

~To check whether cluster is running or not check with lssrc -g cluster when doing a failover always check /tmp/hacmp.out with
# tail -f /tmp/hacmp.out

HACMP - Configuration - Contd

HACMP - Configuration - Contd

~Go back to config HA commn Interfaces., --> Add commn Int., --> Add discovered --> select devices --> add devices

~Again Extended topology --> Add persistent IPs --> select node1
select the n/w and persistent IP.

~Lets go back to extended config --> Extended resource config --> config HA service IP label --> add the service IP (here prod_svc,dev_svc)

~Now lets go back to extended resource config --> HA extended RG config --> Add RG --> give the RG name (here test_rg).

~Now apply the service IPs and VGs we defined in the RG basket.

~Lets go back and select change/show attributes for RG --> select RG (here test_rg) -->select the service IP and VG in their respective fields.

Now lets verify our config.

HACMP - Configuration

HACMP - Configuration

~smitty hacmp --> extended configuration --> extended topology-->config a HACMP cluster --> Add/change/show a HA cluster

~Here give the cluster name (here test_cl).

~Press F3 to go back

~Again Extended topology --> config a HA node --> Add a node to a HA cluster

~Here give a node name (here aix1) and a communication path (here aix1_nsvc1).

~Similarly add another node.
Again Extended topology  config HA n/w  Add a n/w
add ether,rs232 and then SCSI one by one.

~Now go back to extended config  Discover devices....hacmp attempts to discover other devices based on the info provided by us.

~Again Extended topology --> config HA commn., Interfaces --> Add a commn., Interface --> Add discovered --> commn Int., -->select All --> select en0,en1

Monday, April 27, 2009

HACMP - Disk HeartBeat

HACMP - Disk HeartBeat

~cd to /usr/sbin/rsct/bin (not needed if path is already added)

~First execute # ./dhb_read -p hdisk2 -r on one node where hdisk2 is your heartbeat disk.

~Then execute # ./dhb_read -p hdisk2 -t on the other node.

~If they are working normally we should get a message Link operating normally.

HACMP -Installation - Contd

~Now lets create VGs for diskheartbeat,production and development(here dhbvg,prodvg and devvg respectively).

~While creating a VG make lets make sure that make vg active on system restart is turned off because this will be taken care of by HACMP.

~Also after the creation of the VG we should not forget to turn off the quorum as this will interfere with the functioning of HACMP.

~Finally we should specify a major number while creating a VG.
Now we should varyoff the VGs,export them and import them in node2(here AIX2).

~After importing varyoff the VGs.

---NON-IP(RS-232) N/W---
~smitty tty --> add tty -->rs232 --> select enable login and press enter.

~To test which tty device is being used for heartbeat enter...

~stty < /dev/tty1 (run this on each node) ~If you get an echo status saying OK then its working fine.

HACMP - Installation

To install HACMP....through smitty

-smitty installp and select cd as the source.

-Press F4 to se the list of filesets and select..

-cluster.adt.es

-cluster.doc.en_us.es

-cluster.es.cfs

-cluster.es.clvm

-cluster.es.cspoc

-cluster.es.plugins

-cluster.haview

-cluster.license

-rsct.exp

-Do Not Forget To RESTART the NODE after Installation.

HACMP Installation--Pre-Installation Tasks

~irst do smitty tcpip and install the communicatoin devices en0 and en1 so that we can establish communication between the two nodes.

~Then update the /etc/hosts file with the non-service IPs,persistent IPs and service IPs.

~Install bos.adt,bos.compat and any cluster.* filesets in AIX CD1. Also install rsct and bos.clvm filesets from CD3.

Typical HACMP Design

 
Posted by Picasa