[CentOS] How to force iscsi to see the new LUN size

John R Pierce pierce at hogranch.com
Sat Jan 16 01:44:10 UTC 2010


Peter Blajev wrote:
> Hi,
>
> I increased the size of one of the LUNs and on CentOS 5.4 if I restart 
> iscsi (`service iscsi restart`) I'll see the the new size but this will 
> disconnect all other LUNs.
>
> I'm hoping that there is isciadm or some other command that will force 
> iscsi to rediscover the LUNs but I can't seem to be able to come up with 
> one.
>
> Resize2fs says that there is nothing to be done. I'm not using LVM.
>   

never tried this on iscsi, but it may well work...

echo “B T L” > /sys/class/scsi_host/hostH/scan

where B T L are B, T, L, are the bus, target, and LUN IDs, and hostH is 
the Host.



More information about the CentOS mailing list