Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
f69fb46e
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f69fb46e
编写于
10月 11, 2019
作者:
I
Ivan Novick
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
this check is no longer valid given the changes in backup/restore
we will change this in GPDB 7
上级
54638a08
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
17 deletion
+10
-17
gpMgmt/bin/gpdeletesystem
gpMgmt/bin/gpdeletesystem
+0
-17
gpMgmt/doc/gpconfigs/gpinitsystem_notouch
gpMgmt/doc/gpconfigs/gpinitsystem_notouch
+10
-0
未找到文件。
gpMgmt/bin/gpdeletesystem
浏览文件 @
f69fb46e
...
...
@@ -178,15 +178,6 @@ def display_params(options, dburl, standby, segments, dumpDirsExist):
else
:
raise
GpDeleteSystemException
(
'User canceled'
)
# -------------------------------------------------------------------------
# check_for_dump_files() - checks if there are database dump files
# -------------------------------------------------------------------------
def
check_for_dump_files
(
options
):
logger
.
info
(
'Checking for database dump files...'
)
return
gp
.
GpDirsExist
.
local
(
'check for dump dirs'
,
baseDir
=
options
.
master_data_dir
,
dirName
=
"'*dump*'"
)
\
or
gp
.
GpDirsExist
.
local
(
'check for dump dirs'
,
baseDir
=
options
.
master_data_dir
,
dirName
=
"'*backups*'"
)
def
getTablespaceDirs
():
''' Create list of user-created tablespace locations for each host '''
tblspclocs
=
{}
...
...
@@ -217,14 +208,6 @@ def getTablespaceDirs():
def
delete_cluster
(
options
):
global
g_warnings_generated
# check for dumps if needed
dump_files_exist
=
check_for_dump_files
(
options
)
if
not
options
.
force
and
dump_files_exist
:
logger
.
fatal
(
'Located possible database backup file on Master instance host'
)
logger
.
fatal
(
'in directory %s'
%
options
.
master_data_dir
)
logger
.
fatal
(
'To override database backup file checking use -f option'
)
raise
GpDeleteSystemException
(
'Backup files exist'
)
# get gparray object
logger
.
info
(
'Getting segment information...'
)
dburl
=
dbconn
.
DbURL
(
port
=
options
.
pgport
)
...
...
gpMgmt/doc/gpconfigs/gpinitsystem_notouch
0 → 100644
浏览文件 @
f69fb46e
ARRAY_NAME="GPDB QUICKSTART"
CHECK_POINT_SEGMENTS=8
declare -a DATA_DIRECTORY=(~/gpdb ~/gpdb)
ENCODING=UNICODE
MACHINE_LIST_FILE=./hostlist_singlenode
MASTER_DIRECTORY=~/gpdb
MASTER_PORT=5432
PORT_BASE=6000
SEG_PREFIX=gpsne
TRUSTED_SHELL=ssh
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录