* scsi lun online resize
@ 2007-06-05 9:36 Dmitry Melekhov
2007-07-05 12:59 ` Pasi Kärkkäinen
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Melekhov @ 2007-06-05 9:36 UTC (permalink / raw)
To: linux-kernel
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?
Thank you!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scsi lun online resize
2007-06-05 9:36 scsi lun online resize Dmitry Melekhov
@ 2007-07-05 12:59 ` Pasi Kärkkäinen
2007-07-05 15:50 ` Dmitry Melekhov
0 siblings, 1 reply; 4+ messages in thread
From: Pasi Kärkkäinen @ 2007-07-05 12:59 UTC (permalink / raw)
To: Dmitry Melekhov; +Cc: linux-kernel
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?
-- Pasi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scsi lun online resize
2007-07-05 12:59 ` Pasi Kärkkäinen
@ 2007-07-05 15:50 ` Dmitry Melekhov
2007-07-09 13:09 ` Pasi Kärkkäinen
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Melekhov @ 2007-07-05 15:50 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: linux-kernel
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...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scsi lun online resize
2007-07-05 15:50 ` Dmitry Melekhov
@ 2007-07-09 13:09 ` Pasi Kärkkäinen
0 siblings, 0 replies; 4+ messages in thread
From: Pasi Kärkkäinen @ 2007-07-09 13:09 UTC (permalink / raw)
To: Dmitry Melekhov; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-09 13:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 9:36 scsi lun online resize Dmitry Melekhov
2007-07-05 12:59 ` Pasi Kärkkäinen
2007-07-05 15:50 ` Dmitry Melekhov
2007-07-09 13:09 ` Pasi Kärkkäinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox