You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guide to partition a ISCSI physical disk volume without LVM in Linux
Author: Aman Thapa Magar (Percy)
Introduction:
Tired of hassling though the internet to find the appropriate way to parititon iscsi disk ?. Here I present the simplest way to do it.
Step 1: List the physical partition table using the command below:
Step 2: List the mounted partition table using the below command
Step 3: Verify the contents of the disk such as your files as this important to ensure your data is present.
Step 4: Unmount the /dev/sdb parition from the root directory
Step 5: Verify the disk has been unmounted issuing the command below:
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.
Step 8: Verify the disk size has been increased and listed in the volume.
Step 9: Mount the partiton to /mnt or any desired folder
Step 10: Verify the disk has been mounted to your desired folder in our case its mnt
Step 11: Resize the filesystem to reflect the new size in the partition
NOTE: Please use your partiton 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: Verfiy the disk size again to see the new reflected partition
Step 13: Verify the contents of the partition to ensure your data is present and untouched by the above operation.
Thats it, enjoy expanding parition with no issue, have a great day/night !!