Question
I have an iSCSI target and a SAN IP address. How do I make the iSCSI target visible on compute resources and backup servers?
Environment
All OnApp versions
Answer
To make the iSCSI target visible on compute resources and backup servers:
Discover the iSCSI target to see the new LUN and connect to it. This will assume that there is no authentication for the iSCSI connection. If needed, add the necessary details in /etc/iscsi/iscsid.conf
before proceeding. For example, you have a target iqn.blah.blah.blah
on a server using 10.0.0.25
:
iscsiadm -m discovery -t st -p 10.0.0.25
CODE
To ensure a proper connection, do the following to log in if you see the target listed:
iscsiadm -m node -l -T iqn.blah.blah.blah
CODE
To determine success and which block device appears on the compute resource/backup server, run the following:
tail -n50 /var/log/messages
CODE
To make it permanent, run the following:
iscsiadm -m node -T iqn.blah.blah.blah -p 10.0.0.25 -o update -n node.startup -v automatic
CODE
Repeat the steps for any other compute resources/backup servers where LUN needs to be available, and then follow the standard instructions for adding a new datastore to OnApp. To install an LVM datastore, go to https://docs.onapp.com/ig/latest/install-data-stores#id-.InstallDataStoresv6.5-lvm.