viernes, 28 de junio de 2013

UPDATED: How to create an NFS Storage in Citrix XenServer (and iSCSI as well)

Hi,
Today I will show how to create a NFS Storage in XenServer 6.1

Requeriments:

- One or more installed XenServers
- A Resource Pool configured 
- An NFS server. For this demo I am using FreeNAS but you guys can use any other.
- The NFS Server must have static IP or be DNS addressable.
- The NFS should be configured to be accessed by one or more targets.

There are two ways to do this:

1) Creating an NFS SR using XenCenter

- At the Pool level,
- In the toolbar select New Storage. A wizard should open:

a) Type: Virtual Disk Storage / NFS VHD
b) Name: Name for the storage
c) Location: Enter the path of NFS shared
- Click SCAN and must show the UUID in the bottom.
- Select "Create New SR"
d) Finish

2) Creating an NFS SR using xe CLI

- Open the console one any XenServer in the pool.
- Create the SR by entering the following:

xe sr-create content-type=user type=nfs name-label= \
shared=true device-config:server= \
device-config:serverpath=

* Always make sure to have set the permission on the NFS Server.

* If you need help to setup up the FreeNAS, let me know.



To create an SR on the iSCSI share at the pool level using XenCenter

- At the Pool level,
- In the toolbar select New Storage. A wizard should open:

a) Type: Software iSCSI
b) Name: Name for the iSCSI storage
c) Target Host: Enter the iSCSI IP/Hostname
d) If you are using CHAP authentication introduce user and password
d) Click on "Discover IQNs" and must show the Target IQN.
e) Click on "Discover LUNs" and Target LUN should be appears.
f) Finish

-------

Tips: Be careful when setup the iSCSI with authentication. Remember introduce the credencials in XenCenter.

If you need help to setup a iSCSI in FreeNAS let me know.

Hope you find this useful.

Until next time. Enjoy!

UPDATE 2: Setup a NSF in FreeNAS