LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2013, 06:05 PM   #1
vxwo0owxv
LQ Newbie
 
Registered: Aug 2013
Posts: 7

Rep: Reputation: Disabled
urgent help for resizing root partition CentOS6 on EC2


greeting guru I make a snapshot of my root partition and then make a volume of 100G and then I attach that volume and start my instance. However when I do the resize2fs it does not like it. Any clue. See below ? I did researches and try everything but still no luck. Thanks for the help


ec2-user$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvde1 7.9G 7.6G 0 100% /
tmpfs 3.6G 76K 3.6G 1% /dev/shm
/dev/xvdk 99G 37G 58G 39% /data
/dev/xvdo 100G 4.3G 96G 5% /mnt/ebs

ec2-user$ sudo resize2fs /dev/xvde1
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 2096896 blocks long. Nothing to do!


ec2-user$ cat /etc/*release
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)

ec2-user$ sudo fdisk /dev/xvde

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/xvde: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00076be1

Device Boot Start End Blocks Id System
/dev/xvde1 * 1 1045 8387584 83 Linux

ec2-user$

Device Boot Start End Blocks Id System
/dev/xvde1 * 1 1045 8387584 83 Linux
 
Old 10-17-2013, 03:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Please do not use words like "urgent". This is a voluntary community, so not demand attention. Also say please / thank you.

your resize2fs command is "working" just fine. It clearly says that the filessytem is using up all of the partition it is in and there is nothing to do. You've not shown here any attempt to actually *DO* anything... what do you actually want to achieve? You can't just magic extra space out of thin air, it has to come from somewhere.
 
1 members found this post helpful.
Old 10-17-2013, 01:02 PM   #3
vxwo0owxv
LQ Newbie
 
Registered: Aug 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for the reply and suggestion.
If someone look at the fdisk output, perhaps that someone might notice that the new volume has 100G of space ?
So the point is how to let the OS knows that there is more space available now ?
There are many posts on this topics and none of them works so far.

Last edited by vxwo0owxv; 10-17-2013 at 01:03 PM.
 
Old 10-17-2013, 01:11 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,319

Rep: Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470
Quote:
Originally Posted by vxwo0owxv View Post
Thanks for the reply and suggestion.
If someone look at the fdisk output, perhaps that someone might notice that the new volume has 100G of space ?
So the point is how to let the OS knows that there is more space available now ?
There are many posts on this topics and none of them works so far.
...and if YOU looked at the commands you typed in, you might notice that the device you're trying to enlarge is ALREADY 100% FULL. Again, you CANNOT create more disk space out of thin air. You're typing in "resize2fs /dev/xvde1"...which is FULL...ZERO space free to make it bigger.

The /dev/xvdo device has space free...have you considered moving some data from the FULL device to the EMPTY one??
 
Old 10-17-2013, 02:22 PM   #5
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

Rep: Reputation: Disabled
http://docs.aws.amazon.com/AWSEC2/la...ce-resize.html
http://blog.linuxacademy.com/linux/r...in-amazon-ec2/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Resizing Root Partition Urgent s4sarath Ubuntu 11 10-16-2013 03:25 PM
Resizing partition in VHD file - root partition first, swap second (*Advanced*) dpesios Linux - Virtualization and Cloud 2 05-18-2012 06:50 AM
Resizing partition in VHD file - root partition first, swap second (*Advanced*) dpesios Linux - Virtualization and Cloud 3 05-17-2012 12:53 PM
resizing the root partition ruffianopatsu Linux - Hardware 1 12-11-2005 05:08 PM
URGENT! Resizing NTFS partition size problems. rconan Linux - Software 3 09-03-2005 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration