This section is included in the Vertica Installation Guide and Database Administrator's Guide because the choice of disk storage locations for a database can be made at installation time or at database configuration time.
Prepare the disk locations that will contain the Vertica catalog and data files (
physical schema) on drives local to each host in the
cluster. You can use a single directory to contain both the catalog and data files or you can use separate directories. If using separate directories, they can be on different drives.
The catalog and data directory pathnames must be identical on each host in the cluster and the directories must be owned by the Database Administrator.
If you place catalog and data files on a shared drive for testing purpose, each host must have its own catalog and data locations. In other words, hosts cannot share catalog or data locations.
Specifying Disk Storage at Installation Time
When you install Vertica, the install_vertica
script's data_directory
parameter allows you to specify a directory to contain database data and catalog files. The default is the Database Administrator's default home directory:
/home/dbadmin
There is no requirement that you actually use this directory. It is created for your convenience. However, if you choose a different location, make sure that the location exists on each host in the cluster and is owned by the Database Administrator before creating a database.
Make sure that whatever disk storage location you specify at installation time does not already exist on any cluster host.
For example, if you created a database for evaluation purposes, dropped the database, and want to reuse the database name, make sure that the disk storage location used for the first database has been deleted. The next section describes the subdirectories created when you create a database.
Specifying Disk Storage at Database Creation Time
When you invoke the Create Database command in the Administration Tools, the following dialog allows you to specify the actual catalog and data locations. These locations much exist on each host in the cluster and must be owned by the Database Administrator.
When you click OK, Vertica automatically creates the following subdirectories:
catalog-pathname/database-name/node-name_catalog/
data-pathname/database-name/node-name_data/
For example, if you use the default value (the Database Administrator's home directory) of /home/dbadmin
for the Stock_Schema example database, the catalog and data directories would be:
/home/dbadmin/Stock_Schema/stock_schema_node1_host01_catalog
/home/dbadmin/Stock_Schema/stock_schema_node1_host01_data
and so forth, on each node in the cluster.
Catalog and data pathnames must contain only alphanumeric characters and cannot have leading space characters. Failure to comply with these restrictions may result in database creation failure.