woensdag 24 november 2010

OpenFiler iSCSI target

OpenFiler
 (downloaded Virtual Appliance from openfiler.com)

Configure your virtual machine with storage to be used
for clients that will be provided with storage.
I find it usefull not to make the storage on the root
disk of the Virtual Machine but to add a different disk
to the VM where we put the storage on.

Edit Settings
  Add ..
   HardDisk
Create new Virtual Disk

Start Virtual Machine

If the Virtual Machine has started it will have port 446 available
for you to connect to :

http://192.168.2.9:446

Login: openfiler
Password: password

Goto TAB : Volumes

On the right hand side you will find menu option: Block Device

Check to find if the added disk is present (propably /dev/sdb)

Under Edit Disk there are links to the disks. Click on /dev/sdb
to create a partition.

Next click on menu (right hand side) Volume Group

Create a Volume Name on the Volume Group: volumegroupy
Add Volume menu action
Create a volume in ‘volumegroupy
  Volume Name:      volumenamy
  Space:                 16384
  FileSystem:           iSCSI

We now have a volume to be used with iSCSI:



Enable iSCSI from the SERVICES tab

Next make sure we listen to a network:

System Tab
Network Access Configuration
'completenetwork' 192.168.2.0/255.255.255.0 share

Now we can create a volume for the iscsi target to use
iSCSI Targets menu
Now MAP the volume name you created to the iSCSI target in the LUN Mapping TAB.


Make sure the network is configured

iSCSI Targets
Network ACL TAB
Allow Access
update




RAID 5 array

For a RAID 5 containing multiple RAW Devices use these
steps:

Volumes
 Block Devices
  *Edit Disk*
   Mode: Primary
   Type: Raid Array Member
   [create]
Repeat for all disks
These Raid Member disks should be combined into a RAID 5 array
Software RAID
  Create Array whith at least 3 raid-members checked to creat a RAID5 array
  Select RAID array type: RAID 5 (parity)
  [Add Array]
Now make a Volume Group on this array.
Volume group name: volumegroupy
Selct /dev/md0 (raid5) [add volume group]


dinsdag 23 november 2010

Storage Foundation Installation

Download the free basic version from symantec.com :
search :
download storage foundation basic
which gives you the freeware version of the storage solution.

Version: 4.1.02.0
This version works with CentOS 4.8 (5.4 is too new !)
(Download from centos.org)

I used vmware player 3.0 to make a virtual machine with centos 4.8

Copy the tar.gz with storage foundation and unpack using
gzip -d sf*basic*
tar xvf sf*basic*

cd rhel*
cd sf*basic*
cd storage*


installsf
Answer the questions
Host : 127.0.0.1
or give the name of the system.

You can ignore the SSH connection when installing to the
same host.

Once installed you propably want to have some shared storage
available to the system.

For this I use OpenFiler virtual machine that has iSCSI target
in it. [See : OpenFiler iSCSI Target]

To access the iSCSI target using an iscsi initiator we download the utils:

yum install iscsi-initator-utils

vi /etc/initiatorname.iscsi
InitiatorName=iqn.myLinuxInitiator.here
# or change to your own prefered name
vi /etc/iscsi.conf
DiscoveryAddress=192.168.2.9
# 192.168.2.9 is my OpenFiler environment

/etc/init.d/iscsi restart



You now can use storage foundation commands.
If you want to use Veritas Enterprise Administrator you
should either have a X-Windows environment in the Virtual
Machine or you can use another computer to display the
gui.


Suppose your system 192.168.2.1 has X-Windows (mine has X-cygwin)
Login as root to 192.168.2.1 and use:
xhost +
(This allows use of the X-Windows environment to your vm)


On the centos machine use:


export DISPLAY=192.168.2.1:0
cd /opt/VRTS/bin
./vea


To restart VEA services on machine:
/opt/VRTS/bin/vxsvcctrl restart