Hello, I’m DocuDroid!
Submitting feedback
Thank you for rating our AI Search!
We would be grateful if you could share your thoughts so we can improve our AI Search for you and other readers.
GitHub

gpdeletesystem

Deletes a Greengage DB system that was initialized using gpinitsystem.

Synopsis

gpdeletesystem
               [ -d <master_data_directory> ]
               [ -B <parallel_processes> ]
               [ -f ]
               [ -l <logfile_directory> ]
               [ -D ]

gpdeletesystem -?

gpdeletesystem -v

Description

The gpdeletesystem utility performs the following actions:

  • Stops all postgres processes (the segment instances and master instance).

  • Deletes all data directories.

Before running gpdeletesystem:

  • Move any backup files out of the master and segment data directories.

  • Make sure that Greengage DB is running.

  • If you are currently in a segment data directory, change directory to another location. The utility fails with an error when run from within a segment data directory.

This utility will not uninstall the Greengage DB software.

Options

-d <master_data_directory>

Specify the master host data directory. If this option is not specified, the setting for the environment variable MASTER_DATA_DIRECTORY is used. If this option is specified, it overrides any setting of MASTER_DATA_DIRECTORY. If master_data_directory cannot be determined, the utility returns an error.

-B <parallel_processes>

The number of segments to delete in parallel. If not specified, the utility will start up to 60 parallel processes depending on how many segment instances it needs to delete.

-f

Force a delete even if backup files are found in the data directories. The default is to not delete Greengage DB instances if backup files are present.

-l <logfile_directory>

The directory to write the log file. Defaults to ~/gpAdminLogs.

-D

Set logging level to debug.

-?

Display help.

-v

Display the version, status, last updated date, and checksum of this utility.

Examples

Delete a Greengage DB system:

$ gpdeletesystem -d /data1/master/gpseg-1

Delete a Greengage DB system even if backup files are present:

$ gpdeletesystem -d /data1/master/gpseg-1 -f

See also