softblade wrote:
Hi,everyone.
I'm now working on something about creating a virtual disk(lun). The following
questions confused me for quite a few days.
Can you give more details about what you want to create? Should it have
a SCSI interface?
1. How is a physical disk scaned and probed in Solaris? Which drivers are
involved in this process?
Have you looked at the SCSA architecture in Writing Device Drivers(from
docs.sun.com)? This subject is covered pretty well.
Off the top of my head, I think you accomplish what you want by
creating a SCSA HBA driver that just presents one disk.
2. Does the bus_ops structure play a role in the hardware probing process? If so, which entry point in the bus_ops probe the disk?
3. Is the mpxio open frame under which I can make my own multipath software? If
so, how can I use the confusing vhci, phci and client?
If you really want to go down this path, I'd look at the drivers for
FibreChannel, and iSCSI initiator. Both of these support mpxio. There
is a plan to open source the mpxio driver, although I don't know the
schedule.
4. I want to make a virtual disk finally. I know that the device node for this virtual
disk must be a pseudo device. It's also most likely that this pseudo device should be a
nexus node. If the node has its devo_bus_ops set to scsi_hba_busops, does it mean that
the system will probe the child antomatically? And, if the OS succeeds in probing(given
the actual physical lun path), does the OS "see" a virtual disk automatically?
Am I right? What else should I do?
Thanks a lot.
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss