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.


Saturday, August 18, 2012

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 Create NFS and iSCSI LUN on Linux (I will CentOS)
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


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


# 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 (by proving IP, we can restrict the storage to specific IPs only)


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 aChoose New SR....


In Next window, choose Software iSCSI and click Next

Name the New SR and click Next

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.

Click on Finish and the XenCenter automatically mounts it on Server

And finally here is output/details of mounted SR.

Now LUN is ready and mounted on XenServer, start using as your need.

Please let me know for suggestions/corrections.


No comments:

Post a Comment