{"id":3890,"date":"2012-09-21T09:26:37","date_gmt":"2012-09-21T01:26:37","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3890"},"modified":"2023-04-28T09:48:59","modified_gmt":"2023-04-28T09:48:59","slug":"how-to-setup-and-configure-openfiler-iscsi-storage-on-vmware","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-setup-and-configure-openfiler-iscsi-storage-on-vmware\/","title":{"rendered":"How to Setup and Configure Openfiler iSCSI Storage on VMware"},"content":{"rendered":"<p>This post describes on how to setup and configure hosted Openfiler iSCSI storage target on a VMware ESX\/ESXi or VMware server 1.x or 2.x host using the freely available <a href=\"https:\/\/www.openfiler.com\/community\/download\/\" rel=\"\">Openfiler appliance<\/a>. However this configuration and setting not a suitable solution for a production environment as it does not include any iSCSI CHAP authentication or datastore multipathing. But it&#8217;s good for troubleshooting and learning. Openfiler is an Open Source Network Attached Storage and Storage Area Network Solution.<\/p>\n<h2>Pre-Requisites :<\/h2>\n<ul>\n<li>a. VMware ESX\/ESXi\/Server 2.0\/Vmware workstations\/VMware player as a host with a minimum of 5GB of free space on the local datastore.<\/li>\n<li>b.Addional Space for extra logical volume on Openfiler iSCSI Storage (e.g dev\/sdb)<\/li>\n<li>c.Openfiler appliance source file. (e.g openfiler-2.3-x86_64.vmware.tar.gz) You may download at this URL :<br \/>\n<a href=\"https:\/\/www.openfiler.com\/community\/download\/\" rel=\"\">http:\/\/www.openfiler.com\/community\/download\/<\/a><\/li>\n<li>Disk \/dev\/sdb (30GB) has been added as below :<\/li>\n<\/ul>\n<pre>[root@storage01 ~]# fdisk -l\n\nDisk \/dev\/sda: 2355 MB, 2355978240 bytes\n16 heads, 63 sectors\/track, 4565 cylinders\nUnits = cylinders of 1008 * 512 = 516096 bytes\n\n   Device Boot      Start         End      Blocks   Id  System\n\/dev\/sda1   *           1        4565     2300696   83  Linux\n\nDisk \/dev\/sdb: 32.2 GB, 32212254720 bytes\n255 heads, 63 sectors\/track, 3916 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\n\n   Device Boot      Start         End      Blocks   Id  System\n\/dev\/sdb1               1        3917    31457279+  ee  EFI GPT<\/pre>\n<h2>TCP\/IP Configuration :<\/h2>\n<p>The procedure detailed below is based on the following configuration. Openfiler appliance assigned the hostname and TCP\/IP configuration details:<\/p>\n<p>HOSTNAME=storage01<br \/>\nIPADDR=192.168.1.56<br \/>\nNETMASK=255.255.255.0<br \/>\nGATEWAY=192.168.1.1<br \/>\nnameserver 202.188.0.133<br \/>\nnameserver 202.188.1.5<\/p>\n<h2>Steps and Procedure on How to Setup and Configure Openfiler iSCSI Storage :<\/h2>\n<p>1. Extract the contents of the downloaded Openfiler tar.gz file (one .vmx file and two .vmdk files) into a directory, the name of which reflects the hostname you wish to use for the Openfiler appliance (example: storage01).<\/p>\n<p>2. Login to ESXi\/ESX\/VMware Server\/Vmware Workstation console, add extracted Openfiler tar.gz file to inventory.<\/p>\n<p>3. Skipped this step on VMware Server 1.x, VMware Server 2.x and VMware Workstation. In ESXi\/ESX server edit the Openfiler appliance settings and add a second disk of the size determined.(example: 30GB).<\/p>\n<p>4. Modify the vCPU and Memory setting to meet your requirement.<\/p>\n<p>5. Power on the Openfiler appliance. By default, the Openfiler appliance will attempt to obtain an IP address via DHCP, but best practice is to assign a static Ip address and this such configuration is typically done via the Openfiler web interface. On the Screen capture, hostname and static ip address has been assigned as below :<\/p>\n<p>HOSTNAME=storage01<br \/>\nIPADDR=192.168.1.56<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler1\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/09\/11.png\" alt=\"openfiler1\" width=\"651\" height=\"361\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 651px; --smush-placeholder-aspect-ratio: 651\/361;\" \/><\/p>\n<p>6. Logon to the console as root. By default, no root password is set so you will not be prompted. Set a root password by entering the command passwd, pressing Enter and following the prompts.<\/p>\n<p>Note: A password must be set in order to permit a remote root login from a SSH client.<\/p>\n<pre>[root@dhcp01 ~]# passwd\nChanging password for user root.\nNew UNIX password:<\/pre>\n<p>7. Browse to https:\/DHCP_IP_Address:446, or to the IP address if not using DNS, and ignore the certificate warning. Logon to the Openfiler web interface with the default administrator. Username <strong>openfiler<\/strong> and default Password <strong>password<\/strong>.<\/p>\n<p>Note: The default administrative port number is 446.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler2\" data-src=\"http:\/\/1.bp.blogspot.com\/-w-jxp0HmJwU\/UFs-RIHn6mI\/AAAAAAAAEEg\/-IIpMAgwan8\/s1600\/2.png\" alt=\"openfiler2\" width=\"446\" height=\"248\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 446px; --smush-placeholder-aspect-ratio: 446\/248;\" \/><\/p>\n<p>8. To Change to static IP, Select the <strong>System<\/strong> tab then scroll down to the &#8220;<strong>Network Interface Configuration<\/strong>&#8221; click &#8220;<strong>Configure<\/strong>&#8220;. On the Network Interface Configuration&#8221;, change default Boot Protocol, DHCP to Static for eth0. Then Enter the <strong>IP Address, Netmask<\/strong> and leave default for <strong>MTU<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler3\" data-src=\"http:\/\/3.bp.blogspot.com\/-jV01AQJugXU\/UFs-R5v2MII\/AAAAAAAAEEo\/plEadSRZsdc\/s1600\/3.png\" alt=\"openfiler3\" width=\"308\" height=\"252\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 308px; --smush-placeholder-aspect-ratio: 308\/252;\" \/><\/p>\n<p>9. To configure network range allowed, select the <strong>System <\/strong>tab and scroll down to the &#8220;<strong>Network Access Configuration<\/strong>&#8221; section. Define the allowed networks that accept connections from Openfiler appliance. You also can specify individual host IP addresses and ranges. Click Update after entering each set of details.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler4\" data-src=\"http:\/\/4.bp.blogspot.com\/-TFR5bRFnl_Y\/UFvh3XTxs6I\/AAAAAAAAEF8\/kDzz8PMp_0g\/s1600\/6.png\" alt=\"openfiler4\" width=\"638\" height=\"358\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 638px; --smush-placeholder-aspect-ratio: 638\/358;\" \/><\/p>\n<p>10. To add the the new logical disk select the <strong>Volumes<\/strong> tab and click the <strong>Block Devices<\/strong> link. Confirm the presence of disk <strong>\/dev\/sdb<\/strong>.<\/p>\n<p>Please note that the isk <strong>\/dev\/sda<\/strong> is the disk that Openfiler is running on; <strong>\/dev\/sdb<\/strong> is the second disk that was added and that will be provisioned as iSCSI storage.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler7\" data-src=\"http:\/\/3.bp.blogspot.com\/-le7q76eK-24\/UFvh3282W_I\/AAAAAAAAEGI\/SosqdwpBPyg\/s1600\/7.png\" alt=\"openfiler7\" width=\"669\" height=\"234\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 669px; --smush-placeholder-aspect-ratio: 669\/234;\" \/><\/p>\n<p>Click the \/dev\/sdb link and scroll down to the Create a partition in \/dev\/sdb section. By default, a partition will be created that fills the entire disk. Accept the defaults and click Create.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"Openfiler8\" data-src=\"http:\/\/4.bp.blogspot.com\/-hembVl9KO9A\/UFvh4V9hBoI\/AAAAAAAAEGU\/dTKEooA8q4s\/s1600\/8.png\" alt=\"Openfiler8\" width=\"609\" height=\"499\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 609px; --smush-placeholder-aspect-ratio: 609\/499;\" \/><\/p>\n<p>11. To add volume Group,select the <strong>Volumes<\/strong> tab. Click the Volume Groups link and enter a Volume Group name &#8220;<strong>datagroup<\/strong>&#8221; (the name is not critical), select \/dev\/sdb1 (30GB) and click <strong>Add volume group<\/strong>.<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler9\" data-src=\"http:\/\/4.bp.blogspot.com\/-WyxWceN38eo\/UFvh4gJMCHI\/AAAAAAAAEGg\/mVfAVyC7Sdw\/s1600\/9.png\" alt=\"openfiler9\" width=\"613\" height=\"277\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 613px; --smush-placeholder-aspect-ratio: 613\/277;\" \/><\/p>\n<p>12. To Create a volume in &#8220;<strong>datagroup<\/strong>&#8220;, select the <strong>Volumes<\/strong> tab. Click the <strong>Add Volume<\/strong> link. The only existing volume group of volumegroup (datagroup) will be selected by default. Scroll down to the Create a volume in \u201cvolumegroup\u201d section. Enter a Volume Name of volume (the name is not critical), a Volume Description of vmware (the description is not critical), adjust the required Space slider up to the maximum, select a Filesystem\/Volume type of iSCSI and click <strong>Create<\/strong>.<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler10\" data-src=\"http:\/\/1.bp.blogspot.com\/-x-sA3Juv27U\/UFvh4xL4DRI\/AAAAAAAAEGs\/4yDNvRoVb_c\/s1600\/10.png\" alt=\"openfiler10\" width=\"615\" height=\"596\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 615px; --smush-placeholder-aspect-ratio: 615\/596;\" \/><\/p>\n<p>13. This steps is to enable iSCSI target and disable iSCSI initiator. Select the <strong>Services<\/strong> tab. Click the Enable link adjacent to <strong>iSCSI target<\/strong> server. Click the Disable link adjacent to <strong>iSCSI initiator<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler11\" data-src=\"http:\/\/1.bp.blogspot.com\/-L9LqKCEoDio\/UFviXs39H4I\/AAAAAAAAEG4\/DXzHk_tR5Vg\/s1600\/11.png\" alt=\"openfiler11\" width=\"632\" height=\"490\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 632px; --smush-placeholder-aspect-ratio: 632\/490;\" \/><\/p>\n<p>14. To Add new iSCSI target, select the <strong>Volumes<\/strong> tab and click the <strong>iSCSI Targets<\/strong> link from the <strong>Volumes Section<\/strong> menu. Modify the auto-generated Target IQN to include the Openfiler name (iqn.2012.openfilerlab1.local in this example) and click Add.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfile12\" data-src=\"http:\/\/4.bp.blogspot.com\/-6Yv3nOCIWy0\/UFviYX0xrkI\/AAAAAAAAEHE\/1bTWkbok0XU\/s1600\/12.png\" alt=\"openfile12\" width=\"593\" height=\"198\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 593px; --smush-placeholder-aspect-ratio: 593\/198;\" \/><\/p>\n<p>Then select the <strong>LUN Mapping<\/strong> sub-tab and click <strong>Map<\/strong> to map the previous defined volume as a LUN to the newly created iSCSI target (accepting all the defaults).<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler13\" data-src=\"http:\/\/1.bp.blogspot.com\/-9-5ZDT_cKOA\/UFviYq_9cPI\/AAAAAAAAEHQ\/kFy8M1c9c9U\/s1600\/13.png\" alt=\"openfiler13\" width=\"545\" height=\"216\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 545px; --smush-placeholder-aspect-ratio: 545\/216;\" \/><\/p>\n<p>Finally, select the <strong>Network ACL<\/strong> sub-tab and change the Access from Deny to <strong>Allow<\/strong>. Click <strong>Update<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"openfiler14\" data-src=\"http:\/\/1.bp.blogspot.com\/-zJJUb5pY460\/UFviZC7LRcI\/AAAAAAAAEHc\/LRxclemUjhQ\/s1600\/14.png\" alt=\"openfiler14\" width=\"554\" height=\"148\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 554px; --smush-placeholder-aspect-ratio: 554\/148;\" \/><\/p>\n<p>15. Congratulation!! Now the iSCSI target is accessible to any iSCSI requester on the permitted network\/s or IP addresses.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post describes on how to setup and configure hosted Openfiler iSCSI storage target on a VMware ESX\/ESXi or VMware server 1.x or 2.x host using the freely available Openfiler&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1083,1094],"tags":[1536,1593,1734,1807,1895,1929],"class_list":["post-3890","post","type-post","status-publish","format-standard","hentry","category-vmware","category-windows","tag-linux","tag-nas","tag-san","tag-storage","tag-vmware","tag-windows"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3890"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3890\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}