If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Use chunks from 2 different machines?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-03, 06:43
holtermp holtermp is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Use chunks from 2 different machines?

Hi,

I want to do this:

We have a main and a backup server (HPUX11), sharing a disk-array containing the chunks (raw devices) of the Informix 7.3 runnig on the main server.

If the main server crashes (or is down for maintenance) I want to start an informix on the backup machine using the same chunk files that are normally used by the main server. (the device file names for the chunk files will be identical, the hardware paths wonŽt be).

Has anybody done this before?

Cheers, Peter
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 07:27
adityanlal adityanlal is offline
Registered User
 
Join Date: Jul 2003
Location: Calcutta, India
Posts: 42
Hi!

Assuming that the dbspace containing this chunk is not critical, doenot contain logs, and is not rootdbs, whenyou create the dbspace on backup server give this chunk as the chunk name (link) and continue as usual, I hope this will work. I have done something similar, chunk being shared by 2 informixserver residing on the same m/c and the chunk was a cooked file.

I hope this will work, Thanks
adityanlal
Reply With Quote
  #3 (permalink)  
Old 12-29-03, 07:55
holtermp holtermp is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
That sounds quite good.
actually I wanted to go a bit further:
I simply wanted to use the same onconfig file on both machine. The ROOTPATH points to the 1st chunk of the rootdbs.
Everything else should be configured in there.

The spaces will also contain logical logs.
The spaces will be raw devices.

Do you think that will make any difference?

Peter
Reply With Quote
  #4 (permalink)  
Old 12-30-03, 03:03
adityanlal adityanlal is offline
Registered User
 
Join Date: Jul 2003
Location: Calcutta, India
Posts: 42
I don't think that is possible i.e. using the same ROOTDBS by 2 different informix server. This is because the rootdbs contains the critical data and moreover you are placing the logs in rootdbs. Whenever we try to bring up the Informix server, it reads from a file called $INFORMIXDIR/etc/oncfg_<DBSERVER Name>.<DBSERVER Number> which contains the logical log details, checkpoints details and these will be different for 2 different servers. Even if you start (from scratch) with same config. this files will contain different information for 2 different servers.

Thanks
adityanlal
Reply With Quote
  #5 (permalink)  
Old 12-30-03, 03:36
chrisha chrisha is offline
Registered User
 
Join Date: Mar 2003
Posts: 7
Re: Use chunks from 2 different machines?

Hi Peter,

I have another config. I'm working with Veritas Volume Manager(VVM), think you have to work with something similar to create Volumes for the chunks. With VVM you can export and import Volumegroups, even with a force option, when one server crashes. But using links is ok too.

You only have to copy once the INFORMIXDIR and when any change is made, do it on both. And take care of starting up both server ;-(

Cheers
Christian
Reply With Quote
  #6 (permalink)  
Old 12-30-03, 05:35
holtermp holtermp is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Christian,
thanks for the info. We are using the LVM (logical volume manager) that comes with HPUX.

Adityanlal,
I am not sure wether we are talking about the same thing. I want to access the chunks alternatively, only one informix up at one time.

I could not find any $INFORMIXDIR/etc/oncfg_<DBSERVER Name>.<DBSERVER Number> (I think this Informix 9.x?). I only have the "normal" onconfig file. Of course as a Christian said, the onconfig (and the rest of the installation) must be identical on both installations.

Unfortunnately I cannot test that stuff at the moment, but IŽll post it here when I know

Thank you all,
Peter
Reply With Quote
  #7 (permalink)  
Old 12-30-03, 16:21
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
You will need to refer to all of your dbspaces/chunks through links so the names are identical for both instances. The link can then point to different locations ie raw logical volumns or devices.
__________________
Fred Prose
Reply With Quote
  #8 (permalink)  
Old 01-28-04, 12:04
holtermp holtermp is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Hi all,
as promised my report as to how it went:

it went fine. After stopping the SERVERA and starting SERVERB
we importerted the volume groups from the Raid an set them to active.

Then we had to alter the onconfig file on SERVERB slightly:
1) Altered the hostname
2) Altered the number of processors SERVERA had 4 CPUs, SERVERB only 2 CPUs

Also you have to alter the sqlhosts file to reflect the new hostname.

As SERVERB had only 256MB of mem (vs. 1024 MB on SERVERA), I used onmonitor to tune down the amount of memory needed by the server.
No Problem.
We still can switch easily between the to servers using separate onconfig and sqlhosts files.
Thx again, all
Peter
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On