Solved

AWS Linux Root Drive

Posted on 2016-08-13
4
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't access router with user and pass 10 109
Amazon Glacier backup 6 84
Amazon AWS Windows with SQL Web For Business Application 3 67
IT job choice 6 38
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

710 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