1 配置文件dmdcr_cfg.ini
DCR_N_GRP = 2
DCR_VTD_PATH = $/DMDeploy/ddfs/DSS/DSS01/vtd.asm
DCR_OGUID = 19626
[GRP]
DCR_GRP_TYPE = CSS
DCR_GRP_NAME = GRP_CSS
DCR_GRP_N_EP = 2
DCR_GRP_DSKCHK_CNT = 10
[GRP_CSS]
DCR_EP_NAME = CSS1
DCR_EP_HOST = 192.168.56.174
DCR_EP_PORT = 35641
[GRP_CSS]
DCR_EP_NAME = CSS2
DCR_EP_HOST = 192.168.56.175
DCR_EP_PORT = 35641
[GRP]
DCR_GRP_TYPE = DB
DCR_GRP_NAME = GRP_DSC
DCR_GRP_N_EP = 2
DCR_GRP_DSKCHK_CNT = 10
[GRP_DSC]
DCR_EP_NAME = DSC1
DCR_EP_PORT = 35610
DCR_CHECK_PORT = 35657
[GRP_DSC]
DCR_EP_NAME = DSC2
DCR_EP_PORT = 35610
DCR_CHECK_PORT = 35657
2.配置文件dmdfs.ini
[DRS01]
dfs_host= 192.168.83.139
dfs_port= 3236
[DRS02]
dfs_host= 192.168.83.138
dfs_port= 3236
3.使用dmasmcmd工具初始化
4.配置文件dminit.ini
db_name = dsc
system_path = /opt/DMDeploy/db_on_ddfs/dm_config
system = $/DMDeploy/ddfs/DSS/DSS01/system.dbf
system_size = 128
roll = $/DMDeploy/ddfs/DSS/DSS01/roll.dbf
roll_size = 128
main = $/DMDeploy/ddfs/DSS/DSS01/main.dbf
main_size = 128
ctl_path = $/DMDeploy/ddfs/DSS/DSS01/dm.ctl
ctl_size = 8
log_size = 256
dcr_path = $/DMDeploy/ddfs/DSS/DSS01/dcr.asm
dcr_seqno = 0
auto_overwrite = 1
page_size = 8
extent_size = 32
dfs_db_name = db_dsc
share_flag = 1
dfs_flag = 1
dfs_path = $/DMDeploy/ddfs/DSS/DSS01 #数据文件存放在分布式系统里的路径
dfs_host= 192.168.83.139
dfs_port= 3236
[DSC1]
config_path = /opt/DMDeploy/db_on_ddfs/dsc1
port_num = 35610
mal_host = 192.168.83.136
mal_port = 9340
[DSC2]
config_path = /opt/DMDeploy/db_on_ddfs/dsc2
port_num = 35610
mal_host = 192.168.83.137
mal_port = 9340
5.初始化库
dminit control=/opt/DMDeploy/db_on_ddfs/dm_config/dminit.ini
6.注册DMTDD
启动dmdcstool
7.配置文件dmdcr.ini
DSC1节点:
DMDCR_PATH = $/DMDeploy/ddfs/DSS/DSS01/dcr.asm
DMDCR_SEQNO = 0
DSC2节点:
DMDCR_PATH = $/DMDeploy/ddfs/DSS/DSS01/dcr.asm
DMDCR_SEQNO = 1
8.启动CSS
9.启动dmserver
DSC1节点:
./dmserver /opt/DMDeploy/db_on_ddfs/dsc1/dm.ini dcr_ini=/opt/DMDeploy/db_on_ddfs/dm_config/dmdcr.ini
DSC2节点:
./dmserver /opt/DMDeploy/db_on_ddfs/dsc1/dm.ini dcr_ini=/opt/DMDeploy/db_on_ddfs/dm_config/dmdcr.ini