如何显示(在 iscsi 目标上)哪些启动器(如果有)处于活动状态?

如何显示(在 iscsi 目标上)哪些启动器(如果有)处于活动状态?

Ubuntu 主机是使用 targetcli 的 iSCSI 目标。配置完成后,我如何在目标主机哪些发起者(如果有的话)是活跃的?

答案1

您可以使用(在 Ubuntu 18.04 中测试):

targetcli sessions detail

结果如下:

alias:  sid: 8 type: Normal session-state: LOGGED_IN
   name: iqn.1991-05.com.microsoft:srvr01 (NOT AUTHENTICATED)
   mapped-lun: 0 backstore: block/storage01 mode: rw
   address: 10.0.0.11 (TCP)  cid: 1 connection-state: LOGGED_IN
alias:  sid: 9 type: Normal session-state: LOGGED_IN
   name: iqn.1991-05.com.microsoft:srvr02 (NOT AUTHENTICATED)
   mapped-lun: 0 backstore: block/storage01 mode: rw
   address: 10.0.0.12 (TCP)  cid: 1 connection-state: LOGGED_IN
alias:  sid: 10 type: Normal session-state: LOGGED_IN
   name: iqn.1991-05.com.microsoft:srvr03 (NOT AUTHENTICATED)
   mapped-lun: 0 backstore: block/storage01 mode: rw
   address: 10.0.0.13 (TCP)  cid: 1 connection-state: LOGGED_IN

相关内容