'Attach a new volume to scsi target as a logical unit.
If a logical unit exists on the specified target lun,
ietadm returns \'File exists\' and error code \'239\'.
This should be ignored for ensure export case.'

def _new_logicalunit(self, tid, lun, path):

    utils.execute('ietadm', '--op', 'new', ('--tid=%s' % tid), ('--lun=%d' % lun), '--params', ('Path=%s,Type=%s' % (path, self._iotype(path))), run_as_root=True, check_exit_code=[0, 239])
