Re: iSCSI device naming issues

Mike Anderson
2004-07-01T15:57:44Z

Surekha.PC [surekhap@cisco.com] wrote:
> 1) Having an iSCSI pseudo bus.
> This will create a fake iscsi bus as "/sys/bus/iscsi" and all devices
> will be under this pseudo bus. This can be used to lookup iSCSI
> devices. I don't see any other use of this fake bus. Is it still
> ok to pursue with this approach?
>

This sounds like the wrong approach.

> 2) Having an attribute for iSCSI host which displays the name of
> iSCSI driver as shown:
>
> $cat /sys/class/scsi_host/hostX/hostname
> "iSCSI SFnet Driver"

If you set proc_name in your template this value will show up under
/sys/class/scsi_host/host<n>/proc_name.

> 3) Make use of scsi_id.
> scsi_id can be used to get unique name instead of parsing sysfs
> path for device name creation. However scsi_id is helpful only
> for block devices, and there is no way to handle unique naming
> for tape devices. So this will not make a complete solution.

Well you can still setup a udev rule to use scsi_id for you block
devices and then use location naming for the tapes ( some newer
generation tape drives also support serial numbers).

-andmike
--
Michael Anderson
andmike@us.ibm.com