I actually figured this out. Problem is the way the script calculates SCSI target number ("$diskUnitNumber"). It assumes that the first disk is target 0. If someone made the first disk on a new controller target 1 (as is common for our Paravirtual controllers), the new SCSI target number will be one less than it should be.
↧