* How does multipath tool handle Lun remapping?
@ 2009-01-16 8:42 谢纲
2009-01-16 18:13 ` Konrad Rzeszutek
0 siblings, 1 reply; 4+ messages in thread
From: 谢纲 @ 2009-01-16 8:42 UTC (permalink / raw)
To: dm-devel
Hi,
multipath path tool use the external program, such as scsi_id in udev,
to get the id of the lun. But how does it handle the lun remapping?
For example, at first, thiere is a lun in array:lun1, it is mapped to
host with lun id 11. On the host, I use the multipath program to
generate a multipath device for this lun. Then I unmap lun1 and
another lun: lun2 which is mapped to the host with the same lun id 11.
In this situation, it seems that the multipath tool could not notice
that there is a change of lun even after recreate the multipath
device, is that true?
Thanks,
--
Xie Gang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does multipath tool handle Lun remapping?
2009-01-16 8:42 How does multipath tool handle Lun remapping? 谢纲
@ 2009-01-16 18:13 ` Konrad Rzeszutek
2009-01-20 3:17 ` 谢纲
0 siblings, 1 reply; 4+ messages in thread
From: Konrad Rzeszutek @ 2009-01-16 18:13 UTC (permalink / raw)
To: device-mapper development
On Fri, Jan 16, 2009 at 04:42:25PM +0800, 谢纲 wrote:
> Hi,
>
> multipath path tool use the external program, such as scsi_id in udev,
> to get the id of the lun. But how does it handle the lun remapping?
> For example, at first, thiere is a lun in array:lun1, it is mapped to
> host with lun id 11. On the host, I use the multipath program to
> generate a multipath device for this lun. Then I unmap lun1 and
> another lun: lun2 which is mapped to the host with the same lun id 11.
Do you reboot the system after those unmaps/maps?
> In this situation, it seems that the multipath tool could not notice
> that there is a change of lun even after recreate the multipath
> device, is that true?
It would - as long as hte block devices get re-created/deleted
for the new/old LUNs.
>
> Thanks,
>
> --
> Xie Gang
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does multipath tool handle Lun remapping?
2009-01-16 18:13 ` Konrad Rzeszutek
@ 2009-01-20 3:17 ` 谢纲
2009-01-20 15:44 ` Konrad Rzeszutek
0 siblings, 1 reply; 4+ messages in thread
From: 谢纲 @ 2009-01-20 3:17 UTC (permalink / raw)
To: device-mapper development
It make sense that multipath tool can notice that there is a
recreation of OS device. But it still depends on the external program,
such as scsi_id to get the identifier of the lun。
I looked through the scsi_id source code, found that unit serial
number might be returned if the device supported the EVPD inquery
page80. This might be the wrong infomation for multipath tool, is that
true?
Thanks,
On Sat, Jan 17, 2009 at 2:13 AM, Konrad Rzeszutek
<konrad@virtualiron.com> wrote:
> On Fri, Jan 16, 2009 at 04:42:25PM +0800, 谢纲 wrote:
>> Hi,
>>
>> multipath path tool use the external program, such as scsi_id in udev,
>> to get the id of the lun. But how does it handle the lun remapping?
>> For example, at first, thiere is a lun in array:lun1, it is mapped to
>> host with lun id 11. On the host, I use the multipath program to
>> generate a multipath device for this lun. Then I unmap lun1 and
>> another lun: lun2 which is mapped to the host with the same lun id 11.
>
> Do you reboot the system after those unmaps/maps?
>
>> In this situation, it seems that the multipath tool could not notice
>> that there is a change of lun even after recreate the multipath
>> device, is that true?
>
> It would - as long as hte block devices get re-created/deleted
> for the new/old LUNs.
>
>>
>> Thanks,
>>
>> --
>> Xie Gang
>>
>> --
>> dm-devel mailing list
>> dm-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/dm-devel
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
--
Xie Gang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does multipath tool handle Lun remapping?
2009-01-20 3:17 ` 谢纲
@ 2009-01-20 15:44 ` Konrad Rzeszutek
0 siblings, 0 replies; 4+ messages in thread
From: Konrad Rzeszutek @ 2009-01-20 15:44 UTC (permalink / raw)
To: device-mapper development
On Tue, Jan 20, 2009 at 11:17:53AM +0800, 谢纲 wrote:
> It make sense that multipath tool can notice that there is a
> recreation of OS device. But it still depends on the external program,
> such as scsi_id to get the identifier of the lun。
> I looked through the scsi_id source code, found that unit serial
> number might be returned if the device supported the EVPD inquery
> page80. This might be the wrong infomation for multipath tool, is that
> true?
That information is correct. You can prove it yourself by running
'scsi_id -g -u -s /block/sdb' before and after the deletion. The
value will be the same.
What is not correct is the LUN number. And for that there needs
to be a deletion of the block device and a recreation of them.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-20 15:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 8:42 How does multipath tool handle Lun remapping? 谢纲
2009-01-16 18:13 ` Konrad Rzeszutek
2009-01-20 3:17 ` 谢纲
2009-01-20 15:44 ` Konrad Rzeszutek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.