New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Anyone know how to fix this OVH Diskspace issue
I have a 20GB VPS.
Installed cPanel using their template to test something.
But it says I have only ~ 10GB, even though the VPS actually has 20GB
root@cpanel [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 9.8G 9.6G 0 100% / tmpfs 1.9G 0 1.9G 0% /dev/shm /usr/tmpDSK 485M 11M 449M 3% /tmp root@cpanel [~]# fdisk -l Disk /dev/vda: 21.5 GB, 21474836480 bytes 16 heads, 63 sectors/track, 41610 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000574cf Device Boot Start End Blocks Id System /dev/vda1 * 3 20806 10484736 83 Linux
How can I get the other 10GB, right now the vps uses only 10 out of the 20gb.
This discussion has been closed.
Comments
Maybe I misunderstand your wording but why not just install the OS (Not the cPanel template) then do manual partitioning, then run the cPanel install script (it's one command).
cPanel was running fine the first few days and then it stopped because there's not enough disk space.
OVH says my VPS has 20GB disk space but the OS only recognizes only around 10GB.
I have to add the 10GB unused space some how
kvm? you were probably allocated extra disk space after provision, kvm isn't like ovz, doesn't get going w/o further steps. either reinstall the os or use fdisk to get it going.
I upgraded my VPS hoping it would fix it. still no luck
Now I have 40GB disk space but when I do df -h I see only around 10gb
extend2fs?
that's coz they'll keep allocating resources, doesn't get done automatically with kvm and that includes RAM
You just need to expand your partition to utilize the unused space, resize2fs?
Tried that.
Didn't work.
OVH Sent me these instructions
Didn't work.
There is no /sda1 or sda2
When I do
fdisk -l I only see a /dev/vda1 no /dev/vda2
I tried changing their command from
resize2fs /dev/sda2
to
resize2fs /dev/vda2
no luck.
also tried vda1
Should be /dev/vda1
What output are you getting?
did you reboot after re-sizing?
your first partition is /dev/vda1 which is sized 10 GB.
as mentioned by others, it does not grow automatically if there are additional ressources allocated to your VM.
as vda1 is your boot partition you are not able to resize it, while the system is running - afair resize2fs doesn't support online resizing...
so either reboot in rescue-mode and resize the /dev/vda1 partition from there or simply add another partition within the free space of the disk and mount this space as a directory of your choice (like to the home, where cpanel stores customer data).
Edit: and I'd suggest a changing on the thread title, as this is definitely not an "OVH issue" but lack of OPs knowledge ;-)
You cant access
/dev/vda2
because the free space is currently unallocated.You need to change both the partition and the file system. Take a look at http://positon.org/resize-an-ext3-ext4-partition and watch a few Youtube videos on partition management.
Install cfdisk using
apt-get install gnu-fdisk
. Startcfdisk
, delete vda1 partition, recreate it. Now you should have a partition of the right size. Next resize your filesystem withresize2fs /dev/vda1
You can resize the partition and filesystem without needing rescue mode:
Tried that, some error at the end
Yes.
OVH offered to fix this for a fee when I called them, so I told them to try, they failed to do so as well.
I don't need the cPanel VPS anymore, tested it on my CentMinMod installation last night.
Their gonna gimme a full refund on the VPS because they weren't able to fix the disk space issue.
So it's all good now.
Thanks everyone for trying to help
Closing as requested.