You are on page 1of 26

How to install openfiler on vmware for shared

storage
August 1, 2012 OPENFILER 1,889 Views

Openfiler is an operating system that provides block based storage area network and file
based NAS using ISCSI protocol. Using this software ,we can setup shared storage for our
cluster testing setup.I have installed the openfiler on vmware workstation and here is the
step by step screenshot of installation

You can download latest openfiler from the below link.


http://www.openfiler.com/community/download/

Create new virtual machine like the one we have in the below snap.
Virtual system configuration:
1.Virtual CPU=1
2.Physical memory=400MB~
3.Harddisk=4GB
4.Network Adapter=1
5.CD/DVD Drive=1
No need to have sound card and floppy drive here.Just edit the virtual machine settings
and remove it.

Power on the machine to begin the installation.In the first screen,you will get many
options for OS recovery and upgrade.Since we are doing fresh installation,You just press
enter to
continue.
Select Next to continue
Set the static IP address and Host name and this is the address which are going to use for
openfiler-web based administration.Please make sure you providing the IP in same sub-
net
Enter the hostname
Select the timezone
Openfiler installation finished
Booting the Openfiler
Now you can login as root and reset password for openfiler account to access web portal

From web browser you can access web-based administration console.


Once the installation is done,then your next step will be provisioning volumes to iscsi
targets.

How to provision new LUN in openfiler


August 1, 2012 OPENFILER 1,773 Views

In this article we are going to see how to provision new LUNS to specific target
in openfiler.Since openfiler is based on Linux kernel, provisioning LUN is very easy if you
know LVM(Logical volume manager).openfiler provides the web-based administration and
its so easy for everyone.Just go through step by step guide to provision new LUNS to
specific target.By assigning luns to multiple targets will help to practice multi-
pathing software like vxdmp in Solaris.

After installation of openfiler, we have added couple of harddisks for creating new
LUNS.As per the below snap, i have added two 8GB harddisks.

Note:You can access the openfiler webpage using https://ipaddress:446/


If you don’t know the password ,login to openfiler console as root and reset it.
After logging to the openfiler,you will the below page.It will be the summary of the OS
and hardware
Click on the “volumes” tab

Click on the create new physical volumes link or Block devices from right side panel.
Click on the /dev/sdb link to create physical volume. (It’s like pvcreate in Linux)

Repeat the same for /dev/sdc. Don’t click on /dev/sda since its root disk for openfiler.
Click on the volume groups from the right side panel to create new VG

Give the volume group name and select the disks which you want to add it.
Now click on the Manage volumes and create new volume from sanvg
Here i have created the volumes with the size of 2g.
Click on the “services” tab to check the ISCSI services.

Click on the ISCSI targets from right side panel and select “add”
Click on the LUN mapping tab.
Click on the “map” to map the LUNS to target iqn.2006-01.openfiler:tsn.58533bc21b9e

This target can added to any operating system.I have added iscsi target
on Solaris operating system

How to add ISCSI targets in Solaris-shared storage


setup
August 1, 2012 OPENFILER, Solaris 10 903 Views

This article explains about adding the ISCSI target on Solaris node.Once you installed the
openfiler,you have toprovision LUN to specific target in order to access LUNS in operating
system.Once its done,then we just need to add those targets in OS to see those
disks.Here we will see, how to add the iscsi target in Solaris in details manner.

Assumption:Here i have already provision lun1 & lun2 to specific target iqn.2006-
01.com.openfiler:tsn.58533bc21b9e.
Login to Solaris host.
Enable the iscsi target service.
bash-3.00# svcadm enable iscsitgt
bash-3.00# svcs -a |grep iscsitgt
online 22:47:20 svc:/system/iscsitgt:default

Add the static target using the above mentioned target number.
# iscsiadm add static-config iqn.2006-01.com.openfiler:tsn.58533bc21b9e
,192.168.2.7:3260

Note:openfiler and Solaris host should be in same network in order to access the shared
storage.
Openfiler IP:192.168.2.7 Default port:3260
Target:iqn.2006-01.com.openfiler:tsn.58533bc21b9e

Verify the target number


># iscsiadm list static-config
Static Configuration Target: iqn.2006-01.com.openfiler:tsn.58533bc21b9e,192.168.2.7:3260

Enable the discovery:

# iscsiadm modify discovery -s enable

Scan the LUN in OS side.


# devfsadm -i iscsi -v

# echo |format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c2t2d0
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.58533bc21b9e0001,0
2. c2t3d0
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.58533bc21b9e0001,1
Specify disk (enter its number): Specify disk (enter its number):
# uname -a
SunOS node2 5.10 Generic_142910-17 i86pc i386 i86pc
#

Now your shared storage setup is ready.You can add multiple target for same LUNS and
that will act as alternative path for those LUNS.So that we can practice multi-pathing as
well.

You might also like