Skip to content

Commit 9ba3523

Browse files
committed
[volume][fix] mds v2 log dir
1 parent e45fb79 commit 9ba3523

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"env": {
1414
"CGO_ENABLED": "1",
1515
"PATH": "/opt/rh/gcc-toolset-13/root/usr/bin:${env:PATH}",
16-
"dingo_cluster": "v4.0"
16+
"dingo_cluster": "mdsv2"
1717
},
1818
"args": [
1919
"deploy",

cli/command/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func displayStatus(dingoadm *cli.DingoAdm, dcs []*topology.DeployConfig, options
192192
if isMdsv2 {
193193
dingoadm.WriteOutln("cluster name : %s", dingoadm.ClusterName())
194194
dingoadm.WriteOutln("cluster kind : %s", dcs[0].GetKind())
195-
dingoadm.WriteOutln("mdsv2 addr : %s", getClusterMdsV2Addr(dcs))
195+
dingoadm.WriteOutln("mds addr : %s", getClusterMdsV2Addr(dcs))
196196
if len(roles) == 1 {
197197
dingoadm.WriteOutln("coordinator addr : %s", dcs[0].GetDingoStoreCoordinatorAddr())
198198
} else {

internal/configure/topology/dc_get.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ const (
5252
LAYOUT_V2_CONF_SRC_DIR = "/conf" // change mdsv2 confv2 to conf
5353
LAYOUT_SERVICE_BIN_DIR = "/sbin"
5454
LAYOUT_SERVICE_CONF_DIR = "/conf"
55-
LAYOUT_SERVICE_LOG_DIR = "/logs"
55+
LAYOUT_SERVICE_LOGS_DIR = "/logs"
56+
LAYOUT_SERVICE_LOG_DIR = "/log"
5657
LAYOUT_SERVICE_DATA_DIR = "/data"
5758
LAYOUT_TOOLS_DIR = "/tools"
5859
LAYOUT_TOOLS_V2_DIR = "/tools-v2"
@@ -494,7 +495,7 @@ func (dc *DeployConfig) GetProjectLayout() Layout {
494495
// format
495496
chunkserverDataDir := fmt.Sprintf("%s/%s%s", root, ROLE_CHUNKSERVER, LAYOUT_SERVICE_DATA_DIR)
496497

497-
serviceLogDir := serviceRootDir + LAYOUT_SERVICE_LOG_DIR
498+
serviceLogDir := serviceRootDir + LAYOUT_SERVICE_LOGS_DIR
498499
serviceDataDir := serviceRootDir + LAYOUT_SERVICE_DATA_DIR
499500
dingoStoreRaftDir := ""
500501
dingoStoreDocumentDir := ""

0 commit comments

Comments
 (0)