Author Topic: Increasing the disk space  (Read 130 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Increasing the disk space
« on: October 26, 2026, 08:16:05 AM »
I am running AL 8.10 with cwp 1.27

I am using an VPS with 200GB Disk Space

What is the process to increase the disk allocation if I upgrade my storage?

Currently my /dev/sda2   / is 85% used

Update


Fdisk info:
Disk /dev/sda: 400 GiB, 429496729600 bytes, 838860800 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
Disklabel type: dos
Disk identifier: 0x7300f1ed

Device     Boot   Start       End   Sectors  Size Id Type
/dev/sda1  *       2048   2050047   2048000 1000M 83 Linux
/dev/sda2       2050048 838860766 836810719  399G 83 Linux
Software RAID:
Personalities :
unused devices:
Partition info:
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.8G     0  3.8G   0% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           3.8G   19M  3.8G   1% /run
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/sda2       195G  155G   31G  84% /
/dev/sda1       966M  266M  634M  30% /boot
tmpfs           770M     0  770M   0% /run/user/0
« Last Edit: October 26, 2026, 09:02:12 AM by anandmys »

Offline
***
Re: Increasing the disk space
« Reply #1 on: October 26, 2026, 12:13:32 PM »
I could complete this with following steps.

Code: [Select]
lsblk
Code: [Select]
echo 1 > /sys/class/block/sda/device/rescan

Code: [Select]
yum install cloud-utils-growpart -y
Code: [Select]
growpart /dev/sda 2
Code: [Select]
lsblk to verify

Check filesystem type

Code: [Select]
df -Th /
As mine was ext4

Code: [Select]
resize2fs /dev/sda2
Code: [Select]
df -Th /
verify that changes are done

Offline
*****
Re: Increasing the disk space
« Reply #2 on: October 26, 2026, 02:38:12 PM »
Yes, that is workable -- I've done that in the past. Of course, it all depends on if you are using traditional partitions or LVM. If traditional partitions, you have to recreate the partition with fdisk, then grow the filesystem. With LVM, you have to use appropriate LVM tools. And I am more used to XFS than EXT4, but either one is doable. First step is to do a FULL image backup before proceeding, in case something goes awry.