OS Manuals

/usr/bin/tgt-setup-lun

Linux SCSI target framework (tgtd) - Rancher fork with Longhorn patches

From rancher-tgt 1.0.79.2-r1 (enterprise-packages), captured 2026-11-08 by running tgt-setup-lun --help (exit 1). permalink

Also provided by 1 other package version
/usr/bin/tgt-setup-lun: illegal option -- -
/usr/bin/tgt-setup-lun: line 25: basename: command not found
usage:
	 -n tgt_name -d dev -b bs_name -B block_size -t transport -C control_port [initiator_IP1 initiator_IP2 ...]
defaults:
	backing store: rdwr
	transport: iscsi
	initiator: ALL
	control port: -
examples:
	 -n tgt-1 -d /dev/sdb1 192.168.1.2
	 -n tgt-2 -d /tmp/null -b null -t iser
	 -n tgt-3 -d ~/disk3.bin -b rdwr 192.168.1.2 192.168.1.3
WARNING:
	Please remember to set blocksize to 4096 for newer Advanced Format (4K) disks larger than 2TB. Otherwise, your existing filesystems will not be readable.
Examples (4) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.