The Official Kountr Blog

Just another WordPress.com weblog

EBS and Flows

leave a comment »

Tonight I am working on moving my DB storage into an EBS volume. Setting up the volume was pretty easy. Using the AWS console to create and attach the volume. Remember to use mkfs before mounting.

mkdir /data

mkfs /dev/sdf

mount /dev/sdf /data

su – postgres

/etc/init.d/postgresql stop

mv /var/lib/pgsql /data/pgsql

 

modified /etc/init.d/postgresql to point at new dir for PGDATA, PGLOGS

 

/etc/init.d/postgresql start

And everything seemed to work. This is enough work for one night. I am packing up my AMI and shutting this all down.

Written by Michael Artemiw

March 17, 2009 at 7:28 am

Posted in Uncategorized

Leave a Reply