LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   urgent help for resizing root partition CentOS6 on EC2 (https://www.linuxquestions.org/questions/linux-newbie-8/urgent-help-for-resizing-root-partition-centos6-on-ec2-4175481088/)

vxwo0owxv 10-16-2013 05:05 PM

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

acid_kewpie 10-17-2013 02:09 AM

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.

vxwo0owxv 10-17-2013 12:02 PM

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.

TB0ne 10-17-2013 12:11 PM

Quote:

Originally Posted by vxwo0owxv (Post 5047570)
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??

Habitual 10-17-2013 01:22 PM

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


All times are GMT -5. The time now is 06:45 PM.