Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Informix shutdown and startup script for RHEL cluster suite

Posted on 2008-06-24
10
3,222 Views
Last Modified: 2013-12-24
Good day. Can you give us a sample shutdown and start up script for Informix database that is running on a RHEL 4 cluster suite so that if one node fails, the informix database will start automatically on the other node during failover.
0
Comment
Question by:pena_pocholo
  • 4
  • 3
10 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 21877958
oninit starts informix
onmode -kui halts after comiting transaction

informix does transaction replication which is by a grade smarter than "RHEL start automatically"
0
 

Author Comment

by:pena_pocholo
ID: 21879987
Hi,

It will help, but I'm looking for the startup script in which the other node will automatically starts the informix database. Either graceful shutdown or transferring the Cluster Suite services

Thanks in advance
0
 
LVL 62

Expert Comment

by:gheist
ID: 21881765
Informix is pretty much self-contained.

http://www.redbooks.ibm.com/abstracts/sg247488.html?Open

It moved tape libraries and clustered years before mainstream systems got close to that.

Facilities vary between inetd-launched SE, multithreaded IDS and distributed RedBrick.

Let me suggest it co-exists pretty well with whatever cluster software you ever install, but will survive without it
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:pena_pocholo
ID: 21906498
what i'm looking is a script that will start informix automatically on other node when you transfer the service.
This is the senario,
 -transfer the cluster service (for ex. INFORMIX) using "clusvcadm" to other node.
 -Once the INFORMIX service was transferred to the other node the Informix database will automatically start.
0
 
LVL 62

Expert Comment

by:gheist
ID: 21909382
It seems you do not get idea from Informix documentation.
Do you have shared storage? Shared IP address? It is different command lines to oninit and onmode. I cannot guess your Informix and cluster setup,
0
 

Author Comment

by:pena_pocholo
ID: 21912570
yes it has shared storage and IP address
0
 
LVL 62

Accepted Solution

by:
gheist earned 250 total points
ID: 21920874
Then it is quite easy without Informix replication and master/slave coordination.

Do you intend to use raw 2G partitions for informix or one ext2 partition for all data files on shared storage? First gives higher performance but second is somewhat easier to maintain.

You should be absolutely sure storage is avaliable before starting informix using oninit.
Shutdown script is onmode -kuy

Both scripts set LD_PRELOAD or LD_LIBRARY_PATH and runs informix commands as "informix" user.

How to set up informix?

1) Hope you have informix install leaflet - basically install it on both systems in same directory and same numeric user/group ID.
2) create directory with symlinks to informix dbspaces on shared disk (data files)
3) initialize root dbspace with oninit -i on node accessing storage filesystem. (2G-4K is maximum 128MB is minimum)
4a) make sure you use ONSOCTCP x,200 connectors only.(get book named "informix Unleashed" from internet on gory SHM details)
4) now test failover scripts.
Take a note that database has to be checked when you lose storage cable and database state is somewhat incionsistent, under noraml conditions eg for system kernel update scripts will be fine. Not to mention fsck before mounting shared storage etc - this situation has to be checked before running production cluster.
5) add databases on "master" server, fail over to see they get on other side and test common client apps to handle failover.

If you have Informix DBA nearby these instructions are sufficient, otherwise I will spend more time instructing you how to install and initialize informix
0
 
LVL 3

Assisted Solution

by:dibbz
dibbz earned 250 total points
ID: 21996307
Attached init script.
informix.redhat.txt
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question