vmware-esxi-iscsi-openfiler-continued
Download the .ISO or .VMX image for openfiler Use vSphereClient to add an extra Hard Disk (e.g. 1 GB is wrong, needs to be at least 1.5GB for datastore!)
CONSOLE will tell you the https://10.10.10.108:446 (for WEB GUI) = openfiler / password
System -> Network Access Configuration (bottom) -> Name 10.10.10.0 / 255.255.255.0 SHARE
Volumes -> Block Devices -> Edit Disk /dev/sdb (Size = 1019.75MB) label type gpt Mode = Primary Partition Type = Physical Volume .... CREATE
Now it's listed as Device /dev/sb1 (Linux Physical Volume 0x8e) ... Size 1018.73MB
Volumes -> Volume Groups ... enter NAME (checkbox on physical volumes to add) volgroupname ... size = 2016 MB
Volumes -> Add Volume -> Select Volume Group (scroll to bottom) -> Create a volume in "volgroupname" volname = slide bar to use max size = 2016MB , Filesystem = iSCSI ... CREATE
Green pie titled = Volumes in volume group "volgropuname" (2016MB)
SERVICES tab -> enable iSCSI target server Services -> iSCSI Target Setup (right) -> if you want a password...
Volumes -> iSCSI Targets (right) ... Target Configuration (tab) auto generates a Target IQN (the tsn.longnumber is for uniquness) literal iqn.dateyear-month.com.openfiler:tsn.namedesxi ADD (leaving all defaults) iqn.2006-01.com.openfiler:tsn.e44fee4649db
Volumes -> iSCSI Targets (right) -> LUN Mapping (tab) write-thru / blockio is the default (internet recommends writeback + fileio for performance) MAP = now appears as LUN Id. 0 with path /dev/volgroupname/volname
Volumes -> iSCSI Targets (right) -> Network ACL (tab) picks up name:network/host netmask acess = 10.10.10.0 / 255.255.255.0 ALLOW
HOST (10.10.10.249) -> Configuration -> Storage Adapters -> iSCSI Software Adapter ... Properties
While adding the iSCSI target IP with Dynamic Discovery, after you click close and rescan the bus... 10.10.10.108:3260
Selecting iSCSI Software Adapter (vmhba38 type iscsi) should show Devices:
OPNFILER iSCSI Disk(t.10.F405...) LUN0 Transport = iSCSI! Capacity = 1.97 G
(Note that if you go back into Properties for the Storage Adapter you'll see the Static Discovery tab populated, maybe with 2 different Target names, ensure it's correctly chosen your openfiler LUN)
IF PROPERTIES IS BLANK or CONNECTED TARGETS DOES NOT = 1 CHECK THE FIREWALL ON THE ESXi BOX! (iptables -P INPUT ACCEPT , iptables -P OUTPUT ACCEPT) ALSO, try vmkping 10.10.10.88
Configuration -> Storage Adapters -> iSCSI Software Adapter -> View PATHS Target = iqn.2006-01.com.openfiler:tsn.5c83d8f70076:10.10.10.108:3260
Configuration TAB -> Storage -> View: DEVICES
Name: OPNFILER iSCSI Disk
Configuration TAB -> Storage -> Add Storage -> Disk/LUN Should display the OPENFILER
IF IT IS BLANK: 1. check firewalls? 2. put openfiler on the ESXi host (as a guest?) 3. Ensure size of Volume is correct (not 32MB! but 900MB)
ESXi vSphereClient -> Storage -> Configuration -> Add Storage -> Select Disk LUN (leave name blank) = NEXT
Will read: OPNFILER iSCSI Disk = 2016.00MB with 988.37 Available on LUN 0 (the hard disk is blank) "A partition will be created and used" NEXT Datastore name = openfiler ... block size = default (256GB/1MB with Maximize Capacity) "Capacity value must be at least 1.2GB. Enter another Value."
After adding the new datastore "openfiler" add it to a VM as a hard disk - Add Hardware -> Location = Specify a datastore (Browse and select openfiler)