Thursday, January 28, 2010

VMWare VMotion

Each of the ESX Server hosts that are involved in VMotion must meet the following
requirements:

  • Shared VMFS storage for the virtual machines files
  • A gigabit network card with a VMkernel port defined and enabled for VMotion on each host

HP c7000 Blade System

Our company just bought a HP c7000 Blade System recently, no doubts I have fun configuring it this few weeks.


Front view 1

Front view 2

Rear view 1

Rear view 2

Rear view 3

Switches

ESX CLI:

  • esxcfg-vswitch -a vSwitch1 -> This create a new vSwitch1
  • esxcfg-vswitch -L vmnic1 vSwitch1 -> This will link my second physical network interface (vmnic1) to vSwitch1
  • esxfg-vswitch -U vmnic1 vSwitch1 -> This will unlink NIC to vSwitch
  • esxcfg-vswitch -A "Service Console" vSwitch0 -> This will create a new port group named Service Console.
  • esxfg-vswitch -A "VMtion" vSwitch1 -> This will create a new port group named VMotion and associate it to vSwicth1.
  • esxcfg-vswif -a vswif0 -p "Service Console" -a 192.168.1.2 -n 255.255.255.0 -b 192.168.1.255 -> This will create new L3 interface which is linked to SC port group with an static IP. ESX server will generate new L2 mac address and assign this to the vswif2 interface.
  • esxcfg-vmknic -a -i 10.10.0.5 -n 255.255.255.0 VMotion -> This will assign an IP and subnet mask to the VMotion port group.
Below is the steps to
-- Create a new vSwitch named vSwitch1
-- Associate a physical NIC, in this case vmnic1 to the vSwitch1
-- Create a new Port Group under vSwitch1
-- Create a new NIC under vSwitch1 and assign it an IP and subnet



Changing the DNS server settings
To change the DNS server settings, update the nameserver IPs and search domain the /etc/resolv.conf file.

VMWare - Resize VMFS block size

You are experiencing these issues:

Creating a virtual disk larger than a certain size fails with these errors:
  • In the ESX host command line:

    Failed to create virtual disk: There is not enough space on the file system for the selected operation.
  • In the Virtual Infrastructure (VI) Client for ESX 3.0 with VirtualCenter 2.0:
  • In the VI Client for ESX 3.5 with Virtual Center 2.5 and in vSphere 4.0 with vCenter:

VMFS Size Limitations

There is no way to change the block size of a VMFS datastore once it is created. The data store must be reformatted with the required block size.
Block Size
Largest virtual disk on VMFS-2
Largest virtual disk on VMFS-3
1MB
456GB
256GB
2MB
912GB
512GB
4MB
1.78TB
1TB
8MB
3.56TB
2TB
16MB
7.18TB
Invalid block size
32MB
14.25TB
Invalid block size
64MB
28.50TB
Invalid block size
With a block size of 1MB, every file that is created uses at least 1MB of space on the storage, regardless of its actual size. With an 8MB block size, a 1KB file still occupies 8MB of space. The unused space in that block is wasted. The larger block size is only required when a file is so large that it requires an extended addressing space. Being aware of the intended use helps with your planning and efficient use of space on the data store.
To create a resized datastore:

Note: All data on a VMFS volume is lost when the data store is recreated. Backup all data before proceeding.
  • In the VI Client / vSphere connected to VirtualCenter / vCenter:

    1. Remove the datastore from one of the ESX hosts.
    2. Rescan for VMFS volumes from the other hosts that can see the datastore.
    3. Create the new datastore on one of the hosts.
    4. Rescan for VMFS volumes from all other hosts that can see the datastore.

  • From the ESX console:

    1. Use vmkfstools to create a new volume over the existing one.
    2. Rescan from all other ESX hosts with the command vmkfstools -V . For syntax on creating the VMFS volume, please consult the appropriate document listed below.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003565

Friday, January 2, 2009

Processor Affinity

Is two better than one? Not necessarily, if your dual-core processor runs at less-than-effective efficiency with older programs. Here's how to optimize your processor settings to allow Windows XP Professional to run more smoothly by switching to just one core when running certain applications.

If you have a dual-core processor, you may discover that certain older applications that ran fine on systems with a single core CPU have problems running with two cores. For example, your application may suddenly begin maxing out the CPU usage at 100 percent, appearing to lock up. Windows XP Professional's Processor Affinity setting allows you to work around such problems by configuring older applications to use only one of the cores. Here's how to set it up:

1.Access Task Manager.
2.Choose the Processes tab.
3.Right-click the process associated with the problem application.
4.Select the Set Affinity command. (If you don't have a dual-core system, you won't see the Set Affinity command.)
5.From the Processor Affinity dialog box, clear one of the CPU check boxes.

You could perform this manual operation every time you run the application, but the THG Task Assignment Manager (available for download from Tom's Hardware) allows you to create profiles that automatically assign applications to a specific CPU every time you run them.

Note: This tip applies only to Windows XP Professional.

http://yahoo-tej.blogspot.com/2007/10/automatically-set-processor-affinity-in.html

Tuesday, December 30, 2008

Exchange 2007 Problems and Solutions

  • Problems creating mailboxes

Error message: An Exchange 2007 server on which an address list service is active cannot be found.

Solution: Start Microsoft Exchange System Attendant service.

Other possible cause and solution:

1. rename DC

2. transfer all FSMO role to GC

3. Do not use a virtual server with a non-unique SID

Windows Server 2008

Windows 2008 Active Directory, deleting OUs

Today I found some new default permissions on Windows 2008 Active Directory Organizational Units (OU). I had created an OU in my nice new Windows 2008 Active Directory to provision servers into. Now that I have created my OU structure I tried to delete my redundant OU and received the error message.

You do not have sufficient privileges to delete MyOUName, or this object is protected from accidental deletion.

So I immediately switched on Advanced Features in Active Directory Users and Computers so that I can access the Security tab of the OU. When I clicked Advanced there was one explicit Deny permission set for Everyone with Special permissions. These Special permissions were Deny Delete and Deny Delete Subtree. Of course by un-checking these options I could delete the OU.

Posted by Brian Gibson
http://brianagibson.blogspot.com/2008/07/windows-2008-active-directory-deleting.html

Tuesday, December 2, 2008

What's new in Windows Server 2008

Solid Foundation

  • Windows PowerShell, a new optional command-line shell and scripting language, enables administrators to automate routine system administration tasks across multiple servers.
  • Windows Reliability and Performance Monitor provides powerful diagnostic tools to give you ongoing visibility into your server environment, both physical and virtual, to pinpoint and resolve issues quickly.
  • Componentized Server Core installation option allows minimal installations where only the server roles and features you need are installed, reducing maintenance needs and decreasing the available attack surface of the server.
  • Windows Deployment Services (WDS) provides a simplified, highly secure means of rapidly deploying Windows operating systems to computers by using network-based installation.
  • Failover clustering wizards make it easy for even IT generalists to implement high-availability solutions, Internet Protocol version 6 (IPv6) is now fully integrated, and geographically dispersed cluster nodes no longer need to be on the same IP subnet or configured with complicated Virtual Local Area Networks (VLANs).
  • Network Load Balancing (NLB) now supports IPv6 and includes multiple dedicated IP address support which allows multiple applications to be hosted on the same NLB cluster.

Virtualisation

  • Windows Server 2008 Hyper-V, the next-generation hypervisor-based server virtualization technology, allows you to consolidate servers and use hardware more efficiently.
  • Several enhancements to Terminal Services (TS) improve presentation virtualization.
  • Simpler licensing terms makes using these technologies more straightforward.
  • Support for the latest hardware-assisted virtualization technologies allows virtualization of very demanding workloads.
  • New storage features, such as pass-through disk access and dynamic storage addition, allow VMs more access to data, and give external programs and services more access to data stored on VMs.
  • Clustering of Windows Server virtualization (WSv) hosts or VMs running on WSv hosts and backup of VMs while they are running keep your virtualized servers highly available.
  • Terminal Services (TS) RemoteApp and TS Web Access allow programs that are accessed remotely to be opened with just one click and appear as if they are running seamlessly on the end user's local computer.
  • TS Gateway helps provide secure remote access to Windows-based programs through firewalls – without the need for a virtual private network (VPN).
  • TS Licensing Manager adds the ability to track the issuance of TS per User Client Access Licenses (CALs). Built into Windows Server 2008, TS Licensing is a low-impact service the enables centralized administration, tracking, reporting, and efficient purchasing of TS per User CALs.