Swap:Configuring SWAP: Difference between revisions
From Adapt
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Create Configuration Files= | |||
Swap configuration is handled through a java properties file. This file contains a list of local directories that will appear as partitions in SWAP as well as a set of peers. Each SWAP node will require its own properties file. | Swap configuration is handled through a java properties file. This file contains a list of local directories that will appear as partitions in SWAP as well as a set of peers. Each SWAP node will require its own properties file. | ||
Line 28: | Line 30: | ||
peer.2=192.168.1.5 | peer.2=192.168.1.5 | ||
</pre> | </pre> | ||
=Initialize Partition Directories= | |||
=Start Server= |
Revision as of 05:06, 4 February 2010
Create Configuration Files
Swap configuration is handled through a java properties file. This file contains a list of local directories that will appear as partitions in SWAP as well as a set of peers. Each SWAP node will require its own properties file.
The configuration for a three-node swap setup is shown below. The three nodes exist at addresses 192.168.1.4, 192.168.1.5, and 192.168.1.6.
Node 1 (192.168.1.4)
directory.1=/export/xraid1-1/swap-vault directory.2=/export/xraid1-2/swap-vault peer.1=192.168.1.5 peer.2=192.168.1.6
Node 2 (192.168.1.5)
directory.1=/export/xraid3-1/swap-vault directory.2=/export/xraid3-2/swap-vault peer.1=192.168.1.4 peer.2=192.168.1.6
Node 3 (192.168.1.6)
directory.1=/export/xraid5-1/swap-vault directory.2=/export/xraid5-2/swap-vault peer.1=192.168.1.4 peer.2=192.168.1.5