0. open-iscsi

最後更新: 2017-11-21

 

HomePage: https://github.com/open-iscsi/open-iscsi

 


open-iscsi

 

Debian - 安裝

apt-get install open-iscsi

設定檔:

config file

/etc/iscsi/initiatorname.iscsi

InitiatorName=XXXXXXX

/etc/default/open-iscsi

/etc/iscsi/iscsid.conf

/etc/iscsi/nodes/*                            <-- (persistent configuration database)

cli

/sbin/iscsi-iname

/sbin/iscsiadm

/sbin/iscsistart

/sbin/iscsi_discovery                    <- Perform send-targets discovery to the specified IP &  try to login

                                                       ( For iSCSI discovery to work: iscsid up & iSCSI modules loaded)

/usr/bin/iscsiadm                         <-- open-iscsi administration utility

/usr/sbin/iscsid                            <-- Open-iSCSI daemon

/var/iscsi/bindings

The iSCSI driver automatically maintains a bindings file /var/iscsi/bindings

This feature ensures that the SCSI numbers in the device symlinks described above will always map to the same iSCSI target.

Server: open-iscsi

up/down script:

/etc/init.d/open-iscsi start

/etc/init.d/open-iscsi status

Current active iSCSI sessions:
iscsiadm: No active sessions.

iscsi_discovery

Usage

iscsi_discovery <IP> [-p <port>] [-m]

[-m]   manual startup (default  is  automatic startup)

i.e.

iscsi_discovery 192.168.123.55