---
title: Charmhub | Deploy storage-connector using Charmhub - The Open Operator Collection
description: Deploy the latest version of storage-connector on any cloud.
url: https://charmhub.io/bootstack-charmers-storage-connector/docs/configure-iscsi
---

# storage-connector

[Canonical BootStack Charmers](https://charmhub.io/publisher/bootstack-charmers "View all packages from Canonical BootStack Charmers")

* [Canonical BootStack Charmers](https://charmhub.io/publisher/bootstack-charmers "View all packages from Canonical BootStack Charmers")

Platform:

22.04

20.04

18.04

stable 13

```
juju deploy bootstack-charmers-storage-connector
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://launchpad.net/charm-storage-connector)

---

#### Contacts

##### Maintainers

+ [Camille Rodriguez](mailto:camille.rodriguez@canonical.com)

* [Submit a bug](https://bugs.launchpad.net/charm-storage-connector)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# 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](https://ubuntu.com/server/docs/service-iscsi) 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](https://charmhub.io/bootstack-charmers-storage-connector/docs/manual-restart-iscsi-services).

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

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

---
