To determine where the vertica catalog and data directories reside, along with disk usage - do the following:
- Log on to a vertica node
- su - dradmin (or equivalent user)
- cd /opt/vertica/bin
- Run the following command: SELECT node_name, storage_path, storage_status,storage_usage, DISK_SPACE_FREE_MB, disk_space_free_percent from disk_storage;
You should get output that looks similar to this:
-bash-4.2$ ./vsql -Udradmin -wdbpass -c 'SELECT node_name, storage_path, storage_status,storage_usage, DISK_SPACE_FREE_MB, disk_space_free_percent from disk_storage';
node_name | storage_path | storage_status | storage_usage | DISK_SPACE_FREE_MB | disk_space_free_percent
-------------------+------------------------------------------------------------+----------------+---------------+--------------------+-------------------------
v_drdata_node0001 | /loddisk2/catalog/drdata/v_drdata_node0001_catalog/Catalog | Active | CATALOG | 130847 | 92%
v_drdata_node0001 | /loddisk2/data/drdata/v_drdata_node0001_data | Active | DATA,TEMP | 130847 | 92%