Solved

AWS Linux Root Drive

Posted on 2016-08-13
4
137 Views
Last Modified: 2016-11-05
Hi,

How can I increase the drive size for a root drive in linux on AWS?  I prefer to not take the server offline.

Thanks
Eric
0
Comment
Question by:Eric Donaldson
4 Comments
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 250 total points
ID: 41756347
In AWS, your Linux server is a virtual machine. Therefore, it's not all that hard to add storage -- even to resize a drive (including the ROOT drive)...

The hard part is one of:
 a) getting AWS to do it for you (its not something you can do from within the VM, it's gotta be done in the VM manager)
 b) getting it done with NO downtime may also be a trick -- although getting it done with little more than a "reboot time" is possible -- but again up to the admin capabilities at AWS.

ANOTHER OPTION is to simply use symbolic links to redirect parts of your "root" drive to another drive. In most of my RHEL installs, I have a root drive, a swap partition on that same drive, and a home drive (usually a separate drive). Many of these systems are high-volume servers that generate a LOT of logging information. Therefore, I redirect /var/log to /home/var/log with a symbolic link. That way, my root doesn't get full due to logging.

I hope this helps

Dan
IT4SOHO
0
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 250 total points
ID: 41757635
According to Amazon, for the root partition, this cannot be done without stopping the instance. Instructions are here:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/storage_expand_partition.html#prepare-linux-root-part
0
 

Expert Comment

by:Travis Weber
ID: 41822630
You can create an AMI from your instance then just use that to create a new instance with a larger volume.  You will have to stop it though.

http://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/tkv-create-ami-from-instance.html
0
 

Expert Comment

by:Naina Reddy
ID: 41875160
Hi,
You can increase the storage space of an existing EBS volume without losing the data on the volume. To do this, you migrate your data to a larger volume and then extend the file system on the volume to recognize the newly-available space. After you verify that your new volume is working properly, you can delete the old volume.

Regards,
Naina Reddy
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get maximum transfer speed over LAN 4 105
Securing Azure Oracle instance of Linux VM 4 66
awk variable in printf 1 34
AWS Default Security Group Question 3 42
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
Are client relationship the only driver of a successful MSP? While important, client relationships are only one component. Learn how else MSPs can broaden their horizon and differentiate themselves.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This is an introductory video for CloudBerry Managed Backup. You will learn how to sign up with the service and get started in a few minutes.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question