HowTo Configure NVMe over Fabrics Target using nvmetcli

Version 2

    nvmetcli is a tool (similar to targetcli) that helps the user configure the subsystems and nvme ports for the target.

     

    References

     

     

    Usage

    1. Clone the git

    # git clone git://git.infradead.org/users/hch/nvmetcli.git

     

    2. Install

    # cd nvmetcli/

    # ./setup.py  install

     

    3. Run

    [root@mti-mar-s6 ~]# nvmetcli

    /> ls

    o- / ......................................................................................................................... [...]

      o- hosts ................................................................................................................... [...]

      o- ports ................................................................................................................... [...]

      | o- 1 ..................................................................................................................... [...]

      | | o- referrals ........................................................................................................... [...]

      | | o- subsystems .......................................................................................................... [...]

      | |   o- testsubsystem ..................................................................................................... [...]

      o- subsystems .............................................................................................................. [...]

        o- testsubsystem ......................................................................................................... [...]

        | o- allowed_hosts ....................................................................................................... [...]

        | o- namespaces .......................................................................................................... [...]

        |   o- 1 ................................................................................................................. [...]

     

    More information about the usage of this tool can be found in the nvmetcli git.