GreenPlum 大数据平台--备份-邮件配置-gpcrondump & gpdbrestore(五)
01,备份
生成备份数据库
[gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v
[gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -l /gpbackup/back2/gpcorndump.log -x postgres -v
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Full database
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped = postgres
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master port =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory = /greenplum/data/master/gpseg-
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Ensuring remaining free disk > Continue with Greenplum dump Yy|Nn (default=N):
> y
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-/db_dumps/ not found,will try to create
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MakeDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MakeDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Created /greenplum/data/master/gpseg-/db_dumps/
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg- on master
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpTargets
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Configuring for single database dump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpTargets
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Validating disk space
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDiskSpace
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDiskSpace
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319035503_table
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p -U gpadmin --gp-d=db_dumps/ --gp-r=/greenplum/data/master/gpseg-/db_dumps/ --gp-s=p --gp-k= --no-lock --gp-c --no-expand-children "postgres"
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Created public.gpcrondump_history in postgres database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in postgres database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Target database = postgres
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Full database
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Status = COMPLETED
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[WARNING]:-Found neither /usr/local/greenplum-db/./bin/mail_contacts nor /home/gpadmin/mail_contacts
:::: gpcrondump:greenplum01:gpadmin-[WARNING]:-Unable to send dump email notification
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-To enable email notification, create /usr/local/greenplum-db/./bin/mail_contacts or /home/gpadmin/mail_contacts containing required email addresses
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
[
在最后面说配置邮件.那我们来试试把
01-1,邮件
查看怎么配置邮件
gpbackup will send out status email notifications after a back up operation
completes, if you place a file named mail_contacts in the home directory of the
Greenplum database superuser (gpadmin) or in the same directory as the
gpbackup utility ($GPHOME/bin). This file must contain one email address per line. gpbackup issues a warning if
it cannot locate a mail_contacts file in either location. If both locations have a
mail_contacts file, then the one in $HOME takes precedence. Note: The UNIX mail utility must be running on the Greenplum Database host
and must be configured to allow the Greenplum superuser (gpadmin) to send
email.
编写地址到>$GPHOME/bin/mail_contacts
echo "kingle_work@163.com" >mail_contacts
重新执行就有了.配置邮件的话需要启动邮件服务,具体操作可以回复邮件
02,备份数据
备份数据 的位置通过上面的备份信息可以看出
03,增量备份
创建数据:
gpdb=# create database test2
gpdb-# ;
CREATE DATABASE
gpdb=# create table test1 (id int,name varchar(128));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
CREATE TABLE
gpdb=# insert into test1 values(1,'hello');
INSERT 0 1
gpdb=# insert into test1 values(2,'hello');
INSERT 0 1
gpdb=# SELECT * from test1
gpdb-# ;
id | name
----+-------
1 | hello
2 | hello
(2 rows)
开始备份:
[gpadmin@greenplum01 ~]$ gpcrondump -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Bypassing disk space checks for incremental backup
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master port =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory = /greenplum/data/master/gpseg-
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off Continue with Greenplum dump Yy|Nn (default=N):
> y
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-/db_dumps/ exists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg- on master
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402_table
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p -U gpadmin --gp-d=db_dumps/ --gp-r=/greenplum/data/master/gpseg-/db_dumps/ --gp-s=p --gp-k= --no-lock --gp-c --no-expand-children "gpdb" --table-file=/tmp/dirty_backup_list_otvbnB --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Releasing pg_class lock
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_otvbnB"' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_otvbnB"' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in gpdb database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Target database = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Status = COMPLETED
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailEvent
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Sending mail to kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Email command string= echo "Completed for database gpdb with return code 0 [Start=04:44:02 End=04:44:09] Options passed [-x gpdb -v --incremental]" | /bin/mail -s "Report from gpcrondump on host greenplum01 [COMPLETED]" kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
04,继续增量备份
备份:
gpcrondump -x gpdb -v --incremental
[gpadmin@greenplum01 ~]$ gpcrondump -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Bypassing disk space checks for incremental backup
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master port =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory = /greenplum/data/master/gpseg-
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off Continue with Greenplum dump Yy|Nn (default=N):
> y
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-/db_dumps/ exists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg- on master
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319050016_table
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p -U gpadmin --gp-d=db_dumps/ --gp-r=/greenplum/data/master/gpseg-/db_dumps/ --gp-s=p --gp-k= --no-lock --gp-c --no-expand-children "gpdb" --table-file=/tmp/dirty_backup_list_8b9DHz --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Releasing pg_class lock
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_8b9DHz"'had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_8b9DHz"'had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319050016.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319050016.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in gpdb database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Target database = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Status = COMPLETED
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailEvent
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Sending mail to kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Email command string= echo "Completed for database gpdb with returncode 0 [Start=05:00:16 End=05:00:23] Options passed [-x gpdb -v --incremental]" | /bin/mail -s "Report from gpcrondump on host greenplum01 [COMPLETED]" kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
一,恢复
01,数据删除恢复
gpdb=# DELETE FROM test1
gpdb-# ;
DELETE
gpdb=# SELECT * from test1;
id | name
----+------
( rows)
02, 恢复全量
gpdbrestore -l /gpbackup/back3/gpcorndump.log -t -T public.test1 --truncate --redirect gpdb
-t 后面的是时间戳,每个日志生成都有,选择对应的时间就行
删除数据后的恢复:
[gpadmin@greenplum01 ~]$ gpdbrestore -l /gpbackup/back4/gpcorndump.log -t -T public.test1 --truncate --redirect gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -l /gpbackup/back4/gpcorndump.log -t -T public.test1 --truncate --redirect gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type = Table Restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table = public.test1
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method = Specific table restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp =
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump = On
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects = Off
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance = f
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:------------------------------------------- Continue with Greenplum restore Yy|Nn (default=N):
> y
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Running metadata restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Invoking commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_5PvlS8 --gp-c -d "gpdb" -s /greenplum/data/master/gpseg-/db_dumps//gp_dump_-1_1_20190320015752.gz -P
:::: gpdbrestore:greenplum01:gpadmin-[WARNING]:-gpdbrestore finished but ERRORS were found, please check the restore report file for details
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Expanding parent partitions if any in table filter
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_RH6W_s --gp-c -d "gpdb" -a:
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Running post data restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_RH6W_s --gp-c -d "gpdb" -P:
:::: gpdbrestore:greenplum01:gpadmin-[WARNING]:-gpdbrestore finished but ERRORS were found, please check the restore report file for details
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
[gpadmin@greenplum01 ~]$ psql -d gpdb
psql (8.3.)
Type "help" for help. gpdb=# SELECT * from test1;
id | name
-----+-------
| linda
| lily
| tom
| jack
( rows)
03,恢复增量
gpdbrestore -t -T public.test1 -v --truncate --noplan --redirect gpdb
[gpadmin@greenplum01 ~]$ gpdbrestore -t -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -t -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GpdbRestore
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type = Incremental Table Restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table = public.test1
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method = Specific table restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp =
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump = On
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects = Off
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance = f
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:------------------------------------------- Continue with Greenplum restore Yy|Nn (default=N):
> y
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting RestoreDatabase
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_TKsXql --gp-c -d "gpdb" -a:
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_TKsXql"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_TKsXql"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending RestoreDatabase
[gpadmin@greenplum01 ~]$ psql -d gpdb
psql (8.3.)
Type "help" for help. gpdb=# SELECT * from test1;
id | name
-----+-------
| tom
| lily
| xixi
| linda
| jack
( rows)
gpdbrestore -t -T public.test1 -v --truncate --noplan --redirect gpdb
[gpadmin@greenplum01 ~]$ gpdbrestore -t -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -t -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GpdbRestore
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type = Incremental Table Restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table = public.test1
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method = Specific table restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp =
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump = On
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects = Off
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance = f
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:------------------------------------------- Continue with Greenplum restore Yy|Nn (default=N):
> y
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting RestoreDatabase
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_Q5X_Q3 --gp-c -d "gpdb" -a:
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_Q5X_Q3"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_Q5X_Q3"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending RestoreDatabase
[gpadmin@greenplum01 ~]$ psql -d gpdb
psql (8.3.)
Type "help" for help. gpdb=# SELECT * from test1;
id | name
-----+-------
| jack
| lily
| xixi
| tom
| hhaa
| linda
( rows) gpdb=# exit
GreenPlum 大数据平台--备份-邮件配置-gpcrondump & gpdbrestore(五)的更多相关文章
- GreenPlum 大数据平台--非并行备份(六)
一,非并行备份(pg_dump) 1) GP依然支持常规的PostgreSQL备份命令pg_dump和pg_dumpall 2) 备份将在Master主机上创建一个包含所有Segment数据的大的备份 ...
- GreenPlum 大数据平台--并行备份(四)
01,并行备份(gp_dump) 1) GP同时备份Master和所有活动的Segment实例 2) 备份消耗的时间与系统中实例的数量没有关系 3) 在Master主机上备份所有DDL文件和GP相关的 ...
- GreenPlum 大数据平台--监控
数据库状态监控活动 活动 过程 纠正措施 列出当前状态为down的Segment.如果有任何行被返回,就会生成一个警告或者告警. 推荐频率:每5到10分钟 重要度: IMPORTANT 在postgr ...
- GreenPlum 大数据平台--介绍
一,GreenPlum 01,介绍: Greenplum是一种基于PostgreSQL的分布式数据库,其采用shared-nothing架构,主机.操作系统.内存.存储都是自我控制的,不存在共享. 官 ...
- GreenPlum 大数据平台--外部表(三)
一,外部表介绍 Greenplum 在数据加载上有一个明显的优势,就是支持数据的并发加载,gpfdisk是并发加载的工具,数据库中对应的就是外部表 所谓外部表,就是在数据库中只有表定义.没有数据,数据 ...
- GreenPlum 大数据平台--运维(三)
一,操作命令 01,启动gpstart 参数说明 COMMAND NAME: gpstart Starts a Greenplum Database system. ***************** ...
- GreenPlum 大数据平台--常用命令
gpstate 命令 参数 作用 gpstate -b => 显示简要状态 gpstate -c => 显示主镜像映射 gpstart -d => 指定数据目录(默认值:$MASTE ...
- GreenPlum 大数据平台--安装
1. 环境准备 01, 安装包准备: Greenplum : >>>>链接地址 Pgadmin客户端 : >>>链接地址 greenplum-cc-web ...
- GreenPlum 大数据平台--运维(二)
.如何获取查询运行时和已用时间. 例子: Select tstart, tfinish, (tfinish-tstart) as total_time, trim(query_text) from q ...
随机推荐
- javaweb dom4j解析xml文档
1.什么是dom4j dom4j是一个Java的XML API,是jdom的升级品,用来读写XML文件的.dom4j是一个十分优秀的JavaXML API,具有性能优异.功能强大和极其易使用的特点,它 ...
- ArcGIS Engine 中对栅格数据的波段信息统计 (转)
先打开栅格文件所在的工作空间(文件),然后获取其所有的波段,访问每一个波段有时候波段中已经有直方图或统计信息,有时候没有这些信息,可以使用ComputeStatsAndHist()函数对其进行计算(数 ...
- 解决Eclipse+ADT连接夜神模拟器失败问题
问题1: 运行夜神模拟器,cmd执行 adb devices不显示 答案1: 原因可能是夜神模拟器的adb版本与sdk下的adb版本不一致,拷贝sdk下的adb.exe并改名为nox_adb.exe替 ...
- 【转】ANDROID自定义视图——onLayout源码 流程 思路详解
转载(http://blog.csdn.net/a396901990) 简介: 在自定义view的时候,其实很简单,只需要知道3步骤: 1.测量——onMeasure():决定View的大小 2.布局 ...
- .net core in Docker 部署方案(随笔)
前一段时间由于项目需要 .net core 在docker下的部署,途中也遇到很多坑,看了各同行的博客觉得多多少少还是有些问题,原本不想写此篇文章,由于好友最近公司也需要部署,硬是要求,于是花了些时间 ...
- 温故而知新:什么是wcf
1.什么是WCF.WCF是Windows Communication Fundation的缩写,是微软在.net 3.0 的时候引进的,用于开发可交互的分布式应用程序,是由微软发展的一组数据通信的应用 ...
- 1、认识Socket
专业术语定义:(不易理解浏览大体意思即可) 网络上的两个程序通过一个双向的通信连接实现数据的交换,这个连接的一端称为一个socket. 建立网络通信连接至少要一对端口号(socket).socket本 ...
- Effective Java笔记
chapter 1 java支持四种类型:interface,class,array,primitive(基本类型) chapter 2 创建对象方式: ①构造器 ②静态工厂方法代替构造器:名称可以按 ...
- Mysql初识数据库《三》数据库概述
1 什么是数据(Data) 描述事物的符号记录称为数据,描述事物的符号既可以是数字,也可以是文字.图片,图像.声音.语言等,数据由多种表现形式,它们都可以经过数字化后存入计算机 在计算机中描述一个事物 ...
- IT职场中外企面试最爱提的问题
1.请介绍一下你自己. 这是外企常问的问题.一般人回答这个问题过于平常,只说姓名.年龄.爱好.工作经验,这些在简历上都有,其实,外企最希望知道的是求职者能否胜任工作,包括:最强的技能.最深入研究的知识 ...