What I learned today weblog

Absolutely random blog

How to Deploy Failover Cluster in Windows 2008 – Checklist

Posted by avilov on 10-21-2009

Deploying Failover Clusters

The Windows 2008 Failover Cluster feature is not installed on a system by default and must be installed before failover clusters can be deployed. Alternatively, for administrative workstations, the Remote Server Management features can be installed, which includes the Failover Cluster Management snap-in, but the feature needs to be installed on all nodes that will participate in the failover cluster. Even before installing the Failover Cluster features, several steps should be taken on each node of the cluster to help deploy a reliable failover cluster. Before deploying a failover cluster, perform the following steps on each node that will be a member of the failover cluster:

  • Configure fault-tolerant volumes or LUNs using local disks or SAN-attached storage for the operating system volume.
  • Configure at least two network cards, one for client and cluster communication and one for dedicated cluster communication.
  • For ISCSI shared storage, configure an additional, dedicated network adapter or hardware-based ISCSI HBA.
  • Rename each network card properties for easy identification within the Failover Cluster Management console after the failover cluster is created. For example, rename Local Area Connection to PUBLIC and Local Area Connection 2 to ISCSI and Local Area Connection 3 to HEARTBEAT, as required and possible. Also, if network teaming will be used, configure the team first, excluding teaming from ISCSI connections, and rename each physical network adapter in the team to TEAMMEMBER1 and 2. The virtual team adapter should then get the name of PUBLIC or HEARTBEAT.
  • Configure all necessary IPv4 and IPv6 addresses as static configurations.
  • Verify that any and all HBAs and other storage controllers are running the proper firmware and matched driver version suitable for Windows 2008 failover clusters.
  • If shared storage will be used, plan to utilize at least two separate LUNs, one to serve as the witness disk and one to serve as the cluster disk for a high availability Services and Applications group.
  • If applications or services, not included with Windows 2008, will be deployed in the failover cluster, as a best practice, add an additional fault-tolerant array or LUN to the system to store the application installation and service files.
  • Ensure that proper LUN masking and zoning has been configured at the FC or Ethernet switch level for FC or ISCSI shared storage communication, suitable for failover clustering. Each node in the failover cluster, along with the HBAs of the shared storage device, should have exclusive access to the LUNs presented to the failover cluster.
  • If multiple HBAs will be used in each failover node or in the shared storage device, ensure that a suitable Multipath I/O driver has been installed. The Windows 2008 Multipath I/O feature can be used to provide this function if approved by the HBA, switch, and storage device vendors and Microsoft.
  • Shut down all nodes except one and on that node, configure the shared storage LUNs as Windows basic disks, format as a single partition/volume for the entire span of the disk, and define an appropriate drive letter and volume label. Shut down the node used to set up the disks and bring each other node up one at a time and verify that each LUN is available, and, if necessary, configure the appropriate drive letter if it does not match what was configured on the first node.
  • As required, test Multipath I/O for load balancing and/or failover using the appropriate diagnostic or monitoring tool to ensure proper operation on each node one at a time.
  • Designate a domain user account to be used for failover cluster management, and add this account to the local Administrators group on each cluster node. In the domain, grant this account the Create Computer Accounts right at the domain level to ensure that when the administrative and high availability Services and Applications groups are created, the account can create the necessary domain computer accounts.
  • Create a spreadsheet with the network names, IP addresses, and cluster disks that will be used for the administrative cluster and the high availability Services and Applications group or groups that will be deployed in the failover cluster. Each Services and Applications group requires a separate network name and IPv4 address, but if IPv6 is used, the address can be added separately in addition to the IPv4 address or a custom or generic Services and Applications group needs to be created.

After the tasks in the preceding list are completed, the Failover Cluster feature can be installed. Failover clusters are deployed using a series of steps, including the following tasks:

1.
Preconfigure the nodes, as listed previously.
2.
Install the Failover Clustering feature.
3.
Run the Validate a Configuration Wizard and review the results to ensure that all tests pass successfully. If any tests fail, the configuration will not be supported by Microsoft and can be prone to several different types of issues and instability.
4.
Run the Create a Cluster Wizard to actually deploy the administrative cluster.
5.
Customize the failover cluster properties.
6.
Install any necessary Windows 2008 roles, role services, or features that are required to deploy it on the failover cluster using the High Availability Wizard.
7.
Install any applications that will be added as application-specific cluster resources, so the application can be deployed using the High Availability Wizard.
8.
Run the High Availability Wizard to create a high availability Services and Applications group within the failover cluster, such as a file server, print server, DHCP server, or another of the included or separate services or applications that will run on a Windows 2008 failover cluster.
9.
Test the failover cluster configuration, and back it up.

Posted in Uncategorized | Leave a Comment »

How create a custom boot.wmi for WDS 2008

Posted by avilov on 10-21-2009

How create a custom boot.wmi for WDS 2008
  1. Create a TEMP folder on D: drive
  2. Create 2 subfolders: MOUNT and DRIVERS
  3. Insert Windows Server 2008 DVD and copy {DRIVE}:\SOURCES\BOOT.WIM to D:\TEMP\ and rename it CUSTOMBOOT.WIM
  4. Download the drivers you need and put them in their own subfolder under D:\TEMP\DRIVERS (i.e. D:\TEMP\DRIVERS\ETHERNET\ and D:\TEMP\DRIVERS\PERC_64\ )
  5. Open Command Prompt
  6. Assuming that MS windows AIC is installed on D: drive, enter the following commands:
  7. “D:\Program Files\Windows AIK\Tools\x86\imagex” /mountrw D:\Temp\customboot.wim 2 D:\Temp\Mount
  8. “D:\Program Files\Windows AIK\Tools\PETools\peimg” /inf=D:\Temp\Drivers\ETHERNET\*.inf /image=D:\Temp\Mount
  9. “D:\Program Files\Windows AIK\Tools\PETools\peimg” /inf=D:\Temp\Drivers\PERC_64\*.inf /image=D:\Temp\Mount
  10. “D:\Program Files\Windows AIK\Tools\x86\imagex” /unmount /commit D:\Temp\Mount
  11. Start the WDS Console, right click on the boot image you wish to update, and select DISABLE
  12. Right Click on that same boot image and select REPLACE IMAGE.  The browse to CUSTOMBOOT.WIM and select it.

Posted in Uncategorized | Leave a Comment »

How to use msdeploy to migrate web server

Posted by avilov on 10-21-2009

Download and install Microsoft Web Deployment tool
These instructions are for migration from IIS 6 to IIS 7. IIS 7 to IIS 7 migration is similar. The difference is in the source. Also GUI can be used to export/import a package.
at command prompt of the original server do:
c:
cd “C:\Program Files\IIS\Microsoft Web Deploy”
for /F %i IN (d:\tmp\ids.txt) DO msdeploy -verb:migrate -source:metaKey=lm/w3svc/%i -dest:archivedir=d:\%i,encryptPassword=ddcnetmgmt  -disableLink:ContentExtension -whatif
Please make sure that migrate folder is in the root of the drive. I had an issue with it when it was in the TMP folder and it was archiving recursively that folder as well.
if previous command didn’t return any errors
msdeploy -verb:migrate -source:webServer60 -dest:archivedir=d:\migrate,encryptPassword=password
if previous command didn’t return any errors copy d:\migrate to a new server. On a that new server at command prompt do
c:
cd C:\Windows\System32\inetsrv
appcmd add backup “backupName”
appcmd list backup
cd “C:\Program Files\IIS\Microsoft Web Deploy”
msdeploy -verb:migrate -source:archivedir=y:\migrate,encryptPassword=ddcnetmgmt -dest:webServer60 -whatif
if previous command didn’t return any errors
msdeploy -verb:migrate -source:archivedir=y:\migrate,encryptPassword=ddcnetmgmt -dest:webServer60
if previous command didn’t return any errors, open IIS manager and verify

Posted in Uncategorized | Leave a Comment »

How to Install DFS Replication on Windows 2008 Web Edition

Posted by avilov on 10-21-2009

Installing DFS Replication from the command prompt

On Windows Server 2008 web edition and on Server Core installations, the DFS Replication service cannot be installed using the Server Manager, either because the Server Manager UI is not available (eg. Server Core Editions) or because the File Services role that exposes ‘DFS Replication’ as an available role service is not available (eg. Web Edition). In such cases, the command prompt can be used to install the DFS Replication service. This can be done by typing the following command in a command window.

OCSetup DFSR-Infrastructure-ServerEdition

Posted in Uncategorized | Leave a Comment »

If you have to rebuild your PC

Posted by avilov on 10-14-2008

My laptop HD failed about a week ago and I was facing yet another system rebuild. Fortunately, I was able to mount that HD and copy all drivers that I backed up with a Double Drive . Double drive is a tool that I found several weeks before the crash. It backs up all drivers installed on the system. I tried it, it worked, I satisfied my curiosity and I forgot about it until I needed it :)

The backup saved me hours of searching the net for all drivers that I need on that laptop. Very useful tool. Check it out!

Posted in random | Leave a Comment »

Before you decide to install Hyper-V

Posted by avilov on 10-6-2008

If you have not so old servers and computers that you plan to use to play with Hyper-V you should propably download and run SecurAble there first. By doing that you may save yourself a lot of time.

I didn’t do that and I regret it now :)

Posted in random | Leave a Comment »

No DVD drive – No problem

Posted by avilov on 10-1-2008

How to install windows 2008 server on a server without DVD drive.

Easy!

you need on USB flash drive and a Vista PC

steps:

  1. diskpart
  2. list disk
  3. select disk 1 (the correct number for your PC you get from the previous command)
  4. clean
  5. create partition primary
  6. select partition 1
  7. active
  8. format fs=fat32
  9. assign
  10. exit
  11. copy content of the windows 2008 DVD to the flash drive

That’s it! Now boot from it annd install! I guess you guessed already that you need server that can boot from USB flash drive :)

P.S. that is an adaptation of instruction how to install Vista found at http://kurtsh.spaces.live.com/blog/cns!DA410C7F7E038D!1665.entry

Posted in random | Leave a Comment »

Great photographer

Posted by avilov on 09-23-2008

Sergey Maximishin is a great photographer. He is taking pictures while traveling all over the world. His site http://www.maximishin.com .

Check it our. It’s a good stuff.

Posted in random | Tagged: | Leave a Comment »

More memory! Cheap!

Posted by avilov on 09-18-2008

Windows Vista ReadyBoost promises somewhat improved performance utilizing USB memory drives as a faster than hard drive cache storage. I think that is great for laptops. More details and pictures

Posted in Uncategorized | Leave a Comment »

Cool tool

Posted by avilov on 09-17-2008

it doesn’t work for multimonitor setups tho

http://www.360desktop.com/

Posted in Uncategorized | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.