0% found this document useful (0 votes)
386 views12 pages

Installation and Configuration of Openfiler On Centos 6.5

This document provides step-by-step instructions for installing Openfiler on CentOS 6.5 to set up networked storage. It describes downloading the Openfiler ISO, installing it, configuring networking and storage, creating iSCSI volumes, allowing network access, discovering targets from client nodes, and multipathing for high availability access to the storage over multiple network paths.

Uploaded by

Nitin Vashisth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
386 views12 pages

Installation and Configuration of Openfiler On Centos 6.5

This document provides step-by-step instructions for installing Openfiler on CentOS 6.5 to set up networked storage. It describes downloading the Openfiler ISO, installing it, configuring networking and storage, creating iSCSI volumes, allowing network access, discovering targets from client nodes, and multipathing for high availability access to the storage over multiple network paths.

Uploaded by

Nitin Vashisth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

How to install openfiler on centos 6.

5:
Openfiler is a operating system that provides file-based network-attached storage and block-
based storage area network. Openfiler provides a simple way to deploy and manage networked
storage.

With the features built into Openfiler, you can take advantage of file-based Network Attached Storage
(NAS) and block-based Storage Area Networking (SAN) functionality in a single cohesive framework.

I am going to show you step by step instructions to set up a new machine with openfiler. Machine can
be a physical machine or a virtual machine.

You can download the iso file for openfiler from openfiler official website:
https://www.openfiler.com/community/download

Insert an iso DVD and boot your machine and follow the instructions:
Click Next to start the installation

Select your preferred Language which for me is US English


Then Select Yes to format the selected Hard Disk

Select "Create default layout" from the drop down menu as shown below and click on Next

Configure your network and provide a proper hostname.

Select your continent and region for the date and time settings as I selected as Asia/Kolkata

Provide a root password for your machine


Click on Next to start the installation process

Once the installation is completed click on Reboot

Go to the browser and type your machine ip address or hostname


https://<hostname>:446
Or https://192.168.0.120:446

Now since you are trying to access a https page, you will be prompted for security certificate
authentication by the browser as shown below
Click on Proceed anyway

After that you will get the logon page for openfiler

Your default login credentials will be


Username : openfiler
password : password
Now, Attach two new HDD to the openfiler system, in our case its /dev/sdb and /dev/sdc.

Now first we need to Enable NTP on openfiler so that time and date should be correct, for this go to:

System >> clocksetup >> Enter name of ntp server as "0.pool.ntp.org" >> click setup synchronization

Next, we need to create physical volume for this follow steps:

Click on volume button

Then click create new physical volume

Once you clicked on it, it will show you the available free HDD attached to openfiler.

As we can see above two hdd /dev/sdb and /dev/sdc showing no partitions

Click one by one of all free HDD and Create Physical volume on each disk with full space.
Click on create button.

Same to be done for /dev/sdc hdd

As we can see we create 1 partition each on both free disks

Next thing we need to do is to create a volume group, for this click on Volume Groups tab

Enter the name of the volume group and select disk which you want to add to VG SAN1 and then click
Add volume group

Check the create VG by clicking on volume groups icon on left side and you will notice SAN1 with 1PV
added to it of size 10GB.
Next is to create filesystem volume on this volume group or we can say create a logical volume on vg.

For this go to shares tab

Then select create a new filesystem volume

Give name of volume: SAN-1

Volume Description: for testing iscsi

Required Space (MB):9760

Filesystem / Volume type: block (iscsi, FC, etc)

This will create iscsi block filesystem.

SAN-1 volume is created on VG SAN1.

Next step is to allow network access:

For this click on system >> under Network Access Configuration tab

Give name to network ex: iscsi


Then range of network ID you want to allow access to iscsi target and then click update. Type should be
share as you want to share the storage over this particular network.

As we are going to use multipathing on iscsi storage so we need to add first two extra NIC card to the
openfiler system and then configure it with 2 different network IPs.Should look like this

Now if you want to allow multiple networks to access iscsi target then allow all 3 different networks
under Network Access Configuration so that iscsi target can access from these network as well. Should
look like this:

Next step is to enable iscsi service, for this click on services tab enable iscsi target and then start
the iscsi service.
Now, click on volumes you will notice volume san-1 is showing which is having filesystem type iscsi. We
need to share this volume using iscsi target, for this

Click on iscsi target

You will find iscsi qualified name or IQN, you can think as a dns host name and it should be unique.

Provide name to the target IQN and the click on add button. This will set iscsi target as:

iqn.2015-07.openfiler.local:disk1

Next click on LUN Mapping and map new LUN to target, for this click on map on the volume which we
created.
Now click on Network ACL and select allow for all 3 different network and click on update. Now we are
allowing iscsi initiator to connect to iscsi target on these network.

There is one more option CHAP Authentication in which we can create username and password to
connect to iscsi target on openfiler through remote pc's.we recommend to do this but before we need
to check whether we are able to connect to iscsi target without this security.

To configure CHAP discovery, go to services and then select iscsi target setup

This is where you configure CHAP discovery, so iscsi chap discovery allows you to discover the SAN and
then you can put CHAP on individual LUN to access the LUN

On node1.local and node2.local configure 2 more ips, so we have total 3 different


network ips on both nodes:
192.168.1.111 (node1)
192.168.2.111 (node1)
192.168.1.112 (node2)
192.168.2.112 (node2)

On node1.local and node2.local (client) install iscsi initiator package:


[root@node1 ~]# yum install iscsi-initiator-utils -y
[root@node1 ~]# service NetworkManager stop
[root@node1 ~]# chkconfig NetworkManager off

Install or update the required packages on client i.e. node1and node2 for
configuring multipath:
Install updated packages:
#yum update device-mapper
#yum install device-mapper-multipath

Now on node1 and node2 configure initiator name:

Now, we scan and discover iscsi targets on node1 and node2 for all 3 different
networks:

[root@node1 ~]# iscsiadm -m discoverydb -t st --portal 192.168.0.120:3260 --discover

192.168.0.120:3260,1 iqn.2015-07.openfiler.local:disk2
192.168.2.120:3260,1 iqn.2015-07.openfiler.local:disk2
192.168.1.120:3260,1 iqn.2015-07.openfiler.local:disk2
192.168.0.120:3260,1 iqn.2015-07.openfiler.local:disk1
192.168.2.120:3260,1 iqn.2015-07.openfiler.local:disk1
192.168.1.120:3260,1 iqn.2015-07.openfiler.local:disk1

As we have discovered the disk1 and disk2 on both nodes by using 3 different
networks, now we login from different networks to disk1 and disk2 which is on
openfiler.local:
[root@node1 ~]# iscsiadm -m node --portal 192.168.0.120:3260 -T iqn.2015-
07.openfiler.local:disk1 l
[root@node1 ~]# iscsiadm -m node --portal 192.168.1.120:3260 -T iqn.2015-
07.openfiler.local:disk1 l
[root@node1 ~]# iscsiadm -m node --portal 192.168.2.120:3260 -T iqn.2015-
07.openfiler.local:disk1 l
[root@node1 ~]# iscsiadm -m node --portal 192.168.0.120:3260 -T iqn.2015-
07.openfiler.local:disk2 l
[root@node1 ~]# iscsiadm -m node --portal 192.168.1.120:3260 -T iqn.2015-
07.openfiler.local:disk2 l
[root@node1 ~]# iscsiadm -m node --portal 192.168.2.120:3260 -T iqn.2015-
07.openfiler.local:disk2 l

[root@node3 ~]# service iscsi stop


Stopping iscsi: [ OK ]
[root@node3 ~]# service iscsi start
Starting iscsi: [ OK ]

[root@node1 ~]# fdisk -l | grep Disk


Disk /dev/vda: 8589 MB, 8589934592 bytes
Disk identifier: 0x0000e782
Disk /dev/mapper/vg_node1-lv_root: 7205 MB, 7205814272 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_node1-lv_swap: 855 MB, 855638016 bytes
Disk identifier: 0x00000000
Disk /dev/sda: 10.2 GB, 10234101760 bytes
Disk identifier: 0x00000000
Disk /dev/sdb: 10.2 GB, 10234101760 bytes
Disk identifier: 0x00000000
Disk /dev/sdd: 10.2 GB, 10234101760 bytes
Disk identifier: 0x00000000
Disk /dev/sde: 10.2 GB, 10234101760 bytes
Disk identifier: 0x00000000
Disk /dev/sdg: 10.2 GB, 10234101760 bytes
Disk identifier: 0x00000000
Disk /dev/sdi: 10.2 GB, 10234101760 bytes
Disk identifier: 0x00000000

Now lets configuring multipath:


Install the required packages on client i.e. node1and node2:
[root@node1 ~]# yum install device-mapper-multipath

Now we have to load DM multipath which is a module:

[root@node1 ~]# modprobe dm-multipath


[root@node1 ~]# lsmod | grep multipath
dm_multipath 17724 0
dm_mod 84209 9 dm_multipath,dm_mirror,dm_log

As we have loaded distributed mapping multipath module. Now we can able to


interact with multipath devices.
we need to create a configuration file multipath.conf which is not created yet.so, we
use command mpathconf.

[root@node1 ~]# mpathconf --user_friendly_names y


This will create multipath.conf file under /etc.

[root@node1 ~]# /etc/init.d/multipathd start


Starting multipathd daemon: [ OK ]
[root@node1 ~]# chkconfig multipathd on

If you set user_friendly_names to yes you will see maptha and mpathb:
[root@node1 ~]# multipath -ll

You might also like