Openfiler Configuration - Explained

Considering that the open filer is already installed and assigned enough storage.
If not please refer Openfiler installation from the masters...
And add an additional storage100 GB to the openfiler server to create the first Lun to submit to the Exadata server.
Here i have mentioned the details as it will be easy to configure the storage lun and share it across the server/servers. Access the openfiler url and enter the credential.


By default, the URL and the credentials would be as below.



Management Interface: https://<ip of openfiler host>:446

Administrator Username: openfiler

Administrator Password: password



Once you open the webpage , the management interface , then...


Then in the openfiler webpage and follow the steps in the mentioned order

Go to Services tab and Enable iscsi services





Go to System Tab and add server details under the Network Interface Configuration




Go to Volume tab and Create Volume Group with desired name. 




But, To create a New volume group we need physical volume.
To create Physical volume, click the "Create new physical volume" option ,



which will redirect you to the Block device management page.From the listed block devices , select the desired one to create volume and share it to the other target servers.Here in this case it is /dev/sdb.
NB :  If you don't have a disk, please add a new one



 Then , choose the numbers to create the partition, which will be your physical volume




Once the partition created,go to Volume group tab and create volume/add volume

Give desired volume group name and choose the physical volume
Here in this case it would be StoreVg1



Once VG created , it will be displayed in the top.


Then, go ahead with "View member PVs" option to view or create the PV


Here you will create the Logical Volume [LV], for which enter the details under the create volume tab. Consider the filesystem type as xfs.

In this case it is as,

 Once you crate the LV,




iscsi targets
create new iqn. for crated volume
Give permission in network ACL

Use lun mapping

Map IQN to Lun

In server
=======================================================
rpm -qa|grep -i iscsi -> check iscsi rpm availability
service iscsi status -> check iscsi service status
cd /etc/iscsi/ -> Location where system iqn should be specified
cat initiatorname.iscsi -> File where system iqn should be specified
InitiatorName=iqn.rac2:oracle -> Entry
chkconfig iscsi on
chkconfig iscsid on
lsscsi
iscsiadm -m discovery -t sendtargets -p 192.168.10.100 -> Available iscsi devices
ls /var/lib/iscsi/send_targets/
service iscsi restart
iscsiadm -m node -T iqn.openfiler:lun1 -p 192.168.30.150 update -n node.startup -v automatic -> scan iscsi as lun
ls /dev/sd* -> check


Attach iscsi drives to host and reattach automatically on reboot
iscsiadm -m node -T iqn.openfiler:lun1 -p 192.168.10.100 update -n node.startup -v automatic

iscsi driver informations in detail
iscsiadm -m session -P 3