How to expand storage ( /dev/vda1 )

Hello.
How to expand storage ( /dev/vda1 ) Centos 7
For example,


# fdisk -l
Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 sectors

but root filesystem size 2GB

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 2.0G 1.6G 284M 85% /
devtmpfs 912M 0 912M 0% /dev
tmpfs 921M 0 921M 0% /dev/shm
tmpfs 921M 105M 816M 12% /run
tmpfs 921M 0 921M 0% /sys/fs/cgroup
tmpfs 185M 0 185M 0% /run/user/0


Use
# resize2fs -p /dev/vda1

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 19G 1009M 17G 6% /
devtmpfs 912M 0 912M 0% /dev
tmpfs 921M 0 921M 0% /dev/shm
tmpfs 921M 17M 904M 2% /run
tmpfs 921M 0 921M 0% /sys/fs/cgroup
tmpfs 921M 17M 904M 2% /etc/machine-id



Please let us know if you have any issues.

Thank You

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to get a trial period VPS / VDS?

We provide a test server for a period of up to 1 day.To receive trial period VPS / VDS you need:...

Connect to your Windows Server

With Remote Desktop Connection, you can access a computer running Windows from another computer...

Windows Server - Change the Administrator Password

Procedures for changing Administrator passwords This topic provides procedures to change...

How to Install and Setup LAMP on CentOS VPS

LAMP (Linux - Apache - MySQL - PHP) is a common webserver software stack for Linux. Installing...

How to install ionCube Loader on ISPmanager

How to install ionCube Loader on ISPmanagerCheck OS version / x86_64 or x86$ uname -aDownload the...