Uploaded on Oct 29, 2021
If you want to extend the storage volume for cent OS just follow these steps. It will help you extend the storage space of your Cent OS in a few clicks only even without having so much technical understanding. For more information check it https://whmcsglobalservices.com/
install whmcs on centos 7
How To Automatically Extend The Storage Volume For Cent OS?
To automate resize the storage/disk volume of the Cent Os virtual machine on 1st-time
startup of the virtual machine in VMware after VM creation. Follow the given below steps
to add the script for auto disk resize.
After creating the virtual machine and before converting it to a VM template, add the
given below scripts to your VM template.
In order to Extend The Storage Volume For Cent OS login as the root user.
● # vi /root/script.sh
● #!/bin/bash
● fdisk /dev/sda /etc/rc.local
● # chmod +x /etc/rc.local
After adding the above script, shut down the VM and convert it to a VM template.
Note:-
1. You can make your own Cent OS script and you can change the script location
path to anything. For Logical volume name or if you have an ext4 file system then
you can use the given below command
# resize2fs /dev/volume_groups/Logical_volume
2. Blank space after “n” means enter
This step-by-step guide will help you extend the storage space of your Cent OS in a
simple. Following these steps will help you extend the storage space of your Cent OS in
a few clicks only even without having so much technical understanding. These steps will
definitely help you to do so.
Comments