Friday, May 15, 2009

Planning Disk Partitioning of ESX sever 3.x

Following Default ESX Partitioning Scheme:

Mount Point* Name Type Size
/boot Ext3 100MB
/ Ext3 5000MB (5GB)
(none) Swap 544MB
/var/log Ext3 2000MB (2GB)
(none) vmkcore 100MB
(none) VMFS3 Varies

Although the default partitions created are good enough or ESX server 3.x to run properly, but there is a lot of room for customization in order to enhance performance, stability and extendibility. Following are some recommendations with their supportive reasons:

The /boot Partition

the default size of 100MB is ample space for the necessary files. This 100MB size, however is twice the size of the default boot partition created during the installation of the ESX2. Thus recommendation is to use 200MB for /boot partition in anticipation of future increase.

The / Partition

The minimum size for this partition is 2.5GB and as VMware has already chosen the double of the same as the default partition size, it should be ok. But we need to consider the fact this is the partition where third party applications/tools would also install by default and definitely they will require their own space. Thus the recommendation is to use 20GB – 25GB for the / (root) partition. Still the most important factor is is to choose a size that fits the comfort for growth.

The SWAP Partition

As we all know, general rule is to create SWAP partition is two provide it with a size equal to two times of the memory allocated to the operating system. The same holds true for the ESX server as well because by default  Service Console in ESX 3.x is allocated with 272 MB of RAM and thus SWAP is by default 544MB which is OK). Now the point of consideration is if third party applications are going to install they will also require additional RAM, and than in result Service console will require additional RAM. Here the limit for RAM allocation to service console is 800MB, so if the Service Console is to be adjusted up to the 800MB max, than the SWAP partition should be 1600MB.

The /Var/Log Partition

It’s Typically safe value for this partition, however there is a recommendation. ESX Server user /var partition during the patch management tasks. Since the default partition is  /var/log, this means that the /var partition is still under the / (root) partition. Therefore the space consumed in /var is space consumed in / (root). Therefore it is recommended to change the mount point* to /var instead of /var/log and increase the size of space to a larger value like 12GB-15GB.

The VMKCORE Partition

It is the dump partition where ESX server writes/dumps information about a system halt/hang. Size of this partition doesn’t require any alteration.

The VMFS3 Partition

ESX server creates all the other partitions first and than uses the remaining free space for this partition as local VMFS storage, thus it doesn’t require any alteration or considerations.

Therefore the following is the recommended ESX Partitioning Scheme is as follows:

Mount Point* Name Type Size
/boot Ext3 200MB
/ Ext3 25000MB (25GB)
(none) Swap 1600MB
/var/log Ext3 12000MB (12GB)
(none) vmkcore 100MB
(none) VMFS3 Varies

*Mount Point: In Unix-like systems, the mount point is the location in the operating system's directory structure where a mounted file system appears. Mount Point involves the association of a directory with a partition on the physical disk.

Thanks to VMware forums, Chris McCain, Google and various other authors who shared this information on the internet and by the means of various guides and books available on VMware Infrastructure 3.

How to resize a Virtual Machine’s System Volume?

I believe that almost all of us has encountered this problem where the systems in our windows environment runs out of the disc space on the system volume. If it is a physical server the option we have is to third party tool such we can use Symantec Ghost to create an image of the machine and than deeply the image back to the machine with larger hard drive. Same thing can be done if it is a virtual machine, but all this require that third party software which comes at a cost. There is an alternative to this and it comes completely at the hand of tools that are already available within ESX and Windows, so you don’t need to bear any additional cost to achieve the same.

following is the procedure to the same:

Note: First things first backup the VMDK file which you want to resize

For example, to increase the size of a VMDK file named server1.vmdk from 20GB to 60GB:

  1. Use the virtual Machine Properties to resize the virtual machine disk file size or you can use vmkfstools command from ESX host.
  2. Mount the server1.vmdk file as a secondary drive in a different virtual machine.
  3. Open a command prompt window in the second virtual machine.
  4. At the command prompt, type diskpart.exe
  5. To display the existing volumes, type list volume.
  6. type select volume <volume number>, where <volume number> is the number of the volume to extend.
  7. To add the additional 40 GB of space to the drive, type extend size=40000.
  8. To quit diskpart.exe, type exit.
  9. shutdown the second virtual machine to remove server1.vmdk.
  10. turn on the original virtual machine to reveal a new, large C drive.

This is valid for older Windows systems such as Windows 2000, 2003 etc, but for Windows Server 2008, as Microsoft has now added the native ability to grow and shrink the system volume making it even easier to make these adjustments without use of any third party tools.

Ref: http://searchwindowsserver.techtarget.com/news/article/0,289142,sid68_gci1126671,00.html

http://support.microsoft.com/kb/300415

http://support.microsoft.com/kb/325590

Wednesday, May 13, 2009

What is a DNS Resolver or DNS Client? What is Stub Resolver or Stub DNS Resolver?

DNS Resolver

The resolver is a DNS client that which initiates the process of Name Resolution.  So as the main job of a DNS server to store DNS name data and serve it when it receive requests, the main job of a DNS resolver it to well, resolve.

To accomplish the task of Name resolution resolvers perform some or all of the Following functions:

Provides the User Interface: DNS Resolver is the interface between the user (both the human user and the software user, such as browser) and the DNS system. That is the reason why you type www.google.com and web page opens without asking you the IP address of the server where the web is located.

Forming and Sending Queries: DNS resolver creates appropriate query using the DNS messaging system, determines what type of resolution to perform, and send the query to appropriate name server.

Processing Responses: The DNS resolver must accept back responses from the DNS server to which it sent its query and decide what to do with the information within the reply.

Caching the Responses: Like Name/DNS servers, DNS resolvers can cache the results of the name resolutions they perform to save time if the same resolution is required again. (Not necessary that all DNS resolvers perform caching.)

STUB Resolver
When a network is setup in such a way that the resolvers on each client machines do nothing more than hand resolution requests to a local DNS Server and let the server take care of it. In this case, the client DNS resolver is known as Stub Resolver.

Tuesday, May 12, 2009

Windows 2000 & 2003 Server: How do you backup AD? How do you restore AD?

Tasks: Back up Active Directory and associated components.

Procedures:

  • Back up system state on a domain controller.

  • Back up system state and system disk on a domain controller.

Tools:

  • NTBackup.exe

Frequency: At least twice within the tombstone lifetime

Tasks: Perform a non-authoritative restore.

Procedures:

  • Restart the domain controller in Directory Services Restore Mode (locally or remotely).

  • Restore from backup media.

  • Verify Active Directory restore.

Tools:

  • NTBackup.exe

  • Ntdsutil.exe

  • Event Viewer

  • Repadmin.exe

Frequency: As needed

Tasks: Perform an authoritative restore of a subtree or leaf object.

Procedures:

  • Restart in Directory Services Restore Mode.

  • Restore from backup media for authoritative restore.

  • Restore system state to an alternate location.

  • Perform authoritative restore of the subtree or leaf object.

  • Restart in normal mode.

  • Restore applicable portion of SYSVOL from alternate location.

  • Verify Active Directory restore.

Tools:

  • NTBackup.exe

  • Ntdsutil.exe

  • Event Viewer

  • Repadmin.exe

Frequency: As needed

Tasks: Perform an authoritative restore of the entire directory.

Procedures:

  • Restart in Directory Services Restore Mode.

  • Restore from backup media for authoritative restore.

  • Restore system state to an alternate location.

  • Restore the database.

  • Restart in normal mode.

  • Copy SYSVOL from alternate location.

  • Verify Active Directory restore.

Tools:

  • NTBackup.exe

  • Ntdsutil.exe

  • Event Viewer

  • Repadmin.exe

Frequency: As needed

Tasks: Recover a domain controller through reinstallation.

Procedures:

  • Clean up metadata.

  • Install Windows 2000/2003 Server.

  • Install Active Directory.

Tools:

  • Ntdsutil.exe

  • Active Directory Sites and Services

  • Active Directory Users and Computers

  • Dcpromo.exe

Frequency: As needed

Tasks: Restore a domain controller through reinstallation and subsequent restore from backup.

Procedures:

  • Install Windows 2000/2003 Server on the same drive letter and partition as before the failure, partitioning the drive if necessary.

  • Restore from backup media (non-authoritative restore).

  • Verify Active Directory restore.

Tools:

  • NTBackup.exe

Frequency: As needed