Created
June 11, 2022 12:05
-
-
Save jmrobles/dfdd86be9bb7e5942677fe2ec3fe4584 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
pvcreate /dev/sdb | |
vgcreate pg_data /dev/sdb | |
lvcreate --size 10g --name pg_active_data pg_data | |
mkfs.xfs /dev/pg_data/pg_active_data | |
mkdir -p /var/lib/postgresql/12/ | |
sudo chown postgres:postgres /var/lib/postgresql/12/main | |
mount /dev/pg_data/pg_active_data /var/lib/postgresql/12/main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment