Partition a iSCSI physical disk volume without LVM in Linux

Tired of hassling though the Internet to find the appropriate way to partition iSCSI disk ?

Step 1: List the physical partition table using the command below:image

Step 2: List the mounted partition table using the below command

 

image

Step 3: Verify the contents of the disk such as your files as this important to ensure your data is present.

 

image

Step 4: Unmount the /dev/sdb parition from the root directory

 

image

Step 5: Verify the disk has been unmounted issuing the command below:

 

image

Step 6: Proceed to increase the physical disk from your SAN portal or any other hypervisor platform. In our case we added another 100 GB to make it a total of 200 GB disk.

 

Step 7: Rescan the iSCSI target to acquire new disk size.

 

image

Step 8: Verify the disk size has been increased and listed in the volume.

 

image

Step 9: Mount the partiton to /mnt or any desired folder

 

image

Step 10: Verify the disk has been mounted to your desired folder in our case its /mnt

 

image

Step 11: Resize the filesystem to reflect the new size in the partition

 

image

NOTE: Please use your partition manager according to your filesystem, we used XFS file system for the above, for ext4 and other file systems please browse the internet for the suitable partition manager.

Step 12: Verify the disk size again to see the new reflected partition

 

image

Step 13: Verify the contents of the partition to ensure your data is present and untouched by the above operation.

 

image

That’s it, enjoy expanding partition without issues.