Created
November 22, 2024 12:13
-
-
Save goors/1c67adfcfec1717cb8891cc0202169d0 to your computer and use it in GitHub Desktop.
This file contains 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 -p /mnt/data | |
sudo mount /dev/disk/azure/scsi1/lun$1 /mnt/data | |
echo "/dev/disk/azure/scsi1/lun$1 /mnt/data ext4 defaults 0 0" | sudo tee -a /etc/fstab | |
sudo sed -i 's|/var/lib/postgresql/16/main|/mnt/data/main|g' /etc/postgresql/16/main/postgresql.conf | |
sudo chown postgres.postgres /mnt/data -R | |
sudo /etc/init.d/postgresql restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment