Use Longhorn Volume as an iSCSI Target

Longhorn supports iSCSI target frontend mode. You can connect to it through any iSCSI client, including open-iscsi, and virtual machine hypervisor like KVM, as long as it’s in the same network as the Longhorn system.

The Longhorn CSI driver doesn’t support iSCSI mode.

To start a volume with the iSCSI target frontend mode, select iSCSI as the frontend when creating the volume.

After the volume has been attached, you will see something like the following in the endpoint field:


In this example,

  • The IP and port is
  • The target name is
  • The volume name is testvolume.
  • The LUN number is 1. Longhorn always uses LUN 1.

The above information can be used to connect to the iSCSI target provided by Longhorn using an iSCSI client.

© 2019-2024 Longhorn Authors | Documentation Distributed under CC-BY-4.0

© 2024 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.