Here is the process I followed POST oVirt Hosted Engine 7.2.1 RC4 install.
- Make sure all of your iSCSI targets have the correct security on your SAN devices.
- If you are using Jumbo Frames (MTU 9000), make sure you can ping your targets with large packets
ping -M do -s 8972 10.10.9.10 ping -M do -s 8972 10.10.10.10
- Restart CentOS-oVirt host and then:
- check what paths are connected
iscsiadm --m session --op show
should output something like
tcp: [1] 10.10.10.10:3260,1 iqn.2000-01.com.synology:DATACluster.Target-OVENGINE.223b368d55 (non-flash) tcp: [2] 10.10.9.10:3260,1 iqn.2000-01.com.synology:DATACluster.Target-OVENGINE.223b368d55 (non-flash)
- If you want to add *all* available targets to the host *BE CAREFUL* as if you dont want to add all – skip to step 3
iscsiadm -m discovery -t st -p 10.10.10.10 -o new
now if you reboot – all of the targets should show when you run
iscsiadm --m session --op show
- If you want to add your targets one-by-one (Make sure you only add each target once and MPIO will find the additional paths)
iscsiadm -m node -T iqn.2000-01.com.synology:DATACluster.Target-OVIRT.223b368d55 -l -p 10.10.10.10:3260 -o new
make sure to change iqn, ip, port to match your environment. You’ll want to run the above command for each target/path and then you can use
iscsiadm -m session
to view your progress.
- Check your multipath settings too by using
multipath -ll
You can edit /etc/multipath.conf to suit your needs and then
service multipathd reload multipath -ll
- If you need to remove a iSCSI target path you can
iscsiadm -m node -u -T iqn.2000-01.com.synology:DATACluster.Target-1.223b368d55 -p 10.10.10.10:3260 iscsiadm -m node -o delete -T iqn.2000-01.com.synology:DATACluster.Target-1.223b368d55 -p 10.10.10.10:3260
which will logout of the target and then the second line will remove it from your host
- Now using the oVirt Gui – this is for 2 paths. If you require more, create iSCSI03,04,05…
- Network – Networks
- New
- Name: iSCSI01
- Label: iSCSI01
- VLAN: 2 (If required)
- un-check VM network
- MTU: 9000 (If required)
- Cluster – Remove check mark from Required
- New
- same as above but iSCSI02
- New
- Compute – Data Centers
- Click on the Default
- iSCSI Multipathing (tab)
- add
- Name: iscsimpio
- Check off iSCSI01, iSCSI02 under logical networks
- Check off all of your required targets
- add
- Compute – Hosts
- – Click the host
- Network Interfaces (tab)
- Setup Host Networks (button)
- drag iSCSI01 from the right to the NIC on the left that is one of your iSCSI NICS.
- click the pencil beside iSCSI01 and config the IP address, mask, and MTU
- drag iSCSI02 from the right to the NIC on the left that is one of your iSCSI NICS.
- click the pencil beside iSCSI02 and config the IP address, mask, and MTU
- Network – Networks
- check what paths are connected
Some additional iSCSI commands:
#check MPIO multipath -ll #iSCSI show connections iscsiadm --m session --op show #iSCSI Logout All iscsiadm --mode node --logoutall=all #iSCSI Login All iscsiadm -m node -l #iSCSI OFF service iscsi stop chkconfig iscsi off #iSCSI ON chkconfig iscsi on service iscsi start