LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2020, 08:43 AM   #1
donpro
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Rep: Reputation: Disabled
Unable to extend AWS volume on Centos


Hi,

I am following th Amazon documentation to increase a partion. I modified my volume by adding 35GB to it. Then I run "growpart" but it fails as seen below. I cannot find any resolution as all the Google results state that growpart should work. What step am I missing?

[root@aws ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 195G 0 disk*
* xvda1 202:1 0 15G 0 part /
*xvda2 202:2 0 4G 0 part*
*xvda3 202:3 0 1K 0 part*
*xvda5 202:5 0 2G 0 part /tmp
*xvda6 202:6 0 15G 0 part /var
*xvda7 202:7 0 7G 0 part /var/log
*xvda8 202:8 0 25G 0 part /home
*xvda9 202:9 0 12G 0 part /home/httpd
*xvda10 202:10 0 80G 0 part /work
[root@aws ~]# growpart /dev/xvda 10
FAILED: failed to get start and end for /dev/xvda10 in /dev/xvda
 
Old 02-10-2020, 04:33 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I'd be guessing /dev/xvda3 is an extended partition and that needs to be resized first. Let's see this (as root) - and use [code] tags to retain layout.
Code:
parted /dev/xvda "print free"
Not a AWS user, so merely offering possibilities.
 
1 members found this post helpful.
Old 02-10-2020, 06:52 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Just in case the following discussion is relevant...
https://forums.aws.amazon.com/thread...hreadID=287102
 
Old 02-11-2020, 07:59 AM   #4
donpro
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks guys. I solved the issue and my partition has been expanded.
 
Old 07-17-2020, 02:28 PM   #5
dcasp3r
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
For anyone else encountering this, use df -hT to check the filesystem type, if it is XFS then you need to use xfs_growfs -d / ( where / is the mount point as displayed in df -hT ) instead of using growpart ( yum install xfsprogs if you don't have xfs_growfs )
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Amazon spins Ubuntu-driven AWS DeepLens cam and an AWS-savvy Amazon FreeRTOS LXer Syndicated Linux News 0 12-04-2017 03:51 PM
LXer: How to extend-resize Linux root partition on AWS EC2 LXer Syndicated Linux News 0 07-17-2017 01:51 PM
LXer: List of 71 AWS services and their use! AWS cloud terminology! LXer Syndicated Linux News 0 03-17-2017 02:35 PM
Extend Linux Partition (Extend LVM) osama.mansoor Linux - Newbie 5 11-27-2015 01:09 AM
How to extend a volume Centos 5.4 on VMware ESX 3.5? baldur2630 Linux - Virtualization and Cloud 1 01-30-2010 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration