Data Directory Configuration
The Data Directory (PGDATA) is the absolute path of the location where data, among other files, for a specific PostgreSQL instance are stored.
Typically, for each instance, a directory is created in /var/lib/pgsql/VV, where VV is the major version of PostgreSQL.
On the same machine, multiple instances of the same PostgreSQL version, or different versions, can be initialized, each with its own Data Directory and Connection Port.
pgsmart cluster config [Flags]
Flags:
- **
-D, --pgdata=<path> [Default: data].=> PostgreSQL instance data directory. - **
-M, --pgversion=(11|12|13|14|15).=> major version of PostgreSQL. -a, --agent= <agent>. => alias, hostname, or IP of the server where a PgSmart Agent is installed.-h, --help. => help
Non-interactive execution is disabled for this operation.
pgsmart cluster config
Instance Data Directories Configuration
-
Select the
PgSmart Agent(or Register a new Agent) -
Select
General Settingsin the options menu. -
Select
Instance Data Directoriesin the options menu.
When selecting the Instance Data Directories operation, the following operations are available:
- List Instance Data Directories: Allows viewing the existing Data Directories.
- Add an Instance Data Directory: Allows adding an Instance Data Directory.
- Edit an Instance Data Directory: Allows editing an Instance Data Directory.
- Remove an Instance Data Directory: Removes an Instance Data Directory.
List Instance Data Directories
- Instructions
- Video
-
Select the "List" option.
noteThe list of Instance Data Directories will be presented.
Figure 1 - Data Directory - List
Add an Instance Data Directory
- Instructions
- Video
-
Select the
Addoperation -
Enter the
PostgreSQL data directory, theAliasand confirm the addition.
Figure 2 - Data Directory - Add
Edit an Instance Data Directory
- Instructions
- Video
-
Select the
Editoperation -
Select a
PostgreSQL Data Directory: -
Enter the
data directory location, theAliasof the data directory, and confirm the edition.
Figure 3 - Data Directory - Edit
Remove an Instance Data Directory
- Instructions
- Video
- Select the
Removeoperation
Upon selecting this action, PgSmart will provide a list of the Instance Data Directories.
-
Select the
Instance Data Directoryyou wish to remove -
Confirm the removal of the Instance Data Directory.
Figure 4 - Data Directory - Remove