In Interactive SQL, run the CREATE MULTIPLEX
SERVER command:
CREATE MULTIPLEX SERVER mpxnode_w1 DATABASE
'<database path>/mpxtest.db' HOST 'host2' PORT 2957 ROLE WRITER STATUS INCLUDED
This command makes the connected server mpxnode_c into
the coordinator and creates the definition for a secondary writer
server mpxnode_w1.
The server shuts down to re-initialize the server as
a multiplex coordinator. (As a normal part of this shutdown, when
the first secondary node is created, Interactive SQL may return
a disconnected (-308) error that requires no corrective action.)
Back up the catalog store to the directory where the secondary server will
run.
From the secondary node machine, run
this backup command from the computer where the secondary node will
run, because the .db file should be
on a local disk. For example, run the following command from the
directory where the secondary node’s .db file
resides:
If you have changed to the directory where the secondary node’s .db file will
reside, you can specify a dot (.) instead of the path on the dbbackup command.
Remove the transaction log files in the directory where the secondary server
will run:
Add the temporary dbfile in Interactive SQL using the ALTER DBSPACE statement.
Secondary servers do not allow CREATE
DBSPACE.
ALTER DBSPACE IQ_SYSTEM_TEMP ADD FILE mpxnode_w1_temp 'w1_temp1.iqtmp' SIZE 500
Starting the server creates a message log for you, but you
must create the temporary store file yourself. You must connect
to the secondary server to add a temp store file for that server.
Adding temporary store files in multiplex always adds a file specifically
to the server to which you are connected. You can start the server,
but cannot run IQ queries until a temporary store is added.
Multiplex Database Files
Each server in the multiplex uses several files to store data, metadata, and configuration information.