Increasing or Extending iSCSI Volume on CentOS 7/RedHat 7 server.
1. Increase the preferred storage value on the storage array. For example: on the Dell EMC, navigate to Storage -> Block -> LUNs and then increase the requires LUN size.
2. Check which multipath its using and their corresponding device like sdb, sdc etc.. on the linux server
3. Using below command you can find the multipath that has been using.
# multipath -l
dev-vm1_vws1 (3600601600ed04500bfc4f95ab84860ae) dm-3 DGC ,VRAID
size=1.0T features='2 queue_if_no_path retain_attached_hw_handler' hwhandler='1 alua' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
|- 1:0:0:0 sdb 8:16 active undef running
|- 2:0:0:0 sdc 8:32 active undef running
|- 3:0:0:0 sdd 8:48 active undef running
|- 4:0:0:0 sde 8:64 active undef running
|- 5:0:0:0 sdf 8:80 active undef running
|- 6:0:0:0 sdg 8:96 active undef running
|- 7:0:0:0 sdh 8:112 active undef running
`- 8:0:0:0 sdi 8:128 active undef running
2. Rescan the device for the respective device. In the above example, it lists sdb, sdc, sdd, sde, sdf, sdg, sdh and sdi
# echo 1 > /sys/block/sdb/device/rescan
# echo 1 > /sys/block/sdc/device/rescan
# echo 1 > /sys/block/sdd/device/rescan
# echo 1 > /sys/block/sde/device/rescan
# echo 1 > /sys/block/sdf/device/rescan
# echo 1 > /sys/block/sdg/device/rescan
# echo 1 > /sys/block/sdh/device/rescan
# echo 1 > /sys/block/sdi/device/rescan
3. Resize the multipath
# multipathd resize map dm-3
4. Resize the file system using xfs_growfs or resize2fs
# xfs_growfs /dev/mapper/dev-vm1_vws1 (use resize2fs for ext4 file system)
5. Then use df -h with the mount point for the extended file system to make sure it got updated.
October 07, 2021
Tags :
Linux
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments