HPE Morpheus VM Essentials
1843192 Members
2947 Online
110214 Solutions
New Discussion

Is there any official guide or whitepaper for configuring iscsi shared storage?

 
SOLVED
Go to solution
BMuellerDSR
Occasional Advisor

Is there any official guide or whitepaper for configuring iscsi shared storage?

Hello there,

Is there any official guide or whitepaper for configuring iSCSI shared storage as gfs2 datastore?

The documentation only states "Configuring connections to external storage must be done on each host at the OS level."

 

Thank You

8 REPLIES 8
BMuellerDSR
Occasional Advisor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

I got it working, can s.o. please confirm that this is ok?

Create iSCSI Interface (iface)
	sudo iscsiadm -m iface -I iface_iSCSI-A -o new
	sudo iscsiadm -m iface -I iface_iSCSI-B -o new	
Edit iqn via vim
	sudo vim /etc/iscsi/initiatorname.iSCSI
Restart iSCSI
	sudo systemctl restart iscsid
Connect the iSCSI Interfaces with the physical iSCSI Network Interface Names
	sudo iscsiadm -m iface -I iface_iSCSI-A --op=update -n iface.net_ifacename -v eth1 
	sudo iscsiadm -m iface -I iface_iSCSI-B --op=update -n iface.net_ifacename -v eth2
Discovering the Targets
	sudo iscsiadm -I iface_iSCSI-A --mode discovery --type sendtargets --portal 10.10.11.1
		10.10.11.1:3260,1 iqn.2005-10.org.freenas.ctl:ds01
		10.10.12.1:3260,1 iqn.2005-10.org.freenas.ctl:ds01

	sudo iscsiadm -I iface_iSCSI-B --mode discovery --type sendtargets --portal 10.10.12.1
		10.10.12.1:3260,1 iqn.2005-10.org.freenas.ctl:ds01
		10.10.11.1:3260,1 iqn.2005-10.org.freenas.ctl:ds01
Log into the Targets
	sudo iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:ds01 -p 10.10.11.1 -I iface_iSCSI-A --login
	sudo iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:ds01 -p 10.10.12.1 -I iface_iSCSI-B --login
Log in automatically after restart
	sudo iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:ds01 -p 10.10.11.1 -I iface_iSCSI-A --op update -n node.startup -v automatic
	sudo iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:ds01 -p 10.10.12.1 -I iface_iSCSI-B --op update -n node.startup -v automatic
Edit multipathing from user_friendly_names yes to no
	sudo vim /etc/multipath.conf
	Defaults
		{
		find_multipaths yes
		user_friendly_names no
		}
Restart multipathing
	sudo systemctl restart multipathd

 Thank You

dya
Valued Contributor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

1. Configuring shared storage: Setting up and adding a GFS2 datastore
https://www.hpe.com/jp/ja/resource-library.video.configuring-shared-storage-setting-up-and-adding-a-gfs2-datastore.v100006436.html
※I think it's probably similar to BMuellerDSR's content.

2. HPE All-in-One Information Hub(HPE Morpheus VM Essentials Software - Guide: HPE Morpheus VM Essentials Standalone Quick Setup Guide)
https://h50146.www5.hpe.com/directplus_ent/library/vm_essentials/
※This information is for limited release and specific to Japanese sites.

At first, I tried using the CLI like in “1,” but honestly, it was a hassle, so I switched to using the HVM WebUI as described in “2.”

※Apologies if this is difficult to understand due to machine translation.

 

jamgwert81
Advisor
Solution

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

@BMuellerDSR Would you mind sharing your TrueNAS configuration for the iSCSI setup?

I had some trouble getting this to work.  My TrueNAS extent already had VMFS data on it.  I wiped it but was having issues adding the GFS2 Data Store in VME.  I ended up redoing the entire iSCSI extent on the TrueNAS side and was still having some issues.  Finally got it to work on the last attempt, the only thing I did differently was I made sure to make the extent name and GFS2 datastore name match, and I also set the block size on the TrueNAS side to 4K over the default of 512.  Not entirely sure if that's required but interested in seeing the iSCSI setup on the TrueNAS side to understand what actually fixed it.

Thanks in advance!

BTW, this was the video I used for setup on the HVM and VME side.  Very similar to what you posted but your post is great because I don't have to pause to figure out the commands to run.

https://www.hpe.com/us/en/morpheus-vm-essentials-software/resources.html?media-id=%2Fus%2Fen%2Fresources%2Fsoftware%2Fvideo%2Fv100006436%2F_jcr_content.details.json

BMuellerDSR
Occasional Advisor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

Hi dya,

unfortunately i cant access the VM Essentials Standalone Quick Setup Guide in the japanese partner portal and in the german partner portal i cant find the document.

thank you anyway.

BMuellerDSR
Occasional Advisor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

VME_Lab1.pngVME_Lab2.png

BMuellerDSR
Occasional Advisor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

F.Y.I.: I did a complete resetup of all hosts and vme-mgr vm and all you have to do for iSCSI setup is configuring the iSCSI NICs / IPs / VLANs on each host during host Installation.

Then configure the iSCSI targets on the storage system.

And then go to your cluster-storage-iSCSI in the morpeus ui and add the target portal IPs of your storage.

VME_Lab6.png

Then wait for about 2 minutes and do rescan (refresh) of the hosts.

VME_Lab7.png

and finally add the datastore(s) as gfs2 pool selecting the right disk devive

(GFS2 works only if you have at least 3 Hosts, else clicking "save" in the wizard does nothing at all)

VME_Lab8.png

No Need to configure iscsi via cli / iscsiadm or multipathing.

 

jamgwert81
Advisor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

@BMuellerDSR thanks for sharing!  Looks like TrueNAS Scale.  I acutally just updated to Scale yesterday.

I notice you have the Extent Type selected as File.  I was trying to make mine work as Device, which eventually worked. 

Based on your screenshots, my issue must not have been block size causing me issues based on yours being the default 512.  You also didn't name the extent the same name as what you named it i the GUI either, so it must have just been something weird on my end.

Again thanks for sharing your setup and guidance on setup!

jamgwert81
Advisor

Betreff: Is there any official guide or whitepaper for configuring iscsi shared storage?

@BMuellerDSR Thanks again for posting your TrueNAS setup.  I went back to mine this last week and realized that even though I had it setup as Extent Type: Device instead of File, it would not work to actually move VMs onto that storage.  It appeared like it was available but I couldn't write anything to it when I tried as it kept failing.

I ended up redoing the iscsi extent and made sure to make it to Extent Type: File and all is good. That works!