Last active
May 15, 2020 18:55
-
-
Save iangow/96835be8c681a631526f7ab70035e541 to your computer and use it in GitHub Desktop.
Script to make tablespace on new drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /mnt/2TB/pg_data | |
sudo chown postgres:postgres /mnt/2TB/pg_data | |
sudo chmod a+rx /mnt/2TB/ | |
psql -d crsp -c "CREATE TABLESPACE hdd_2tb OWNER igow LOCATION '/mnt/2TB/pg_data'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I then followed up with