Thanks a lot,
Guy
once you mount your LUN identify it in /dev/disk/by-id/*
from then on it will stay the same no matter whet /dev/sd* it
is. You can specify /dev/disk/by-id/ everywhere, like in fstab
and not care about what letter it has.
If your lun is not mounted you will not find it in /dev/disk/by-id/
(If the LUN has a filesystem on it it will also be in /dev/disk/by-uuid/* )
Good luck
Boaz
Thanks again,
Guy
You could run iscsiadm -m session -P 3 to see the iscsi luns (you would
see /dev/sdX) then run df or mount to see if /dev/sdX is listed as mounted.
Have you seen a way to do this with fibre channel or scsi or sata disks?
thanks again,
Guy
You can only see that from the iSCSI target.
Of if your application or filesystem writes some data about itself (including the node name)
to the LUN, you could read and check that.
-- Pasi
I can think of a two-way process:
1) get the device names for the LUN with "lssci --transport" (SLES10)
2) grep the mounts for those device names (assuming you are not using
multipath)
When using multipath, you should get additional device names with
"multipath -l" before step 2)
Regards,
Ulrich
> Thanks. What I'm really looking to do is have a way to check from
> *another* whether the LUN is already in use . . .
Oh, that's simple: It's called "documentation" ;-)
Regards,
Ulrich
Or you could configure your iSCSI target to only allow one initiator
to attach to the LUN at a time..
-- Pasi
could you please explain or give a hint on how to do that - limiting the
target to a single initiator?
My impression was, that this isn't possible with open-iscsi !?
-- Jörg
Am 25.02.10 11:27 schrieb "Pasi Kärkkäinen" unter <pa...@iki.fi>:
You can't do that with open-iscsi. open-iscsi is an iSCSI initiator (client),
not iSCSI target (server).
You need to configure that in your iSCSI target (=storage server).
-- Pasi
>
> Am 25.02.10 11:27 schrieb "Pasi K�rkk�inen" unter <pa...@iki.fi>:
>>> Or you could configure your iSCSI target to only allow one initiator
>>> to attach to the LUN at a time..
As this seems not the case, please ignore my request.
Cheers,
Jörg
Am 25.02.10 21:53 schrieb "Pasi Kärkkäinen" unter <pa...@iki.fi>:
> On Thu, Feb 25, 2010 at 03:26:57PM +0100, Jörg Delker wrote:
>> Hi Pasi,
>>
>> could you please explain or give a hint on how to do that - limiting the
>> target to a single initiator?
>>
>> My impression was, that this isn't possible with open-iscsi !?
>>
>
> You can't do that with open-iscsi. open-iscsi is an iSCSI initiator (client),
> not iSCSI target (server).
>
> You need to configure that in your iSCSI target (=storage server).
>
> -- Pasi
>
>>
>> Am 25.02.10 11:27 schrieb "Pasi Kärkkäinen" unter <pa...@iki.fi>: