Thursday, December 12, 2013

Vsphere Storage Appliance vs VMware VSAN

The Vsphere Storage Appliance

Introduced in 5.0, the VSA allows you to create a small cluster (2 or 3 nodes) using local storage and turning that local storage into shared storage. The VSA is managed via the VSA Manager (in the Vsphere Client) and controlled by VSAs (1 x host). These VSAs are linux based appliance which are created automatically when the VSA cluster is created.


The above example shows a built 3 node cluster. Notice that this cluster has 3 datastores (2 if built with a two node cluster).

The VMWare VSAN

Introduced in 5.5u1, the VSAN needs a minimum of 3 esxi hosts and a maximum of 32. It has functionality built into the kernel. The VSAN uses local and SSD disks (for caching and intelligent data placement) and allows for further scalability.


The above image displays how to select devices to be used by the vsan. Each host needs to have at least one internal disk and one ssd disk.


vSAN Limitations:

Despite the fact that vSANs are compatible with HA, DRS, snapshots, SRM and VDP, currently vSANs are not compatible with Storage DRS, DPM, FTand Storage I/O Control.

Wednesday, December 4, 2013

How to Configure Flash Read Cache on one Host

What it is:

Flash Read Cache is a new feature found in 5.5 to centralize the management and configuration of flash based devices such as pci-e flash cards or SAS/Sata SSDs. These local devices can now be used to enhance the performance of esxi hosts by storing the host swap file and read caching for virtual machines i/o requests.

Steps:

1. Launch the web client and log in as the administrator. You can't use the Vsphere Client for this.

2. Select one of your esxi servers and go to the the Manage tab.

3. Select Settings and click on Cache Configuration


4. Click on Add Capacity and Select the SSD drive to use. Then click on Ok


5. Once selected, the system creates a VFFS file system.


6. To configure a virtual machine to use the Flash Read Cache, right click on a virtual machine and select Edit Settings. Select Hard Drive 1 and expand. Enable Flash Read Cache and specify the Cache Reservation and the Block Size.




Note:  The Web Client in 5.5 allows for vmotion of vms with flash read cache. As you vmotion a virtual machine, there are two new choices that allow you to select "Always Migrate the Cache Contents" and "Do Not Migrate the Cache Contents".

Flash Read Cache esxcli Commands:

esxcli storage vflash

. module get
. module list

. cache get
. cache list

. cache stats get
. cache stats reset

. device list

ex:  # esxcli storage vflash device list

Tuesday, November 26, 2013

New Features in Vsphere 5.5

Changes to the Esxi Server

1. Logical Cpus 320 vs 160
2. Numa Nodes  16 vs 8
3. Virtual Cpus 4096 vs 2048
4. Ram 4TB vs 2TB
5. 512 vms x host

Note: Minimum amount of RAM to install 4 gbs vs 2 gbs

Changes to Virtual Machines

1. Virtual Hardware 10 (9 in 5.1, 8 in 5.0). 64 vcpus and 1TB of ram still
2. 30 devices x controller (vs 15)
3. 4 Controllers x vm
4. 120 devices x vm
5. New Sata Controller (AHCI)
6. Enhanced vGPU (support for AMD, not just Nvidia)
7 Support for 3.2 Linux Kernel (vmware tools a must)

Note: Some of these features require the use of the web client





Changes to Vcenter

1. Improved SSO (version 2), simpler install, no more database
2. Faster Web Client, html 5 support (console works with macosx)
3. Better propagation for Active Directory (multiple forests)
4. Application HA, support for MSSQL 2008 R2, apache, tomcat
5. 62 tb vmdk in both vmfs and nfs
6. 62 tb virtual mode rdm
7. 64 tb physical mode rdm
8. 5 node MS cluster support (quorum disk now iscsi/fcoe and fiber0)
9. Can be installed in 2008 and 2012 (2003 no longer supported)
10. DB2 as a database no longer supported
11. 100 hosts and 3000 vms with embedded vpostgres database (appliance)
12. 1000 hosts and 10000 vms with oracle database (appliance)

Changes to Replication Appliance

The 5.5 replication appliance allows up to 24 historical snapshots. One can retain one replica per day for 24 days or 24 replicas (one per hor) for 24 hours. Recovery always draws the most recent copy but the snapshot manager allows you to revert to an older recovery point.

Changes to Web Client

The vSphere Web Client reflect customer feedbacks, such as the "10 most recent objects). Other
improvements include the new drag and drop support and the ability to filter search results for larger
installations.

Vsphere Flash Card Read

Used to speed up vms; vms page to flash cache (for ssds)



VSAN

Create virtual datastore across spinning disks and ssds
3 hosts minimum
i/o goes first to ssds, then moved to disks
automatic mode and manual mode (similar to drs)
Compatible with vdp, ha, drs, vmotion and vcops
New command: esxcli vsan

Examples:

esxcli vsan cluster get
esxcli vsan network list
excli vsan storage list


Monday, November 25, 2013

How to Manipulate ssh via the command line

Manipulating the SSH service via the c.l.i.

1. Verify that the firewall is enabled

# esxcli network firewall get

2. Verify if ssh is disabled (default) or enabled.

# esxcli network firewall ruleset list --ruleset-id sshServer

3. Enable ssh if needed

# esxcli network firewall ruleset set --ruleset-id sshServer --enabled true

4. Verify who can ssh into your esxi server

# esxcli network firewall ruleset allowedip list --ruleset-id sshServer

5. Change it so only one ip can be used.

# esxcli network firewall ruleset set --ruleset-id sshServer --allowed-all false
# esxcli network firewall ruleset alloweid add --ruleset-id sshServer --ip-address 10.1.1.1

6 Verify the changes

# esxcli network firewall ruleset allowedip list --ruleset-id sshServer

Tuesday, October 29, 2013

partedUtil and vmkfstools in 5.1

The following examples show how to use partedUtil and vmkfstools to perform vmfs related operations in 5x.  I started with two disks (each 8gbs) and followed the lab shown in the Install Configure Manage class that Vmware offers. The goal was never to use the vsphere client nor the web client.

Step 1: One disk did not have a file system, the other did. Hence, I needed to delete the partition in one of those drives to start from scratch.

cd /dev/disks ; ls
partedUtil delete ./naa.6000eb3a2b3b330e00000000000000cb 1

Step 2: To verify if a disk had a partition table or not, I used the following command.

# partedUtil getptbl naa.6000eb3a2b3b330e00000000000000cf
gpt
1044 255 63 16777216

Step 3: In that class, they take a 8 gb disk and they first create a 4gb partition. Then I created a vmfs filesystem. I named it after the person that helped me out do it.

 # partedUtil setptbl ./naa.6000eb3a2b3b330e00000000000000cf gpt "1 2048 83
88608 AA31E02A400F11DB9590000C2911D1B8 0"

 # vmkfstools -C vmfs5 -S davidvmfs -b 1M ./naa.6000eb3a2b3b330e00000000
000000cf:1

Step 4: In that class, the goal is to resize that filesystem to use 100% of that disk. Hence, the partition has to be grown and so is the file system.

 partedUtil resize ./naa.6000eb3a2b3b330e00000000000000cf 1 2048 16777128

# vmkfstools -G naa.6000eb3a2b3b330e00000000000000cf:1 naa.6000eb3a2b3b330
e00000000000000cf:1

Step 5: Lastly, the idea is to add a second disk to the first disk to grow the file system to
be around 16gbs of space. Make sure you add the new drive to the one with data.

# partedUtil setptbl naa.6000eb3a2b3b330e00000000000000d1 gpt "1 2048
16771128 AA31E02A400F11DB9590000C2911D1B8 0"
gpt
0 0 0 0
1 2048 16771128 AA31E02A400F11DB9590000C2911D1B8 0

# vmkfstools -Z /dev/disks/naa.6000eb3a2b3b330e00000000000000d1:1 /dev/disks/na
a.6000eb3a2b3b330e00000000000000cf:1

VMware ESX Question:
All data on /dev/disks/naa.6000eb3a2b3b330e00000000000000d1:1 will be lost. Continue and format?

0) _Yes
1) _No

Select a number from 0-1: 0

Saturday, September 7, 2013

Installing a simple VMware View Setup

Installing VMware View can be simple or complex depending on the choices made and the components installed. It is one thing to install a vcenter server, a connection server and installing the agent and client; it is another thing to use persona manager, composer and linked clones. In this demo, I decided to install a simple setup since I had not played with View since the previous version.

Step 1: Install the VMware View Client on a windows machine.

01. Download the view client for windows (linux also available). Download the x86 or x64 client depending on the machine you want to use. I used 2k3 64 bit so I installed the x64 client.
02. Double click on the Installer.
03. Click on Next.
04. Accept the license agreement.
05. Click on Next.
06. Accept your machine name (auto populated).
07. Click on Next.
08. Click on next when asked about adding icon to desktop.
09. Click on Install.
10. Click on Finish
11. Reboot the windows machine.
12. Double click on the VMware View Client to launch it; then close it.

Here are some photos:






Step 2: Install the VMware Agent on a Windows Machine (xp, vista or 7)

01. Log into the xp machine as the domain administrator
02. Insert the cd with the agent software
03. Double Click on the Installer. (There are two, 32 and 64 bit)
04. Click on Next.
05. Click on Install.
06. Verify that the firewall is disabled after the install.
07. Reboot that virtual machine.

Here are some photos:


So far so good, now it's time to prepare the connection server...

Step 3: install and configure the Connection Server

01. Install 2008 R2 64 bit
02. Install VMware Tools
03. Change the ip to a static ip, the name and join an AD domain
04. Insert the VMWare View cd and double click on the installer
05. Click on Next to start the installation


06. Agree to the License Agreement
07. Agree to the default location for the install and click on next.
08. Select to Install a View Standard Server.
09. Select the view recovery password (vmware1!)
10. Select to configure the firewall automatically.
11.  Select the authorized users (admin group by default).
12. Deselect the choice to participate automatically in the user experience
13. Click on Install.
14. Click on Finish.
15. Connect to the view connection server via https://view_server_name/admin


16. Log in as administrator
17. Click on Product Licensing under View Configuration
18. Add the View License (no 60 days eval here).
19. Click on Servers
20. Specify who is the vcenter server and add it.
21. Select Pools
22. Click on Add
23. Select Manual Pool.
24. Select Dedicated Pool
25. Select to Manage Vcenter VMs
26. Select your vcenter server
27. Name the pool Pool1
28. Add the xp1 vm
29. Click on Add, Next, Next and Finish.
30. Select the Pool called Pool1
31. Click on Entitlements
32. Click on Add
33. Input the names of entitled users.
34. Click on Ok.
35. Launch the View Client and Connect.






Notes: Before you test the setup, make sure the firewall is disabled on the Connection Server and that everybody can ping all the components involved.

Friday, September 6, 2013

How to Configure the Vsphere Storage Appliance

Introduced in 5.0, the VSA (Vsphere Storage Appliance) allows you to create a two or three node cluster without shared storage. I decided to use the latest version 5.1.3 since it had several advantages over the original version. For example, the vcenter server can manage multiple VSA clusters or be a virtual machine inside of the cluster itself. I decided to create a simple two node cluster with a separate vcenter server running 2003 64 bit. My Vcenter server had two cpus, 6 gbs of ram.

Here are the steps and issues I encountered.

01. Install esxi 5.1 in two servers. My servers had 8 gbs of ram (minimum 6gb), 4 nics and two disk drives. I did not have hardware raid (needed for support) but I had two 40 gb disks per esxi server. I had to remove my original drive since the install of the VSA kept complaining about different disk sizes and having less than 30 GBs of space.

02. Install a brand new vcenter server. Mine was running 2k3, sp2. It is imperative that you upgrade
internet explorer. 2k3 comes with i.e. 6.0. This does not work well with the VSA Manager tab. It took me a while to find the bug about IE 6.

03. Download the latest version of the Vsphere Storage Appliance from vmware.com/downloads . Burn it into a dvd.

04. Create a Datacenter (mine was called Training) and add the two esxi hosts. make sure the esxi servers have a static ip address.

05. Start the installation of the VSA. Simply run the vmware-vsamanager.exe executable on the vcenter server. I found the executable in the  D:\Installers folder.



06. Select the Language of your choice and accept the License Agreement.

07. Accept the ip address of the vcenter server (automatically  populated) and the communication ports that will be used.

08. Provide the password for the user vmwarevcsadmin. I used Vmware1! This is the VSA service account.

09. Use the demo license (60 days).

10. Click on Install and eventually Finish.

Warnings/Issues I encountered/Did not expect

The only issue I encountered during the installation was a complain that the Windows Firewall was not running. Strange since it was disabled after the install of the vcenter server as it should had been. I started the firewall, rerun the installer and then disabled the firewall again. At the end, i checked the VMware VSA cluster service and it was running. I launched the vsphere client, connected to the vcenter server and verified that the VSA plugin was enabled. I was prepared to enable it manually to see the VSA Manager tab in the vsphere client but did not have to.



11. Launch the Vsphere Client and connect to the Vcenter Server. Log in as the administrator

12. Select the Datacenter and look for the new tab called the VSA Manager.

13. Select New Installation



14. Select your Datacenter



15. Select the two hosts. Here is where you may issues with the hardware being used. It is easy to see that the installer recognized that I had unsupported hardware but after a couple of changes, it let me
select them. This issues can be related to lack of raid, no redundancy at the network level (how you build the switches), lack of EVC compatibility (easily fixed, info at bottom of doc) and so forth.


16. Select the IP address of the VSA Cluster and the IP address of the VSA Cluster Service

17. Specify the storage capacity to use. Here is a photo of the entire set of questions.



18. Select format disks on first access.

19. Click on Install and walk away for a while. Once you finish, the cluster will be ready to be used.



20. Click on Finish.

Final Notes:

1. Although the Installation and configuration steps are simple, there are many gotchas. There are requirements regarding the storage, virtual switches and port groups and so forth. Read the entire VSA Installation PDF to avoid some of the issues I encountered.

For example, I pasted the network and EVC related information from the install pdf.

Network Configuration:

When networking configuration on ESXi hosts has been changed, or if you need to manually configure the NICs selected for different portgroups, the following consideration apply:

Each ESXi host must contain at least one vSwitch.
Configure five port groups on each host, named exactly as follows: VSA-Front End Network, VM
Network, Management Network, VSA-Back End Network, VSA-VMotion.
For each port group, configure NIC teaming so that it has at least one active and one standby NIC.
If the NIC is active for the Management and VM Network port groups, it should not be active for
VSA-Front End port group. Use the standby NIC instead.
If the NIC is active for port group VSA-Back End, it should not be active for the VSA-VMotion port group. You can use the standby NIC.

EVC Support:

If your configuration does not allow to enable the EVC mode on the HA cluster, disable the EVC
mode by setting the evc.config property to false in the VSAManager/WEB-
INF/classes/dev.properties file.


2. If you want to test the VSA in a nested environment (not supported but works), check out

http://www.virtuallyghetto.com/2011/09/how-to-install-vmware-vsa-in-nested.html
http://www.virtuallyghetto.com/2012/09/having-difficulties-enabling-nested.html

What follows is a capture of one Vcenter server managing multiple vsas.