VMware cluster and croit work together very well. It is possible to store VMs on Ceph RBD via the iSCSI protocol. With the help of our iSCSI service gateways we achieve a HA Multipath iSCSI setup, which can keep the VMs running even if individual nodes or network segments fail.
#Setting up iSCSI
- Navigate to http://mgmt-node:8080/services
+ iSCSIin the action bar at the bottom of your window
- Select at least two servers to use for HA
- Select the newly created iSCSI service
editin the action bar at the bottom of your window
+ Add Clientin the action bar at the bottom of your window
#Add Image to group
- Navigate into the group register and select the newly created group
+ Add Imagein the action bar at the bottom of your window
Repeat that step until you have enough images configured.
Please note that for Multipath at least the number of images must be available as paths want to use them.
# Add Client using the VMware IQN
- Open your VMware Webinterface in another browser tab
- Navigate into Storage and select Software-iSCSI
- A configuration dialog will show up and provide you a
Name and Alias. Copy it!
- Navigate back to your croit iSCSI configuration dialog
- Paste the IQN string from the VMware Interface into the Dialog
- Add a Username of your choice
- Add a Passwort of your choice, or generate one
- Select the previously created iSCSI group
# Save iSCSI configuration in VMware
- Navigate to your VMware Webinterface
- Configure the
- Expand the CHAP authentication section, select
Do not use CHAP unless required by target
The Mutual CHAP authentication section should have
Do not use CHAPselected
- Save the configuration and verify that everything is working as expected
#Set iSCSI recovery timeout in VMware
Expand Advanced settings and set the “RecoveryTimeout” to 25.
VMWare tends to have pathing issues with ceph-iscsi, causing the gateways to crash. Set this:
esxcli storage nmp satp rule add -V LIO-ORG -M "TCMU device" -P VMW_PSP_MRU -s VMW_SATP_ALUA esxcli storage core claimrule load