Trying to run tgtadm (following some examples e.g. here) and not having much luck:
$ tgtadm –-mode target –-op show
tgtadm: unrecognized option '–-mode'
$ tgtadm --lld iscsi –-mode target –-op show
tgtadm: unrecognized option '–-mode'
Try `tgtadm --help' for more information.
$ apt list --installed | grep tgt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
tgt/jammy,now 1:1.0.80-1ubuntu2 amd64 [installed]
What am I doing wrong? I.e. what is the right way to run tgtadm?
Context:
- I am new to Ubuntu (did spend some time with CentOS in the years past) - please be gentle
- Inherited a Dell r730 server running Ubuntu 22.04.3 LTS with the sole purpose of being an iSCSI storage device for several VMware ESXi hosts. It's having issues: some ESXi hosts can see it, and come can't - and while the issue may be outside of the server, I'd like to get the hang of how iSCSI target are configured on it, and how to properly make changes if needed.