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?
Thanks Peter
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.
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.
Just to further this: http://www.linuxjournal.com/article/7321
And I don't think tgt or iet can detect a change in the backing device w/o a restart, I recall iet having active work taking place on this atm...
----- Original Message ----
From: Peter Blajev pblajev@ucsd.edu To: CentOS Mailing List centos@centos.org Sent: Fri, January 15, 2010 10:34:47 PM Subject: [CentOS] How to force iscsi to see the new LUN size
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.
You can logout from that particular target and then login again
iscsiadm --mode node --targetname target --portal portalip:3260 --logout iscsiadm --mode node --targetname target --portal portalip:3260 --login
Hope this helps
Fer
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
Pasi Kärkkäinen wrote:
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thank you to all that replied.
I studied and followed the document Pasi provided: http://pasik.reaktio.net/rhel5-online-iscsi-resize-test.txt
Great step-by-step instructions, right on the point. It worked for me.
Thanks again.
-- Peter
On Tue, Jan 19, 2010 at 02:53:18PM -0800, Peter Blajev wrote:
Pasi Kärkkäinen wrote:
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thank you to all that replied.
I studied and followed the document Pasi provided: http://pasik.reaktio.net/rhel5-online-iscsi-resize-test.txt
Great step-by-step instructions, right on the point. It worked for me.
Thanks again.
No problems. Nice to see it was of some help for you :)
-- Pasi