Die Foren-SW läuft ohne erkennbare Probleme. Sollte doch etwas nicht funktionieren, bitte gerne hier jederzeit melden und wir kümmern uns zeitnah darum. Danke!

So erstellt man einen 2-Node Microsoft Cluster

Hilfe bei Problemen mit der Installation oder Benutzung des VMware GSX Server und VMware Server 1.

Moderatoren: irix, Dayworker

Moderator
Beiträge: 317
Registriert: 02.03.2004, 22:50
Wohnort: Im Urlaub bis 02.08.2004
Kontaktdaten:

So erstellt man einen 2-Node Microsoft Cluster

Beitragvon HartmutSchaumburg » 05.06.2004, 21:51

Hallo,

in der letzten Zeit kamen einige Fragen zu Clusterkonfigurationen.
Ich stelle daher hier die Installationsanleitung für die Erstellung eines 2-Node Microsoft Cluster Servers auf einem GSX Server ein.
Wer dieser Anleitung folgt, hat nach 2 Stunden einen Cluster am laufen.



This procedure creates a two-node cluster using Microsoft Clustering Services on a single GSX Server computer using the following:
• SQL1 = host name of node 1 of the cluster
• SQL2 = host name of node 2 of the cluster
• SQLCLUSTER = public host name of the cluster

Creating the First Node’s Base Virtual Machine

The following steps describe how to create the base virtual machine that serves as the first node in the cluster (and as a template for the additional node), and how to create the two preallocated virtual disks that are shared among the virtual machines in the cluster.

Note: The virtual disks used to store the operating system and clustering software for each virtual machine (node) in the cluster do not have to be preallocated virtual disks.
1. Log on to your GSX Server host as the user who will own the virtual machine.
2. Launch a VMware Virtual Machine Console and create a new virtual machine. Follow the Custom path. Choose the settings you want (for example, the size of the virtual disk or the amount of memory), but make sure you specify
• Windows 2000 Advanced Server as the guest operating system.
• SQL1 as the virtual machine name.
• The virtual machine directory as d:\cluster\SQL1 (on a Windows host)
or /home/cluster/SQL1 (on a Linux host).
• Bridged networking for the virtual machine.
• SQL1 as the disk file name.
3. Open the virtual machine settings editor. Choose VM > Settings.
4. Add a new network adapter that uses either another external adapter or the VMnet1 host-only adapter. (For complete isolation from the host, you may also use any unused virtual Ethernet switch, typically VMnet2 through VMnet7.)

This adapter is used as the virtual private Ethernet connection for heartbeat monitoring.
5. Add the two virtual disks that are to be shared:
• A shared data disk (call it data.vmdk, for example)
• A shared quorum disk (call it quorum.vmdk, for example) to store
transactions before they are committed to the data disk
For information, see Adding Virtual Disks to a Virtual Machine in the VMware GSX Server Virtual Machine Guide.
6. Click OK to save your changes and close the virtual machine settings editor.
7. Using a text editor, manually edit the configuration file
d:\cluster\SQL1\SQL1.vmx (on a Windows host) or /home/cluster/SQL1/SQL1.vmx (on a Linux host).
8. Add the following lines to the bottom of the configuration file:
scsi1.sharedBus = virtual
disk.locking = "false"
This enables SCSI reservation, which is described in more detail in the section Using SCSI Reservation to Share SCSI Disks with Virtual Machines on page 192.
You are finished creating the virtual machine for the first node in your cluster.

The next step is to install a guest operating system in the virtual machine.
Follow these steps to install Windows 2000 Advanced Server in the virtual Machine that is the first node of your cluster:
1. Insert the Windows 2000 Advanced Server CD in the CD-ROM drive.
2. Connect to the virtual machine with a console.
3. Log in as the user who created the virtual machine, as root or as the
Administrator.
4. Click Power On.
5. Install Windows 2000 Advanced Server on the disk connected to scsi0.
6. Accept all of the default options during the installation.
Note: Do not install the clustering services at this time.
7. When the installation is complete, install VMware Tools in the guest operating system. See Installing VMware Tools in the VMware GSX Server Virtual Machine Guide.
8. Remove the Windows 2000 Advanced Server CD from the CD-ROM drive.
You are finished installing the guest operating system.

The next step is to clone the virtual machine. (Later, you create the second cluster node using the clone.)

Cloning the First Cluster Node
Follow these steps to clone the first virtual machine node:

1. Run sysprep.exe, which is available on the Windows 2000 CD in the file
\support\tools\deploy.cab (or from the Microsoft Web site).
The sysprep.exe utility removes the security ID assigned to the guest
operating system, resets the machine information and resets the TCP/IP network configuration.
2. Shut down the guest operating system and power off the virtual machine.
3. Create a directory named SQL2 under the cluster directory.
4. Copy the SQL1*.vmdk files into this directory.
5. Change the file names to SQL2*.vmdk.
You are finished cloning the first node.

You are now ready to create the second node in the cluster using the clone.

Creating the Second Node in the Cluster from the Clone of the First Node

Follow these steps to create the second node in the cluster using the clone of the first node:
1. Log on to your GSX Server host as the user who will own the virtual machine.
2. Launch a VMware Virtual Machine Console and create a new virtual machine (for information on creating a new virtual machine, see Creating a New Virtual Machine in the VMware GSX Server Virtual Machine Guide). Choose the settings you want (for example, the size of the virtual disk or the amount of memory), but make sure you specify:
• Windows 2000 Advanced Server as the guest operating system.
• SQL2 as the virtual machine name.
• The virtual machine directory as d:\cluster\SQL2 (on a Windows host)
or /home/cluster/SQL2 (on a Linux host).
• Bridged networking for the virtual machine.
• To use an existing virtual disk, click Browse and select SQL2.vmdk.
3. Open the virtual machine settings editor. Choose VM > Settings.
4. Add a new network adapter that uses either another external adapter or the VMnet1 host-only adapter. For information, see Adding and Modifying Virtual Network Adapters in the VMware GSX Server Virtual Machine Guide.
5. Add the two virtual disks (quorum.vmdk and data.vmdk) you previously created. For information, see Adding Virtual Disks to a Virtual Machine in the VMware GSX Server Virtual Machine Guide. Make sure you choose to Use an existing virtual disk and browse to quorum.vmdk and data.vmdk.
6. Click OK to save your settings and close the virtual machine settings editor.
7. Using a text editor, manually edit the configuration file d:\cluster\SQL2\SQL2.vmx (on a Windows host) or /home/cluster/SQL2/SQL2.vmx (on a Linux host).
8. Add the following lines to the bottom of the configuration file:
scsi1.sharedBus = virtual
disk.locking = "false"
This enables SCSI reservation, which is described in more detail in the section Using SCSI Reservation to Share SCSI Disks with Virtual Machines on page 192.
9. Connect to the VMware Management Interface
(https://<hostname>:8333) and review the Status Monitor page.

The management interface should list both virtual machines and show them powered off.
You are finished creating the second node.

Now that you have virtual machines for both nodes in your two-node cluster, you are ready to install the clustering services software.

Installing Microsoft Clustering Services on the Cluster Nodes

Follow these steps to install Microsoft Clustering Services on the first node of your cluster:
1. Start the node 1 virtual machine.
2. Follow the Windows 2000 Advanced Server setup prompts to enter
• The Windows 2000 Advanced Server serial number.
• The host name (SQL1).
• The IP addresses of the public and private network adapters.
Note: For the public network adapter, enter an IP address that belongs to the physical network. For the private IP address, you may use an address like 192.168.x.x with a class C subnet mask (255.255.255.0).
3. At the end of the process, Windows automatically reboots.
4. Start the Disk Management tool and change both shared disks to Basic disks.
5. Format both shared virtual disks with NTFS if they are not already formatted.
6. Assign the first shared disk to Q: (quorum) and the second disk to R: (data).
If you have joined this virtual machine to an existing Active Directory domain, skip to step 11.
7. Run dcpromo.exe from the command prompt. This starts the Active
Directory Wizard.
8. Set up the current machine as a domain controller. For the domain name, use something similar to <vmcluster>.<domain.com> where
<domain.com> is your DNS domain and <vmcluster> is your Active
Directory domain.
You can set up this node as a new domain tree or a new domain forest, or join it to an existing domain tree or forest.
9. Make sure the DNS server is installed.
10. Set the domain permissions as mixed mode unless you plan otherwise.
11. To add a cluster services account in the domain, go to Programs >
Administrative Tools > Active Directory Users and Computers.
12. Add a cluster service account named cluster:
• Enter the user’s password.
• Check the User cannot change password check box.
• Check the Password never expires check box.
13. Insert the Windows 2000 Advanced Server CD in the CD-ROM drive.
14. Choose Control Panel > Add/Remove Programs.
15. Select Add/Remove Windows Components.
16. Check the Cluster Service component.
17. Click Next and follow the prompts to install the service.
18. As you configure the cluster service, choose Form a New Cluster.
19. Specify SQLCLUSTER as the cluster name.
20. Specify the cluster service account created in step 12.
21. Specify that both shared disks should be managed by the cluster service.
22. Indicate the shared disk (Q:) to be the quorum disk.
23. Specify which network adapter is public and which is private.
24. Specify the cluster IP address. This is the address that represents the cluster. It must be on the same network as the physical Ethernet device.
25. Stop the cluster service on the local node (node 1) so that the second virtual machine (node 2) can access the shared disks.
• From Cluster Manager, right-click the node name.
• Select Stop Cluster Service.
You are finished installing Microsoft Clustering Services on the first node.

The steps to install the software on the second node are similar.
1. Start the node 2 virtual machine.
2. Repeat step 2 and step 3 in the procedure for the first node.
3. Start the Disk Management tool and assign the first shared disk to Q: (quorum) and the second disk to R: (data).
4. Start dcpromo.exe and add this virtual machine as a domain controller in the same domain created in step 8 for the first node, or add it to an existing domain.

Note: The setup in node 2 must match the setup in node 1, which you specified in step 8 for node 1.
5. In the node 1 virtual machine, start the cluster service.
• From Cluster Manager, right-click the node name.
• Select Start Cluster Service.
6. In the node 2 virtual machine, repeat step 14 through step 24, with one exception: in step 18, select Join a Cluster.

You are now finished configuring the cluster.


Das alles ist nachzulesen im GSX 3 Administration Guide:
Download from here:
http://www.vmware.com/pdf/gsx30admin_manual.pdf



Hartmut Schaumburg

Zurück zu „VMserver 1 und GSX“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast