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 |
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. |
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. |
Quote:
The /dev/xvdo device has space free...have you considered moving some data from the FULL device to the EMPTY one?? |
|
All times are GMT -5. The time now is 06:45 PM. |