zoukankan      html  css  js  c++  java
  • GreenPlum 大数据平台--备份-邮件配置-gpcrondump & gpdbrestore(五)

    01,备份

      生成备份数据库

    1 [gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v
    View Code
      1 [gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v
      2 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -l /gpbackup/back2/gpcorndump.log -x postgres -v
      3 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
      4 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
      5 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
      6 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
      7 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
      8 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
      9 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
     10 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
     11 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type                            = Full database
     12 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped                = postgres
     13 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Master port                          = 5432
     14 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory                = /greenplum/data/master/gpseg-1
     15 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program                = Off
     16 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps                       = Off
     17 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression                = On
     18 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files                 = Off
     19 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table                 = On
     20 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files                  = Off
     21 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects                  = Off
     22 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type                     = Off
     23 20190319:03:55:03:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Ensuring remaining free disk         > 10
     24 
     25 Continue with Greenplum dump Yy|Nn (default=N):
     26 > y
     27 20190319:03:55:14:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     28 20190319:03:55:14:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     29 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     30 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     31 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     32 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     33 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
     34 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
     35 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
     36 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
     37 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     38 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
     39 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
     40 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
     41 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
     42 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
     43 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
     44 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
     45 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-1/db_dumps/20190319 not found,will try to create
     46 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MakeDir
     47 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MakeDir
     48 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Created /greenplum/data/master/gpseg-1/db_dumps/20190319
     49 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
     50 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg-1 on master
     51 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
     52 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
     53 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     54 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
     55 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     56 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
     57 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     58 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
     59 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     60 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
     61 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     62 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
     63 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     64 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
     65 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     66 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
     67 20190319:03:55:15:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     68 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     69 
     70 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     71 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
     72 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     73 
     74 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     75 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
     76 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     77 
     78 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     79 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
     80 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     81 
     82 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     83 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
     84 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     85 
     86 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     87 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
     88 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     89 
     90 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     91 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
     92 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     93 
     94 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     95 
     96 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     97 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     98 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
     99 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
    100 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    101 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    102 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    103 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    104 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    105 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    106 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    107 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    108 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    109 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    110 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    111 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    112 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    113 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    114 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    115 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    116 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    117 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
    118 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    119 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpTargets
    120 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Configuring for single database dump
    121 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpTargets
    122 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Validating disk space
    123 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDiskSpace
    124 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    125 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
    126 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateSegDiskSpace)
    127 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    128 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateSegDiskSpace)
    129 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateSegDiskSpace)
    130 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateSegDiskSpace)
    131 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    132 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateSegDiskSpace)
    133 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateSegDiskSpace)
    134 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    135 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    136 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    137 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateSegDiskSpace)
    138 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    139 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    140 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateSegDiskSpace)
    141 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    142 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    143 
    144 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    145 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateSegDiskSpace)
    146 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    147 
    148 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    149 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateSegDiskSpace)
    150 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    151 
    152 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    153 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateSegDiskSpace)
    154 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    155 
    156 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    157 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateSegDiskSpace)
    158 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    159 
    160 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    161 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateSegDiskSpace)
    162 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    163 
    164 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    165 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateSegDiskSpace)
    166 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    167 
    168 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    169 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateSegDiskSpace)
    170 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    171 
    172 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    173 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateSegDiskSpace)
    174 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    175 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    176 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    177 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    178 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    179 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    180 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    181 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    182 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    183 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    184 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    185 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    186 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    187 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    188 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    189 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    190 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    191 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    192 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDiskSpace
    193 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
    194 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319035503_table
    195 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
    196 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
    197 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p 5432 -U gpadmin --gp-d=db_dumps/20190319 --gp-r=/greenplum/data/master/gpseg-1/db_dumps/20190319 --gp-s=p --gp-k=20190319035503 --no-lock --gp-c --no-expand-children "postgres"
    198 20190319:03:55:16:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
    199 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code 0
    200 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
    201 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
    202 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
    203 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
    204 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key = 20190319035503
    205 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
    206 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    207 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    208 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
    209 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
    210 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
    211 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
    212 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
    213 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    214 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    215 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
    216 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
    217 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
    218 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
    219 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    220 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
    221 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    222 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    223 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    224 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    225 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
    226 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    227 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    228 
    229 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    230 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
    231 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    232 
    233 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    234 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
    235 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    236 
    237 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    238 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
    239 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    240 
    241 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    242 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
    243 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    244 
    245 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    246 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
    247 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    248 
    249 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    250 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
    251 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    252 
    253 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    254 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
    255 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    256 
    257 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    258 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
    259 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    260 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    261 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    262 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    263 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    264 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    265 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    266 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    267 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    268 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    269 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    270 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    271 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    272 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    273 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    274 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    275 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    276 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    277 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
    278 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
    279 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
    280 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
    281 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
    282 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
    283 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Created public.gpcrondump_history in postgres database
    284 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
    285 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in postgres database
    286 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
    287 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
    288 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
    289 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Target database                          = postgres
    290 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory                        = 20190319
    291 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type                                = Full database
    292 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories               = Off
    293 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time                          = 03:55:03
    294 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time                            = 03:55:19
    295 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Status                                   = COMPLETED
    296 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key                                 = 20190319035503
    297 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression                    = On
    298 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type                         = Off
    299 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
    300 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
    301 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
    302 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    303 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    304 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    305 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    306 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[WARNING]:-Found neither /usr/local/greenplum-db/./bin/mail_contacts nor /home/gpadmin/mail_contacts
    307 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[WARNING]:-Unable to send dump email notification
    308 20190319:03:55:19:021294 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
    309 20190319:03:55:19:021294 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
    310 [
    View Code

    在最后面说配置邮件.那我们来试试把

    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)

     开始备份:

      1 [gpadmin@greenplum01 ~]$ gpcrondump  -x gpdb -v --incremental
      2 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -x gpdb -v --incremental
      3 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
      4 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Bypassing disk space checks for incremental backup
      5 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
      6 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
      7 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
      8 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
      9 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     10 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
     11 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
     12 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
     13 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
     14 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type                            = Incremental
     15 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     16 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     17 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped                = gpdb
     18 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Master port                          = 5432
     19 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory                = /greenplum/data/master/gpseg-1
     20 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program                = Off
     21 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps                       = Off
     22 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression                = On
     23 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files                 = Off
     24 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table                 = On
     25 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files                  = Off
     26 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects                  = Off
     27 20190319:04:44:02:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type                     = Off
     28 
     29 Continue with Greenplum dump Yy|Nn (default=N):
     30 > y
     31 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     32 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     33 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     34 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     35 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     36 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     37 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     38 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     39 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     40 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     41 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     42 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     43 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     44 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     45 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     46 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     47 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     48 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     49 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
     50 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
     51 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
     52 20190319:04:44:04:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     53 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
     54 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
     55 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
     56 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
     57 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
     58 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
     59 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
     60 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-1/db_dumps/20190319 exists
     61 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
     62 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg-1 on master
     63 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
     64 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
     65 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     66 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
     67 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     68 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
     69 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     70 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
     71 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     72 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
     73 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     74 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
     75 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     76 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
     77 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     78 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
     79 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     80 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     81 
     82 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     83 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
     84 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     85 
     86 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     87 
     88 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     89 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
     90 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     91 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     92 
     93 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
     94 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     95 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
     96 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     97 
     98 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     99 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
    100 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    101 
    102 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    103 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
    104 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    105 
    106 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    107 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
    108 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    109 
    110 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    111 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
    112 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    113 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    114 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    115 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    116 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    117 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    118 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    119 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    120 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    121 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    122 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    123 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    124 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    125 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    126 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    127 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    128 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    129 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    130 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
    131 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
    132 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402_table
    133 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
    134 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
    135 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --incremental
    136 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p 5432 -U gpadmin --gp-d=db_dumps/20190319 --gp-r=/greenplum/data/master/gpseg-1/db_dumps/20190319 --gp-s=p --gp-k=20190319044402 --no-lock --gp-c --no-expand-children "gpdb" --table-file=/tmp/dirty_backup_list_otvbnB --incremental
    137 20190319:04:44:05:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
    138 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code 0
    139 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
    140 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
    141 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
    142 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
    143 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key = 20190319044402
    144 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
    145 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    146 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    147 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
    148 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
    149 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
    150 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
    151 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
    152 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    153 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    154 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
    155 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
    156 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
    157 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
    158 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
    159 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
    160 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    161 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    162 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    163 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    164 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    165 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    166 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Releasing pg_class lock
    167 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    168 
    169 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    170 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
    171 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    172 
    173 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    174 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
    175 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    176 
    177 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    178 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
    179 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    180 
    181 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    182 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
    183 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    184 
    185 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    186 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
    187 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    188 
    189 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    190 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
    191 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    192 
    193 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    194 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
    195 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    196 
    197 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    198 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
    199 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    200 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    201 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    202 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    203 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    204 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    205 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    206 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    207 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    208 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    209 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    210 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    211 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    212 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    213 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    214 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    215 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    216 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
    217 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    218 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_otvbnB
    219 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_otvbnB
    220 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/dirty_backup_list_otvbnB
    221 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/dirty_backup_list_otvbnB
    222 20190319:04:44:09:027072 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=0 completed=True halted=False
    223   stdout=''
    224   stderr=''
    225 20190319:04:44:09:027072 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=0 completed=True halted=False
    226   stdout=''
    227   stderr=''
    228 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    229 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    230 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    231 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    232 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    233 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
    234 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
    235 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
    236 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
    237 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CreateIncrementsFile
    238 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CreateIncrementsFile
    239 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
    240 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
    241 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
    242 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
    243 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    244 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
    245 20190319:04:44:09:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    246 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
    247 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
    248 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    249 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in gpdb database
    250 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
    251 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
    252 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
    253 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Target database                          = gpdb
    254 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory                        = 20190319
    255 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type                                = Incremental
    256 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories               = Off
    257 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time                          = 04:44:02
    258 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time                            = 04:44:09
    259 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Status                                   = COMPLETED
    260 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key                                 = 20190319044402
    261 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression                    = On
    262 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type                         = Off
    263 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
    264 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
    265 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
    266 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    267 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    268 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    269 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    270 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailEvent
    271 20190319:04:44:10:027072 gpcrondump:greenplum01:gpadmin-[INFO]:-Sending mail to kingle_work@163.com
    272 20190319:04:44:10:027072 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@163.com
    273 20190319:04:44:11:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailEvent
    274 20190319:04:44:11:027072 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
    View Code

    04,继续增量备份

    备份:

    gpcrondump  -x gpdb -v --incremental
      1 [gpadmin@greenplum01 ~]$ gpcrondump  -x gpdb -v --incremental
      2 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -x gpdb -v --incremental
      3 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
      4 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Bypassing disk space checks for incremental backup
      5 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
      6 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
      7 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
      8 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
      9 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
     10 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
     11 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     12 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
     13 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
     14 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
     15 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
     16 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type                            = Incremental
     17 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
     18 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
     19 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     20 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     21 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped                = gpdb
     22 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Master port                          = 5432
     23 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory                = /greenplum/data/master/gpseg-1
     24 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program                = Off
     25 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps                       = Off
     26 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression                = On
     27 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files                 = Off
     28 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table                 = On
     29 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files                  = Off
     30 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects                  = Off
     31 20190319:05:00:16:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type                     = Off
     32 
     33 Continue with Greenplum dump Yy|Nn (default=N):
     34 > y
     35 20190319:05:00:18:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     36 20190319:05:00:18:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     37 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     38 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     39 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     40 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     41 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     42 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     43 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
     44 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
     45 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     46 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     47 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
     48 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
     49 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     50 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     51 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
     52 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
     53 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     54 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     55 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
     56 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
     57 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     58 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     59 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
     60 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
     61 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
     62 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
     63 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
     64 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
     65 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
     66 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     67 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
     68 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
     69 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
     70 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
     71 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
     72 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
     73 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
     74 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-1/db_dumps/20190319 exists
     75 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
     76 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg-1 on master
     77 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
     78 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
     79 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     80 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
     81 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     82 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
     83 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     84 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
     85 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     86 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
     87 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     88 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
     89 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     90 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
     91 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     92 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
     93 20190319:05:00:19:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
     94 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     95 
     96 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
     97 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
     98 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
     99 
    100 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    101 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
    102 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    103 
    104 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    105 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
    106 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    107 
    108 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    109 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
    110 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    111 
    112 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    113 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
    114 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    115 
    116 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    117 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
    118 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    119 
    120 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    121 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
    122 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    123 
    124 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    125 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
    126 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    127 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    128 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    129 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    130 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    131 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    132 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    133 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    134 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    135 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    136 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    137 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    138 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    139 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    140 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    141 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    142 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
    143 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    144 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    145 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
    146 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319050016_table
    147 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
    148 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
    149 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --incremental
    150 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p 5432 -U gpadmin --gp-d=db_dumps/20190319 --gp-r=/greenplum/data/master/gpseg-1/db_dumps/20190319 --gp-s=p --gp-k=20190319050016 --no-lock --gp-c --no-expand-children "gpdb" --table-file=/tmp/dirty_backup_list_8b9DHz --incremental
    151 20190319:05:00:20:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
    152 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code 0
    153 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
    154 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
    155 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
    156 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
    157 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key = 20190319050016
    158 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
    159 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    160 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    161 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
    162 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
    163 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
    164 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
    165 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
    166 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    167 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    168 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
    169 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    170 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
    171 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    172 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
    173 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    174 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
    175 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    176 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
    177 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    178 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
    179 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
    180 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Releasing pg_class lock
    181 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    182 
    183 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    184 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
    185 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    186 
    187 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    188 20190319:05:00:23:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
    189 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    190 
    191 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    192 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
    193 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    194 
    195 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    196 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
    197 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    198 
    199 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    200 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
    201 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    202 
    203 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    204 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
    205 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    206 
    207 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    208 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
    209 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-N.
    210 
    211 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
    212 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
    213 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    214 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    215 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    216 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    217 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
    218 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
    219 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
    220 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
    221 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
    222 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    223 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
    224 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
    225 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
    226 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
    227 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
    228 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
    229 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
    230 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
    231 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
    232 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_8b9DHz
    233 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_8b9DHz
    234 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/dirty_backup_list_8b9DHz
    235 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/dirty_backup_list_8b9DHz
    236 20190319:05:00:24:028469 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=0 completed=True halted=False
    237   stdout=''
    238   stderr=''
    239 20190319:05:00:24:028469 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=0 completed=True halted=False
    240   stdout=''
    241   stderr=''
    242 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
    243 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
    244 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
    245 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
    246 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
    247 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319050016.rpt
    248 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
    249 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
    250 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
    251 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
    252 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
    253 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CreateIncrementsFile
    254 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CreateIncrementsFile
    255 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319050016.rpt
    256 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
    257 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319044402.rpt
    258 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
    259 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-1/db_dumps/20190319/gp_dump_20190319040710.rpt
    260 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = 20190319040710
    261 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    262 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
    263 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    264 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
    265 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
    266 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
    267 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in gpdb database
    268 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
    269 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
    270 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
    271 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Target database                          = gpdb
    272 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory                        = 20190319
    273 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type                                = Incremental
    274 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories               = Off
    275 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time                          = 05:00:16
    276 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time                            = 05:00:23
    277 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Status                                   = COMPLETED
    278 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key                                 = 20190319050016
    279 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression                    = On
    280 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type                         = Off
    281 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
    282 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
    283 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
    284 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    285 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    286 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
    287 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
    288 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailEvent
    289 20190319:05:00:24:028469 gpcrondump:greenplum01:gpadmin-[INFO]:-Sending mail to kingle_work@163.com
    290 20190319:05:00:24:028469 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@163.com
    291 20190319:05:00:27:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailEvent
    292 20190319:05:00:27:028469 gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
    View Code

    一,恢复

      01,数据删除恢复

    gpdb=# DELETE FROM test1
    gpdb-# ;
    DELETE 5
    gpdb=# SELECT * from test1;
     id | name
    ----+------
    (0 rows)

      02, 恢复全量

    gpdbrestore -l /gpbackup/back3/gpcorndump.log -t 20190319035503 -T public.test1 --truncate --redirect gpdb

      -t 后面的是时间戳,每个日志生成都有,选择对应的时间就行

     1 删除数据后的恢复:
     2 [gpadmin@greenplum01 ~]$ gpdbrestore -l /gpbackup/back4/gpcorndump.log -t 20190320015752 -T public.test1 --truncate --redirect gpdb
     3 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -l /gpbackup/back4/gpcorndump.log -t 20190320015752 -T public.test1 --truncate --redirect gpdb
     4 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     5 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
     6 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     7 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type               = Table Restore
     8 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name              = gpdb
     9 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
    10 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
    11 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
    12 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Table                      = public.test1
    13 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database  = gpdb
    14 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method             = Specific table restore
    15 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp          = 20190320015752
    16 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump    = On
    17 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects     = Off
    18 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance      = f
    19 20190320:02:06:02:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
    20 
    21 Continue with Greenplum restore Yy|Nn (default=N):
    22 > y
    23 20190320:02:06:05:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
    24 20190320:02:06:05:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
    25 20190320:02:06:06:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Running metadata restore
    26 20190320:02:06:06:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Invoking commandline: gp_restore -i -h greenplum01 -p 5432 -U gpadmin --gp-d=db_dumps/20190320 --gp-i --gp-k=20190320015752 --gp-l=p --gp-f=/tmp/table_list_5PvlS8 --gp-c -d "gpdb" -s /greenplum/data/master/gpseg-1/db_dumps/20190320/gp_dump_-1_1_20190320015752.gz -P
    27 20190320:02:06:08:004710 gpdbrestore:greenplum01:gpadmin-[WARNING]:-gpdbrestore finished but ERRORS were found, please check the restore report file for details
    28 20190320:02:06:08:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Expanding parent partitions if any in table filter
    29 20190320:02:06:08:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p 5432 -U gpadmin --gp-d=db_dumps/20190320 --gp-i --gp-k=20190320015752 --gp-l=p --gp-f=/tmp/table_list_RH6W_s --gp-c -d "gpdb" -a:
    30 20190320:02:06:10:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
    31 20190320:02:06:10:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Running post data restore
    32 20190320:02:06:10:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p 5432 -U gpadmin --gp-d=db_dumps/20190320 --gp-i --gp-k=20190320015752 --gp-l=p --gp-f=/tmp/table_list_RH6W_s --gp-c -d "gpdb" -P:
    33 20190320:02:06:12:004710 gpdbrestore:greenplum01:gpadmin-[WARNING]:-gpdbrestore finished but ERRORS were found, please check the restore report file for details
    34 20190320:02:06:12:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
    35 20190320:02:06:12:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
    36 20190320:02:06:12:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
    37 20190320:02:06:12:004710 gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
    38 [gpadmin@greenplum01 ~]$ psql -d gpdb
    39 psql (8.3.23)
    40 Type "help" for help.
    41 
    42 gpdb=# SELECT * from test1;
    43  id  | name
    44 -----+-------
    45  103 | linda
    46  101 | lily
    47  100 | tom
    48  102 | jack
    49 (4 rows)
    View Code

    03,恢复增量

    gpdbrestore -t 20190319040710 -T public.test1 -v --truncate --noplan --redirect gpdb
      1 [gpadmin@greenplum01 ~]$ gpdbrestore -t 20190320020025 -T public.test1 -v --redirect gpdb --noplan --truncate
      2 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -t 20190320020025 -T public.test1 -v --redirect gpdb --noplan --truncate
      3 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
      4 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GpdbRestore
      5 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateTimestamp
      6 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateTimestamp
      7 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GetLocalDumpTablesOperation
      8 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending GetLocalDumpTablesOperation
      9 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     10 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
     11 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     12 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type               = Incremental Table Restore
     13 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name              = gpdb
     14 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     15 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
     16 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     17 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Table                      = public.test1
     18 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database  = gpdb
     19 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method             = Specific table restore
     20 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp          = 20190320020025
     21 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump    = On
     22 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects     = Off
     23 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance      = f
     24 20190320:02:08:20:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     25 
     26 Continue with Greenplum restore Yy|Nn (default=N):
     27 > y
     28 20190320:02:08:21:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting RestoreDatabase
     29 20190320:02:08:21:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     30 20190320:02:08:22:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateSegments
     31 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateSegments
     32 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
     33 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
     34 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
     35 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     36 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu
     37 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu
     38 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu
     39 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu
     40 20190320:02:08:23:004957 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=0 completed=True halted=False
     41   stdout=''
     42   stderr=''
     43 20190320:02:08:23:004957 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=0 completed=True halted=False
     44   stdout=''
     45   stderr=''
     46 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
     47 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
     48 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
     49 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
     50 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
     51 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql
     52 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql
     53 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql
     54 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql
     55 20190320:02:08:23:004957 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=0 completed=True halted=False
     56   stdout=''
     57   stderr=''
     58 20190320:02:08:23:004957 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=0 completed=True halted=False
     59   stdout=''
     60   stderr=''
     61 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
     62 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
     63 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
     64 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p 5432 -U gpadmin --gp-d=db_dumps/20190320 --gp-i --gp-k=20190320020025 --gp-l=p --gp-f=/tmp/table_list_TKsXql --gp-c -d "gpdb" -a:
     65 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
     66 20190320:02:08:23:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
     67 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
     68 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
     69 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     70 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
     71 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
     72 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     73 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
     74 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_TKsXql
     75 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_TKsXql
     76 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/table_list_TKsXql
     77 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/table_list_TKsXql
     78 20190320:02:08:26:004957 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=0 completed=True halted=False
     79   stdout=''
     80   stderr=''
     81 20190320:02:08:26:004957 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=0 completed=True halted=False
     82   stdout=''
     83   stderr=''
     84 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
     85 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
     86 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
     87 20190320:02:08:26:004957 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending RestoreDatabase
     88 [gpadmin@greenplum01 ~]$ psql -d gpdb
     89 psql (8.3.23)
     90 Type "help" for help.
     91 
     92 gpdb=# SELECT * from test1;
     93  id  | name
     94 -----+-------
     95  100 | tom
     96  101 | lily
     97   11 | xixi
     98  103 | linda
     99  102 | jack
    100 (5 rows)
    View Code
    gpdbrestore -t 20190319050016 -T public.test1 -v --truncate --noplan --redirect gpdb
      1 [gpadmin@greenplum01 ~]$ gpdbrestore -t 20190320020136 -T public.test1 -v --redirect gpdb --noplan --truncate
      2 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -t 20190320020136 -T public.test1 -v --redirect gpdb --noplan --truncate
      3 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
      4 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GpdbRestore
      5 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateTimestamp
      6 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateTimestamp
      7 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GetLocalDumpTablesOperation
      8 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending GetLocalDumpTablesOperation
      9 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     10 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
     11 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     12 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type               = Incremental Table Restore
     13 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name              = gpdb
     14 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     15 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
     16 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     17 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Table                      = public.test1
     18 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database  = gpdb
     19 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method             = Specific table restore
     20 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp          = 20190320020136
     21 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump    = On
     22 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects     = Off
     23 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance      = f
     24 20190320:02:09:54:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
     25 
     26 Continue with Greenplum restore Yy|Nn (default=N):
     27 > y
     28 20190320:02:09:55:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting RestoreDatabase
     29 20190320:02:09:55:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     30 20190320:02:09:55:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateSegments
     31 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateSegments
     32 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
     33 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
     34 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
     35 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     36 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U
     37 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U
     38 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U
     39 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U
     40 20190320:02:09:57:005226 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=0 completed=True halted=False
     41   stdout=''
     42   stderr=''
     43 20190320:02:09:57:005226 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=0 completed=True halted=False
     44   stdout=''
     45   stderr=''
     46 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
     47 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
     48 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
     49 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
     50 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
     51 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3
     52 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3
     53 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3
     54 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3
     55 20190320:02:09:57:005226 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=0 completed=True halted=False
     56   stdout=''
     57   stderr=''
     58 20190320:02:09:57:005226 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=0 completed=True halted=False
     59   stdout=''
     60   stderr=''
     61 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
     62 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
     63 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
     64 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
     65 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
     66 20190320:02:09:57:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p 5432 -U gpadmin --gp-d=db_dumps/20190320 --gp-i --gp-k=20190320020136 --gp-l=p --gp-f=/tmp/table_list_Q5X_Q3 --gp-c -d "gpdb" -a:
     67 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
     68 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
     69 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     70 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
     71 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
     72 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
     73 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
     74 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_Q5X_Q3
     75 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_Q5X_Q3
     76 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/table_list_Q5X_Q3
     77 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/table_list_Q5X_Q3
     78 20190320:02:09:59:005226 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=0 completed=True halted=False
     79   stdout=''
     80   stderr=''
     81 20190320:02:09:59:005226 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=0 completed=True halted=False
     82   stdout=''
     83   stderr=''
     84 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
     85 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
     86 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
     87 20190320:02:09:59:005226 gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending RestoreDatabase
     88 [gpadmin@greenplum01 ~]$ psql -d gpdb
     89 psql (8.3.23)
     90 Type "help" for help.
     91 
     92 gpdb=# SELECT * from test1;
     93  id  | name
     94 -----+-------
     95  102 | jack
     96  101 | lily
     97   11 | xixi
     98  100 | tom
     99   12 | hhaa
    100  103 | linda
    101 (6 rows)
    102 
    103 gpdb=# exit
    View Code

     

      

      

      

      

  • 相关阅读:
    Spring.Net AOP的通知类型及通知链
    Spring.Net框架介绍及基本配置(学习笔记一)
    Spring.Net对方法的注入(学习笔记三)
    Spring通过容器获取配置对象及事件注入(学习笔记二)
    SqlServer2008 数据库同步的两种方式(Sql JOB)
    AOPUnity使用初探
    PIABPolicy Injection Application Block
    LINQ查询基础
    C#泛型基础
    [转载]CSS块级元素和行内元素
  • 原文地址:https://www.cnblogs.com/kingle-study/p/10559868.html
Copyright © 2011-2022 走看看