-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Both InnoDB and PostgreSQL - as well as many other databases - use a technique called multi-version concurrency control (MVCC) to provide transaction isolation: transactions should not see the work of other, uncommitted transactions. MVCC means that, when a row is updated, the database stores both the old and new versions of the row.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thursday, February 14, 2013

Citrix XenServer – iSCSI LUN

Hi all, here is my new Mini-Howto for Citrix XenServer – Storage Repository Over Software iSCSI LUN
Topic contains how to and about iSCSI, NFS, on Linux.  How to mount them on Citrix Xen Server using Command line and GUI (that includes Screen Shots)

Let’s starts with iSCSI creation on linux box, I will use CentOS 6 for this.


Packages Required:  scsi-target-utils

Service Name: tgtd

Configuration File: /etc/tgt/targets.conf

I will Use LVM, as i am using  a large partition on this box. So proceeding with it:


# fdisk /dev/sda

Press ‘n’ for new partition

Press ‘L’ for logical partition

First Cylinder size: press enter

Type ‘w’  for save and quit


# init 6  (Restart the System)

Note: do not format partition:

LVM Setup on newly created partition:

Now create Physical Volumes (PV) on newly created partition.

# pvcreate /dev/sda5

# pvscan

# pvdisplay

Now create Volume Group (VG) : on created PV

# vgcreate  sr0_vg1 /dev/sda5

# vgscan

# vgdisplay


Now we can create one or more Logical Volumes (LV’s) on VG

# lvcreate  --size  +30G --name sr0_vg1_lv100 sr0_vg1

# lvscan

# lvdisplay

This part is done: Now to LUN creation

For this we have to ensure we have required package:

# rpm -qa | grep -i scsi

iscsi-initiator-utils-6.2.0.872-34.el6.x86_64

scsi-target-utils-1.0.14-4.el6.x86_64  (this is main package required for iSCSI server)


If do not have, the install it either using directly from RPM if you have, or YUM

# yum install -y scsi-target-utils

After the successful installation, we have to edit the config for SAN:

#  vi /etc/tgt/targets.conf

<target iqn.2012-08.web18:vmsan>

#       Example: the next line would override default driver type.

#       driver iser

backing-store /dev/ sr0_vg1/ name sr0_vg1_lv100

backing-store /dev/ sr0_vg1/ name sr0_vg1_lv101

backing-store /dev/ sr0_vg1/ name sr0_vg1_lv102

#initiator-address 192.168.23.113 (by proving IP, we can restrict the storage to specific IPs only)

#initiator-address 192.168.23.83

</target>


Save and Quit


Now start the service of iSCSI target:

# service tgtd start

#chkconfig tgtd on

# tgt-admin -s     (this will display information about iscsi target device)

I have disabled IPTABLES on target server, in my case.

This done now i will show you how to mount the available LUN on Citrix Xen Server using GUI.


Later I will add command prompt, currently I am facing some issue, suggest me if you have steps


Open XenCenter à Right Click on any XenServer a Choose  New SR....



citrix1

In Next window, choose Software iSCSI and click Next
citrix2
Name the New SR and click Next
citrix3
Provide IP of Target server (iSCSI server) and click on Discover IQNs, choose your IQN and then click on  Discover LUNs and choose your LUN that you had created during LVM create.
citrix4
Click on Finish and the XenCenter automatically mounts it on Server
citrix5
And finally here is output/details of mounted SR.
citrix6
Now LUN is ready and mounted on XenServer, start using as your need.


Please let me know for suggestions/corrections.

2 comments:

  1. Want to improve your google rank? http://goo.gl/YzNKa

    ReplyDelete
  2. Ever heard of blackhat seo? http://tiny.cc/iioeuw

    ReplyDelete