Re: scsi lun online resize

From: Pasi Kärkkäinen
Date: Mon Jul 09 2007 - 09:09:24 EST


On Thu, Jul 05, 2007 at 08:50:28PM +0500, Dmitry Melekhov wrote:
> Pasi Kärkkäinen wrote:
> >On Tue, Jun 05, 2007 at 02:36:51PM +0500, Dmitry Melekhov wrote:
> >
> >>Hello!
> >>
> >>I'm playing with iscsi on linux.
> >>And I have following problem:
> >>
> >>If I change lun size on target side and then do echo "1" >/sys/block/
> >>sdb/device/rescan
> >>device size is changed only if /dev/sdb is not mounted, if it is
> >>mounted fdisk shows no size change, so lun can't be resized online.
> >>
> >>open-iscsi guys say this is general linux problem, not iscsi specific.
> >>Could you tell me is there any solution?
> >>
> >>
> >
> >Do you have partition table on /dev/sdb, or are you using /dev/sdb
> >directly?
> >
> >
> I tried both...
>

Did you try:

echo "- - -" > /sys/class/scsi_host/hostX/scan

That works at least with Qlogic iSCSI HBA (qla4xxx).

-- Pasi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/