Created
December 24, 2014 17:34
-
-
Save totomz/387910fb497f35d41c15 to your computer and use it in GitHub Desktop.
[GCE] Mounting disk
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
| # Mounting pgdata disk | |
| parted -s /dev/disk/by-id/google-pgdata mktable gpt | |
| parted -s /dev/disk/by-id/google-pgdata mkpart primary ext4 0% 100% | |
| sleep 5 | |
| mkfs.ext4 /dev/disk/by-id/google-pgdata-part1 -L pgdata | |
| sleep 2 | |
| mkdir $PGDATA_MOUNT | |
| echo "/dev/disk/by-id/google-pgdata-part1 $PGDATA_MOUNT ext4 noatime,data=writeback,barrier=0,nobh 0 2" >> /etc/fstab | |
| mount -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment