Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tgtadm(8) [suse man page]

TGTADM(8)						    System Management Commands							 TGTADM(8)

NAME
tgtadm - Linux SCSI Target Administration Utility. SYNOPSIS
tgtadm --lld [driver] --op [operation] --mode [mode] [OPTION]... DESCRIPTION
tgtadm is used to monitor and modify everything about Linux SCSI target software: targets, volumes, etc. OPTIONS
--lld [driver] --op new --mode target --tid=[id] --targetname [name] add a new target with [id] and [name]. --lld [driver] --op delete --mode target --tid=[id] delete specific target with [id]. The target must have no active I_T nexus. --lld [driver] --op show --mode target show all the targets. --lld [driver] --op show --mode target --tid=[id] show target parameters of a target with [id]. --lld [driver] --op new --mode=logicalunit --tid=[id] --lun=[lun] --backing-store [path] add a new logical unit with [lun] to specific target with [id]. The logical unit is offered to the initiators. [path] must be block device files (including LVM and RAID devices) or regular files. lun0 is reserved for a special device automatically created. --lld [driver] --op delete --mode=logicalunit --tid=[id] --lun=[lun] delete specific logical unit with [lun] that the target with [id] has. --lld [driver] --op bind --mode=target --tid=[id] --initiator-address=[address] add the address to the access lists of the target with [id]. Initiators with the address can access to the target. 'ALL' is a special address to allow all initiators to access to a target. --lld [driver] --op unbind --mode=target --tid=[id] --initiator-address=[address] delete the address from the access lists of the target with [id]. --lld [driver] --op update --mode=target --tid=[id] --name=[parameter] --value=[value] change the value of [parameter] of the target with [id] to [value]. --version display version and exit --help display a list of available options and exits REPORTING BUGS
Report bugs to <stgt-devel@lists.berlios.de> System Management Commands 2007-06-20 TGTADM(8)

Check Out this Related Man Page

scsi_address(9S)                                            Data Structures for Drivers                                           scsi_address(9S)

NAME
scsi_address - SCSI address structure SYNOPSIS
#include <sys/scsi/scsi.h> INTERFACE LEVEL
Solaris architecture specific (Solaris DDI) DESCRIPTION
A scsi_address structure defines the addressing components for a SCSI target device. The address of the target device is separated into two components: target number and logical unit number. The two addressing components are used to uniquely identify any type of SCSI device; however, most devices can be addressed with the target component of the address. In the case where only the target component is used to address the device, the logical unit should be set to 0. If the SCSI target device supports logical units, then the HBA must interpret the logical units field of the data structure. The pkt_address member of a scsi_pkt(9S) is initialized by scsi_init_pkt(9F). STRUCTURE MEMBERS
scsi_hba_tran_t *a_hba_tran; /* Transport vectors for the SCSI bus */ ushort_t a_target; /* SCSI target id */ uchar_t a_lun; /* SCSI logical unit */ a_hba_tran is a pointer to the controlling HBA's transport vector structure. The SCSA interface uses this field to pass any transport requests from the SCSI target device drivers to the HBA driver. a_target is the target component of the SCSI address. a_lun is the logical unit component of the SCSI address. The logical unit is used to further distinguish a SCSI target device that supports multiple logical units from one that does not. The makecom(9F) family of functions use the a_lun field to set the logical unit field in the SCSI CDB, for compatibility with SCSI-1. SEE ALSO
makecom(9F), scsi_init_pkt(9F), scsi_hba_tran(9S), scsi_pkt(9S) Writing Device Drivers SunOS 5.10 30 Aug 1995 scsi_address(9S)
Man Page