How to resize disk on Linux

In order to resize disk on linux follow below procedure:

  • Connect to your linux machine and execute below command:
lsblk

  • Increase your hard disk
  • Reboot the system and run lsblk command to verify that the disk increased
  • Resize the physical partition using below command:
pvresize /dev/sdb
  • Resize logical volume partition using the below command:
lvextend -r -l +100%FREE /dev/mapper/centos-root
  • Reboot your linux machine.
  • To verify that size increased execute below command:
df -h

 

 Linux    
 
Fully optimised SSD hosting

Optimised for WordPress & other applications