When evaluating VMWare ESX or Microsoft Cluster Solutions the first question that arises is how do I get some shared storage very cheap (i.e nothing!). Well firstly you need to be looking for iSCSI. If you’re familiar with TCP/IP then iSCSI won’t be a big jump. It just takes the SCSI data and sticks it on a standard TCP/IP network.
There are some fantastic open source offerings out there such as Openfiler. Openfiler does iSCSI SANs but is in my opinion very complex to setup even for someone with alot of Linux experience, and as for making it redundant well good luck if you work it out let me know.
A commerical product that is in a different league to Openfiler is the HP/LeftHand SAN. Based on propriety HP Hardware they also do a Virtualised SAN for use with VMWare ESX and as a “laptop” demo. For the purposes of this article I’m going to use the VSA for laptop demo. It works for 30 days which should be long enough to evaluate the technology and see if its the right product for you.
What you will end up with : A simulated 3 node redundant iSCSI SAN running on one PC suitable for evaluation of VMWare ESX/Microsoft Cluster Services. Also a great demonstration of what the HP/Lefthand product can do.
1/ VMWare Player. For this demo I’m using VMWare Player running on Windows Vista x64. Install it.
2/ Go here : https://h20392.www2.hp.com/portal/swdepot/searchProducts.do
Search for : HP LeftHand P4000 Virtual SAN Appliance Software
Click Recieve for trial
Download the AT004-10004.exe CMC and theVSA_SAN_iQ_8.1_Laptop_Demo_Tool_for_Vmware_AT004_10006.zip
3/ If you’re not running Vista go get the Microsoft iSCSI Initiator.
Setting Up The VSA’s Within VMPlayer
1/ Where ever you store your Virtual Machines create 3 directories called VSA1, VSA2 and VSA3.
2/ Extract the vsa_demo.zip to your recently created VSA1, then to VSA2 and to VSA3 directory.
3/ Open VMWare Player.
4/ Open -> Navigate to VSA1 directory -> Select VSA.vmx
5/ Once it’s booted up from VMWare Player Select Devices -> Network Adaptor -> Bridged.
6/ Type Start at the login -> Press Enter Twice -> Use the Arrow Keys to select Network TCP/IP Settings -> Select eth0
7/ Set hostname to VSA1. I recommend you fix the IP Address to something that works on your LAN. My LAN is 172.16.1.0/24 so I picked 172.16.1.31. Click Ok a few times. Then go back to the login. You can now minimise this you won’t be needing it again.
8/ Open another instance of VMWare player and open the VSA.vmx from the VSA2 directory. Repeat setting the hostname/IP as above to VSA2/172.16.1.32 (or whatever you choose).
9/ Open another instance of VMWare player and open the VSA.vmx from the VSA3 directory. Repeat setting the hostname/IP as above to VSA3/172.16.1.33 (or whatever you choose).
10/ It’s worth checking connectivity to all the machines at this point,check your host machine can ping the 3 VSA’s.
1/ On your client machine install the CMC as downloaded in step 2.It’s a Next next next installer.
2/ Ok lets make a SAN. The CMC should start into the Find Nodes Wizard, click Next, select By Subnet and Mask and hit next. Click Add, put your subnet in and press Finish. If you got it right you should see your 3 VSA’s as newly found. Press Close. If you can’t see the nodes check you set the VMPlayer network to Bridged and you can ping the nodes.
3/ From the Getting Started Launch Pad Select Management Groups, Clusters and Volume Wizards.
Click Next.
Select New Management Group then Next.
Give your management group a name, e.g EVALCOMPANYSAN. All the nodes should be high lighed below. Press Next.
Fill in some login details, for test purposes use admin/password. Click next.
On the time server page Add pool.ntp.org. Next
On the Create Cluster Page select Standard Cluster. Next
Give your Cluster a name e.g. DEMOCLUSTER. Next
On the next page you need to give the cluster a Virtual IP. I would recommend one up from the last cluster, in my demo 172.16.1.34.This is the IP the iSCSI Initiators will connect too
On the create Volume page select Skip Volume Creation and press Next. Click Finish. Go make a coffee whilst it does the magic.
1/ Expand DEMOCLUSTER then Select Volumes(0) and Snapshots. Under Tasks select New Volume.
2/ Give it a name and select a size (Suggest 1Gb). Select the Advanced Tab. Here you can select the Replication level, I suggest 2-way for this demo. The VSA’s ship with 5Gb per node of space.
Note : Thin Provisioning is interesting. If you set the node size to 2Tb and select Thin provisioning it will present a 2Tb volume. You won’t be able to use 2Tb but it means less time consuming O/S reconfiguration later you can just add additional nodes to make up the space at a later date. For this example select Full Provisioning. Click Ok.
1/ On your host machine open up the iSCSI Initiator in the control panel. On the General Tab you will see the initiator name e.g iqn.1991-05.com.microsoft:pc.mylan.local. Copy this to the clip board and go back to the CMC.
2/ Under EVALCOMPANYSAN click Servers(0). Under Server Tasks click New Server. Give it a name and a description. Paste your initiate node name in and select CHAP Not required. Deselect load balancing. Click Ok.
3/ It should Switch to the Volumes and Snapshots Tab under your new server. Click Tasks -> Assign and Unassign Volumes and Snapshots. You should now see the Volume you created earlier. Check the Assigned box.
4/ Switch back to your host PC iSCSI Initiator Properties. Select the discovery tab and Add Portal. Type in the cluster IP address you selected when setting up the cluster. I chose 172.16.1.34.Click Ok. Select the target tab you should see your volume listed as inactive. Press Log on. Click Ok.
1/ Right click My Computer -> Manage -> Disk Management.
2/ You should see a new disk. Initialise it and make a new simple volume. Perform a quick format, don’t do a full format – ever! If you full format with thin provisioning you’re in trouble
There you go a full enterprise iSCSI SAN for free in about 45 mins. In my next article I’ll demonstrate the redundancy and fail over. If you decide you like the Lefthand SAN my company are an authorised UK Reseller for the Lefthand equipment please don’t hesitate to give us a call.