Author Topic: Issue with total disk space  (Read 842 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Issue with total disk space
« on: March 15, 2022, 03:52:46 PM »
I have a virtual private server that was recently upgraded from 40G to 80G. However, on the Centos Web Panel, it only shows 40G. How can that be fixed?

Offline
*
Re: Issue with total disk space
« Reply #1 on: March 15, 2022, 07:26:56 PM »
hey!
have you tried accessing through ssh..
and do an lsblk ?

if the partition was successfully expanded then it will show that you have 80 GB out of 80 GB (I'm assuming you have 1 partition
if not it means that maybe the hosting support, just added you the 80 GB but they did not expand your present partition..
so you should do that..
if in ssh it shows that your partition is 80 GB and in CWP is not showing.. try restarting CWP..
hope this helps.
Cheers





Offline
*
Re: Issue with total disk space
« Reply #2 on: March 29, 2022, 08:38:12 PM »
I have a CentOS 7 VPS with 40GB of SSD space, I recently upgraded it to 80GB. How do extend the / partition? I don't want to reinstall Centos 7 and the Centos Web Panel as it was suggested to me that I do. I only want to extend the disk size.

Here is the necessary information:

$ df -h

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G  187M  1.7G  11% /run
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1        40G   15G   24G  39% /
tmpfs           370M     0  370M   0% /run/user/0
$ fdisk -l

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00098c9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    83886046    41941999+  83  Linux

I restarted the Centos Web Panel and it still shows that I have 40G of disk space.
« Last Edit: March 29, 2022, 08:42:10 PM by greaterworksbs »

Offline
*
Re: Issue with total disk space
« Reply #3 on: April 01, 2022, 12:09:09 AM »
try this: resize2fs /dev/........

this command fixed my issue...

Offline
*
Re: Issue with total disk space
« Reply #4 on: April 06, 2022, 08:41:10 PM »
I tried to use the resize2fs for dev/sda1 and it didn't work for me.

Offline
*
Re: Issue with total disk space
« Reply #5 on: April 07, 2022, 02:30:03 PM »
I tried to use the resize2fs for dev/sda1 and it didn't work for me.
Hi!
log in to ssh..
Try this:
df -hT (it will show what kind of partition you are using, ext3,ext4,XFS,etc)
then, if the 40GB additional space is already allocated to your vps, for you to use then you have to make your root partition to "grow"
growpart /dev/sda1 1
if your partition is XFS then..
xfs_growfs -d / (this will expand to all the root partition)
if not, you have to use resize..

hope this helps!