5.4.4 Example of system file creation (HiRDB/Single Server)
(1) Defining system files (specifying HiRDB system definitions)
Define the system files in the HiRDB system definitions.
(a) Unit control information definitions (for unit status files)
Define the unit status files in the unit control information definitions.
- Definition example
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" |
(b) Single server definitions
Define system log files, the synchronization point dump file, and server status files in the single server definitions.
- Definition example of system log files
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" |
- Definition example of synchronization point dump files
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" |
- Definition example of server status files
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" |
(2) Creating the HiRDB file system areas
Use the pdfmkfs command to create the HiRDB file system areas.
- Example of command entry
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 |
(3) Creating the system files
(a) Creating the system log files
Use the pdloginit command to create the system log files.
- Example of command entry
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 |
(b) Creating the synchronization point dump file
Use the pdloginit command to create the synchronization point dump file.
- Example of command entry
pdloginit -d spd -f /sysarea01/sync01 -n 64
pdloginit -d spd -f /sysarea02/sync02 -n 64
pdloginit -d spd -f /sysarea03/sync03 -n 64 |
(c) Creating the server status files
Use the pdstsinit command to create the server status files.
- Example of command entry
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 |
(d) Creating the unit status files
Use the pdstsinit command to create the unit status files.
- Example of command entry
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 |