How to grow an EBS Array at AWS

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Virtualization and Cloud Computing How to grow an EBS Array at AWS
# 1  
Old 07-18-2011
Java How to grow an EBS Array at AWS

This process was collected by trial and error (mostly error) since most of the documents I found on the 'net were incomplete.

The cookbook/walkthrough on how to grow an Array on EBS at AWS...
Code:
# walkthrough by John Jones (jjones at cirrhus9 dot com)

umount /dev/md0
mdadm --stop /dev/md0
REM out the last line in /etc/fstab
# /dev/md0 /mnt/data-files xfs defaults 0 0
REM out the last line of /etc/mdadm/mdadm.conf
# ARRAY /dev/md0 level=raid0 num-devices=2 UUID=31a281bd:50deafca:edf6a245:a7933c25

Stop the instance.
Create new snapshot from existing volumes.
detach "current" sd[xx] volumes.
Create new volume from snapshots at higher capacity.
Attach to same /dev/sdX mount points while the instance is stopped.
Start the instance.
Assign EIP.
Login to the instance.
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc
mdadm --examine --scan --config=/etc/mdadm/mdadm.conf >> /etc/mdadm/mdadm.conf
mkdir -v /mnt/data-files
Remove comment in /etc/fstab
/dev/md0 /mnt/data-files xfs defaults 0 0

# check the mount for errors:
xfs_check /dev/md0

# mount it
mount /dev/md0
/dev/md0               40G   49M   40G   1% /mnt/data-files

# Verify new capacity...
mdadm --detail /dev/md0 | grep "Array Size"
     Array Size : 83885952 (80.00 GiB 85.90 GB)

# grow the new volumes
xfs_growfs -d /dev/md0

df -h | tail -1
/dev/md0               80G   49M   80G   1% /mnt/data-files

# reboot
reboot

# verify larger capacity
df -h | tail -1
/dev/md0               80G   49M   80G   1% /mnt/data-files

# Verify contents came across
ls -1 /mnt/data-files/

# Done.
Cleanup/delete "old" volumes.

Enjoy!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

AWS S3 with Bash Script

Hello All, I am trying few stuff on Amazon S3 move files to EC2 (Ubuntu Server) I am receiving daily 2 files in S# bucket XYZ_2015-02-26_ 200.csv ABC_2015-02-26_ 200.csv I want to move daily received files to local EC2(Ubuntu server) and rename files to XYZ_2015-02-26.csv... (3 Replies)
Discussion started by: krux_rap
3 Replies

2. Shell Programming and Scripting

AWS Cloud EBS limit script!

Hi, I am trying to correct the following script to get total EBS usage from Amazon cloud. Can someone please help in correcting it. It appears that its not working properly. t=0; for i in `ec2-describe-volumes | grep VOLUME | grep standard | awk '{print $3}'`; do t=`expr $t + $i`; done;... (2 Replies)
Discussion started by: amar0000
2 Replies

3. UNIX and Linux Applications

Mod_proxy_html on Oracle EBS

Hi , I am trying to impliment mod_proxy and mod_proxy_html as a reverse proxy for oracle EBS. Everything is working fine except the submenu links (still pointing to the internal url) of the modules tree view. Please help me. Regards, Arumon (0 Replies)
Discussion started by: arumon
0 Replies

4. Red Hat

Installing EBS 12.1.1 on RHEL 6.1 x86_64‏

i am in process to install R12.1.1 on RHEL 6.1. while installing pre-requisite on RHEL 6.1 i am facing following error : rpm -ivh xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm error: Failed dependencies: libX11.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386 ... (3 Replies)
Discussion started by: rehantayyab82
3 Replies

5. Virtualization and Cloud Computing

Computing in the Clouds with AWS

Tim Bass 07-25-2008 02:34 AM The admin*team at The UNIX Forums*have been considering moving the UNIX and*Linux*Forums to the clouds - the Amazon Web Services (AWS) cloud.* Amazon EC2 is one option to scale the forums, which is a*LAMP application.* Amazon EC2 allows*us to rent dedicated... (3 Replies)
Discussion started by: Linux Bot
3 Replies

6. UNIX and Linux Applications

Sun EBS Networker 7.3

I am having an issue with Sun EBS Networker 7.3, (64 bit) (Sun Hardware, Solaris 9) where it expects an Oracle DB (11.5.10 with 10g Database (10.2.0.2)) size of 4294967295 bytes. The DB's get backed up anyway, but it's only happening to certain DB's. The warning messages occur at random intervals... (4 Replies)
Discussion started by: djembeplayer
4 Replies

7. UNIX for Advanced & Expert Users

find: 0652-019 The status on /interfaces/eu3/hmsl/EBS/20070722 is not valid.

I am getting this error when i issue find command. Any advice. Regards, Vishal (0 Replies)
Discussion started by: vishal_ranjan
0 Replies

8. What is on Your Mind?

Where to grow up?

Hi, all! I've been working for one year as a Unix systems engineer(Solaris) in a large company. Two days ago I found, that I didn't exactly know where should I grow up? I can't drop this idea away and I'm still thinking about it. I'm trying to imagine myself in a next year. Available... (1 Reply)
Discussion started by: movx
1 Replies
Login or Register to Ask a Question