iSCSI on Linux with Open-iSCSI
Connect only the target for your storage account, then identify the disk without formatting it.
Mis à jour le 29 October 2026
Prepare
In DediSpace, go to My access → Manage → Full view. Check that the service is enabled and copy its settings. Replace dk00xxxx with your access ID. These examples are for shared storage. A Pro service may use a different address. This example is for Debian and Ubuntu. Outside a cluster configuration, only one host should write to a LUN. CHAP does not encrypt iSCSI data. Check that your network or tunnel provides the protection you need.
Install and discover targets
Discovery lists targets without connecting their disks. Copy the portal and IQN that exactly match the values in DediSpace.
sudo apt install open-iscsi
sudo systemctl start iscsid
sudo iscsiadm -m discoverydb -t sendtargets -p iscsi.dedikam.com:3260 -o new --discover
sudo iscsiadm -m nodeConfigure CHAP without recording a password in shell history
Use sudoedit to open the configuration file for the selected target under /etc/iscsi/nodes/ or the location specified by your distribution. Use the IQN directory and portal created during discovery. Set the three lines below in this private file, restrict read access to root and replace the secret in the editor. Leave all other targets unchanged.
Target configuration file settings
Enter these lines in the configuration file. Do not run them in a shell.
node.session.auth.authmethod = CHAP
node.session.auth.username = dk00xxxx
node.session.auth.password = SECRET_CHAP_DE_VOTRE_ACCESConnect and verify
Replace IQN_EXACT and PORTAIL_EXACT:3260 with the actual values for the node found during discovery.
sudo iscsiadm -m node -T IQN_EXACT -p PORTAIL_EXACT:3260 --login
sudo iscsiadm -m session
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTSWhat to expect
The session should be active and the LUN should appear in lsblk. Identify its contents before mounting an existing partition. Preparing a new disk is a separate step. You can verify the connection without running mkfs.
Disconnect
Stop writes, unmount every file system on this LUN and disable any LVM or swap use before logging out of this specific target.
sudo iscsiadm -m node -T IQN_EXACT -p PORTAIL_EXACT:3260 --logoutIf something looks wrong
If discovery requires CHAP, ask support to confirm the separate discovery credentials and settings. Resolve any connection failure before configuring automatic startup. On a server using other LUNs, leave their iSCSI services running.
Reference documentation
Need a hand?
Tell us which storage account or service is affected and what message you see. Our team will help.
Sign in to contact support