Scalable Database Server, HiRDB Version 8 Installation and Design Guide
This section explains the system file creation procedure by way of example, based on the following system configuration:
Define the system files in the HiRDB system definitions.
Define the unit status files in the unit control information definitions.
set pd_syssts_file_name_1="usts1","/sysarea01/usts01a"\
,"/sysarea02/usts01b"
set pd_syssts_file_name_2="usts2","/sysarea02/usts02a"\
,"/sysarea03/usts02b"
set pd_syssts_file_name_3="usts3","/sysarea03/usts03a"\
,"/sysarea01/usts03b"
|
Define system log files, the synchronization point dump file, and server status files in the single server definitions.
set pd_log_rec_leng=4096
pdlogadfg -d sys -g log1 ONL
pdlogadfg -d sys -g log2 ONL
pdlogadfg -d sys -g log3 ONL
pdlogadpf -d sys -g log1 -a "/sysarea01/log01a"\
-b "/sysarea02/log01b"
pdlogadpf -d sys -g log2 -a "/sysarea02/log02a"\
-b "/sysarea03/log02b"
pdlogadpf -d sys -g log3 -a "/sysarea03/log03a"\
-b "/sysarea01/log03b"
|
pdlogadfg -d spd -g sync1 ONL pdlogadfg -d spd -g sync2 ONL pdlogadfg -d spd -g sync3 ONL pdlogadpf -d spd -g sync1 -a "/sysarea01/sync01" pdlogadpf -d spd -g sync2 -a "/sysarea02/sync02" pdlogadpf -d spd -g sync3 -a "/sysarea03/sync03" |
set pd_sts_file_name_1="ssts1","/sysarea01/ssts01a"\
,"/sysarea02/ssts01b"
set pd_sts_file_name_2="ssts2","/sysarea02/ssts02a"\
,"/sysarea03/ssts02b"
set pd_sts_file_name_3="ssts3","/sysarea03/ssts03a"\
,"/sysarea01/ssts03b"
|
Use the pdfmkfs command to create the HiRDB file system areas.
pdfmkfs -n 50 -l 20 -i -k SYS /sysarea01 pdfmkfs -n 50 -l 20 -i -k SYS /sysarea02 pdfmkfs -n 50 -l 20 -i -k SYS /sysarea03 |
Use the pdloginit command to create the system log files.
pdloginit -d sys -f /sysarea01/log01a -n 1024 pdloginit -d sys -f /sysarea01/log03b -n 1024 pdloginit -d sys -f /sysarea02/log02a -n 1024 pdloginit -d sys -f /sysarea02/log01b -n 1024 pdloginit -d sys -f /sysarea03/log03a -n 1024 pdloginit -d sys -f /sysarea03/log02b -n 1024 |
Use the pdloginit command to create the synchronization point dump file.
pdloginit -d spd -f /sysarea01/sync01 -n 64 pdloginit -d spd -f /sysarea02/sync02 -n 64 pdloginit -d spd -f /sysarea03/sync03 -n 64 |
Use the pdstsinit command to create the server status files.
pdstsinit -s sds1 -f /sysarea01/ssts01a -l 4096 -c 256 pdstsinit -s sds1 -f /sysarea01/ssts03b -l 4096 -c 256 pdstsinit -s sds1 -f /sysarea02/ssts02a -l 4096 -c 256 pdstsinit -s sds1 -f /sysarea02/ssts01b -l 4096 -c 256 pdstsinit -s sds1 -f /sysarea03/ssts03a -l 4096 -c 256 pdstsinit -s sds1 -f /sysarea03/ssts02b -l 4096 -c 256 |
Use the pdstsinit command to create the unit status files.
pdstsinit -u unt1 -f /sysarea01/usts01a -l 4096 -c 256 pdstsinit -u unt1 -f /sysarea01/usts03b -l 4096 -c 256 pdstsinit -u unt1 -f /sysarea02/usts02a -l 4096 -c 256 pdstsinit -u unt1 -f /sysarea02/usts01b -l 4096 -c 256 pdstsinit -u unt1 -f /sysarea03/usts03a -l 4096 -c 256 pdstsinit -u unt1 -f /sysarea03/usts02b -l 4096 -c 256 |
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.