On 24 Feb 2010 at 9:14, guymatz wrote:

> Hello,
> I would really love to be able to tell if (and ideally where!) an
> iSCSI LUN (right word here?) is mounted.  I don't want to mount it
> twice . . !  Any way to do this?  Is there an ideal way to do iSCSI
> accounting?

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

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to