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

Sun Jan 17 20:41:58 UTC 2010
Pasi Kärkkäinen <pasik at iki.fi>

On Fri, Jan 15, 2010 at 05:34:47PM -0800, 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.
> 
> Any ideas?
> 

Try: iscsiadm -m node -R
It should work with CentOS 5.3 and newer.

Also you might be interested of this:
http://pasik.reaktio.net/rhel5-online-iscsi-resize-test.txt

-- Pasi