Resizing Linux Partition Size

This Blog is intended to provide detailed instructions on how to Resize the Linux Partition Size

1 Resizing linux partition size

Check the Disk Size: #df -h   

Adding the Disk from the vSphere Client

Reboot the VM

Check the fdisk whether Disk is added: #fdisk -l 

Create the Partition: #fdisk /dev/sdc

Check the fdisk –l to check whether a partition is created

Format the Partition to ext4 FileSystem : #mkfs.ext4 /dev/sdc1

Create a physical volume: #pvcreate /dev/sdc1

Volume Group Extend: #vgextend /dev/sdc1

Logical Volume extend: #lvextend –L +29G /dev/VolGroup00/LogVol00

Resize the logical volume now: #resize2fs /dev/VolGroup00/LogVol00

Check the disk space now: #df -h

2. Mounting new data volume

Adding the Disk from the vSphere Client

Reboot the VM

Check the fdisk whether Disk is added: #fdisk –l

Create the Partition: #fdisk /dev/sdc

Check the fdisk –l to check whether a partition is created

Format the Partition to ext4 FileSystem : #mkfs.ext4 /dev/sdc1

Create a physical volume: #pvcreate /dev/sdc1

Create a new Directory under root

Mount the new partition

Add the mount Partition to the fstab

We hope this is easy and reliable steps Resizing Linux Partition Size

To read more about Linux you can go to this link

On our Facebook page you can find the latest updates and good knowledge transfer things on technology.

Leave a Reply

Your email address will not be published. Required fields are marked *