How Virtual Machines Access Data on a SAN-- FC and iSCSI

1. for FC

When a virtual machine interacts with its virtual disk stored on a SAN, the following process takes place:


1 When the guest operating system in a virtual machine reads or writes to SCSI disk, it issues SCSI commands to the virtual disk.


2 Device drivers in the virtual machine’s operating system communicate with the virtual SCSI controllers.


3 The virtual SCSI Controller forwards the command to the VMkernel.


4 The VMkernel performs the following tasks.
a. Locates the file in the VMFS volume that corresponds to the guest virtual machine disk.
b. Maps the requests for the blocks on the virtual disk to blocks on the appropriate physical device.
c. Sends the modified I/O request from the device driver in the VMkernel to the physical HBA.


5 The physical HBA performs the following tasks.
a. Packages the I/O request according to the rules of the FC protocol.
b. Transmits the request to the SAN.


6 Depending on which port the HBA uses to connect to the fabric, one of the SAN switches receives the request and routes it to the storage device that the host wants to access.

 

2. for iSCSI

When a virtual machine interacts with its virtual disk stored on a SAN, the following process takes place:


1 When the guest operating system in a virtual machine reads or writes to SCSI disk, it issues SCSI commands to the virtual disk.


2 Device drivers in the virtual machine’s operating system communicate with the virtual SCSI controllers.


3 The virtual SCSI Controller forwards the command to the VMkernel.


4 The VMkernel performs the following tasks.
a. Locates the file in the VMFS volume that corresponds to the guest virtual machine disk.
b. Maps the requests for the blocks on the virtual disk to blocks on the appropriate physical device.
c. Sends the modified I/O request from the device driver in the VMkernel to the iSCSI initiator (hardware or software).


5 If the iSCSI initiator is a hardware iSCSI adapter (both independent or dependent), the adapter performs the following tasks.
a. Encapsulates I/O requests into iSCSI Protocol Data Units (PDUs).
b. Encapsulates iSCSI PDUs into TCP/IP packets.
c. Sends IP packets over Ethernet to the iSCSI storage system.


6 If the iSCSI initiator is a software iSCSI adapter, the following takes place.
a. The iSCSI initiator encapsulates I/O requests into iSCSI PDUs.
b. The initiator sends iSCSI PDUs through TCP/IP connections.
c. The VMkernel TCP/IP stack relays TCP/IP packets to a physical NIC.
d. The physical NIC sends IP packets over Ethernet to the iSCSI storage system.


7 Depending on which port the iSCSI initiator uses to connect to the network, Ethernet switches and routers carry the request to the storage device that the host wants to access.

 

你可能感兴趣的:(vmware)