sexy technology

Cara Perbesar Size Volume EBS di Amazon EC2

## STOP service yang berhubungan dengan volume nya dulu

contoh:

/etc/init.d/nginx stop
/etc/init.d/php-fpm stop
/etc/init.d/mysqld stop

## cek yg di mount, trus di unmount in, dan dicatet yah

cat /proc/mounts ==> cari yg dari ebs ybs, trus di umount

umount /xxxx
umount /home/xxxx/public_html/xxxx

## kalau ada yg ga bisa dimount:
lsof | grep ‘nama-mountnya’
trus di kill proses yg masih berjalan
## trus di detach volumenya, buat snapshotnya, trus create volume baru dari snapshot tersebut dg size lebih gede

detach /dev/sdx
create snapshop dari sdi
create volume dari hasil snapshot dengan size lebih gede

## trus di attach volume barunya, cek disk, di mount, trus di grow kan

attach to /dev/sdx
xfs_check /dev/sdx ==> bisa lama (diskip bisa)
mount /storeprod
mount /home/xxxx/public_html/xxxx
xfs_growfs -d /dev/xvdx

## start semua servicenya, dan viola, jadi!

/etc/init.d/nginx start
/etc/init.d/php-fpm start
/etc/init.d/mysqld start

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>