storage-connector

  • Canonical BootStack Charmers
Channel Revision Published Runs on
latest/stable 13 01 Nov 2023
Ubuntu 22.04 Ubuntu 20.04 Ubuntu 18.04
latest/stable 0 26 Aug 2021
Ubuntu 22.04 Ubuntu 20.04 Ubuntu 18.04
latest/candidate 13 01 Nov 2023
Ubuntu 22.04 Ubuntu 20.04 Ubuntu 18.04
latest/edge 13 01 Nov 2023
Ubuntu 22.04 Ubuntu 20.04 Ubuntu 18.04
juju deploy bootstack-charmers-storage-connector
Show information

Platform:

Ubuntu
22.04 20.04 18.04

Configure iSCSI

Set the storage-type to “iscsi” and configure the target and port.

juju config storage-connector \
    storage-type='iscsi' \
    iscsi-target=<TARGET_IP> \
    iscsi-port=<PORT>

The iSCSI initiator name can be configured through the initiator-dictionary config option. This modifies the /etc/iscsi/initiatorname.iscsi file and allows you to specify the node’s initiator name (which will be generated randomly otherwise).

juju config storage-connector \
     initiator-dictionary='{"hostname1": "iqn.yyyy-mm.naming-authority:uniquename1", "hostname2": "iqn.yyyy-mm.naming-authority:uniquename2"}'

The restarting of the services after iSCSI related changes does not happen automatically. Read more about the reasoning behind this here.

Restart the iSCSI services through the restart-services charm action.

juju run storage-connector/0 restart-services --params services="iscsid open-iscsi"

Help improve this document in the forum (guidelines). Last updated 1 year, 2 months ago.