This is just an update to let you all know that the configuration I installed is still working fine, now with the VMware kernel upgraded to ESXi 4.1 (This was done before ESXi 5 came out, hardware compatibility with ESXi 5.x not yet checked).
Basically, the host contains an additional SAS SCSI HBA used only for the tape drive (performance and stability choice), the tape drive is passed through as a genereic SCSI device to a dedicated virtual LSI SAS adapter in the VM that runs the backup software. The SCSI address of the tape drive on the virtual adapter is manually set to the same one as what vClient reports it to be on the physical adapter, so any reference to the unit/lun in the SCSI commands won't need translation. Additionally, the tape block size has been artificially set to a lower value to avoid the issue seen in ESXi 4.0 (no need to retest larger block sizes with later ESXi versions, turns out the disk SAN is the speed bottleneck during backups, not the tape interface).
Two small problems have been observed and need routine working around, but it works well enough for production:
- When powering up the ESXi 4.x host and/or the tape using Guest VM, a tape must be already in the drive or hardware detection fails.
- If an attempt is made to use the tape drive while no tape is inserted, the Guest VM hangs on the SCSI request and the physical SCSI bus is put in an invalid state which cannot be cleared without physically power cycling the host, which is disruptive but can be avoided with diligent operation procedures to make sure the tape drive is not empty at the scheduled times.
These two issues are not for discussion here, I just mentioned them for completeness.
Hardware used:
- HP Proliant Server with non-IOMMU AMD CPUs, model is on the ESXi 4.x HCL.
- HP SCSI adapter, which is both on the ESXi 4.x HCL (as a general SCSI adapter) and the HP HCL (for the tape drive and server).
- HP LTO-4 Ultrium tape drive with external SAS interface cable. Tape is HH (half height) in an external enclosure.
- An external iSCSI disk array (not HP), model is on the ESXi 4.x HCL.