A Poor Man's Guide to Fail-Over.

or
How to Fail Over Systems Using Shared Storage but not Using Clustering Software

Conributed by Brad Leak


Manual Fail Over Steps:

Assumptions:
Two hosts with shared storage. The hosts are named hostA and hostB.
Volume Management using Veritas File System and Volume Manager
Two disk groups: "rootdg" and "data_dg"

rootdg contains normal local system volumes (rootvol, swapvol, var, etc.) data_dg contains one volume named data01_vol
data01_vol will be mounted on /opt/data01

The local (maintenance) IP of hostA is 192.68.13.10.
The local (maintenance) IP of hostB is 192.68.13.11.
Another virtual IP and hostname is reserved for access. The IP is 192.68.13.12. The hostname is hostV.

This simply maps a diskgroup failover. I'll include something like NFS and Oracle later.

===SUMMARY OF STEPS:===
/* On failed hostA: */
Stop application(s) in question.
Unmount volume(s).
Stop volume(s).
Deport diskgroup(s).
Un-configure Virtual IP address. /* On hostB: */
Configure Virtual IP address.
Import diskgroup(s).
Start volume(s).
fsck the volume(s).
Mount volume(s).
Start application(s) in question.


===DETAILED STEPS:===

=BEFORE FAIL OVER=
=hostA:=

TY NAME          ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg data_dg       data_dg      -        -        -        -        -       -

dm data_dg01     c1t0d0s2     -        35282944 -        -        -       -

v  data01_vol    fsgen       ENABLED   70578176 -        ACTIVE   -       -
pl data01_vol-01 data01_vol  ENABLED   70578176 -        ACTIVE   -       -
sd data_dg-01    data01_vol-01 ENABLED 70578176 0        -        -       -





=hostB:=


=START FAIL OVER=

hostA:
/*      Stop application(s) in question.        */
# umount /opt/data01
# vxvol -g data_dg stopall
# vxdg deport data_dg
# vxdg list
NAME STATE ID
rootdg enabled 963868050.1025.hostA

hostB:

TY NAME          ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg data_dg       data_dg      -        -        -        -        -       -

dm data_dg01     c1t0d0s2     -        35282944 -        -        -       -

v  data01_vol    fsgen       ENABLED   70578176 -        ACTIVE   -       -
pl data01_vol-01 data01_vol  ENABLED   70578176 -        ACTIVE   -       -
sd data_dg-01    data01_vol-01 ENABLED 70578176 0        -        -       -

# mount -F vxfs /dev/vx/dsk/data_dg/data01_vol /opt/data01

/*      Start application(s) in question.               */