Posts Tagged ‘server 2003’

Implement RAID1 on Windows Server 2003

December 16th, 2009

Setting up RAID1 (software) on Windows Server is a straight forward task. RAID1 or disk mirroring provides fault in the event of single disk failure.

For this tutorial I will be using two identical size hard drives in which drive 1 will mirror drive 0.

Steps

Go to:

Start > Administrative Tools > Computer Management.

On the Computer Management window click on Storage > Disk Management. You can see we have two disks 0 and 1. On disk 0 right click on the grey area and select Convert to Dynamic Disk…

I recommend you convert to dynamic both Disk 0 and Disk 1 since you have to do it anyway and select OK.

You are presented with a list of the drives that will be converted to dynamic. Select Convert.

Click on Yes to convert.

Click on Yes to dismount all file systems.

Click on OK to restart the system.

Windows will reboot and once again prompt you to restart the system once it finishes installing new devices. Click on Yes to restart.

And now we RAID

Now we are ready to RAID the two drives. Go back to Start > Administrative Tools > Computer Management > Storage > Disk Management.

Right click on Disk 0 aka the C drive box and select Add Mirror…

Click on Add Mirror, don’t forget to select Disk 1.

Wait for the drives to Resync.

Once the drives are done resynching you have a mirrored system.

The system will the array as a single drive.

Congratulations you have added another layer of protection to your system.

VMware: Add second disk to a Windows virtual machine

August 5th, 2009

If you use virtual machines as mush as I do you will be in need of storage space and running out of it all the time. One way to expand the storage capacity of a virtual machine is to add a second virtual disk.

For this tutorial I will be adding a 25GB virtual hard disk to a Windows Server 2003 virtual machine. The instructions should apply without any changes to Windows XP and Windows Server 2008.

How-To

Start VMware Workstation and select the virtual machine you wish to add the second disk. Click on Edit virtual machine settings.

vmware_workstation

A new window will open. Click on + Add….

vmware_2

Now the Add Hardware Wizard will present you with several options. Click on Hard Disk and then click on Next.

vmware_3

Select Create a new virtual disk and then on Next.

vmware_4

Usually, VMware Workstation will suggest a type of virtual disk. In this case the suggested type is SCSI (Recommended) and click on Next.

vmware_5

Choose the size of your virtual disk in GB. My personal preference is to Store virtual disk as a single file and click on Next.

vmware_6

Now just tell it where to store the new disk file and click on Finish

vmware_7

Again you are presented with an overview of the system configuration. Now you can see we have two disks and click on Save.

vmware_8

Initialize the new disk

If you boot the virtual machine the new virtual disk will not appear under windows. You have to make use of a Windows utility called compmgmt.msc which will allow us to manage the new disk.

You will need administrative privileges

Click Start > Run and type compmgmt.msc and then hit OK.

This will bring a new window, click on Next to continue.

win

Here you are being asked which disk to initialize. The C drive is know as disk 0, using logic you know that our new disk is known as disk 1. Check Disk 1 and click on Next

win_2

Select which disk you wish to convert. Of course, we want to convert Disk 1 to a dynamic disk. Check and click on Next

win_3

Now the wizard is giving you an overview of whats about to be done to the disk. If you are OK with the changes click Finish.

win_4

Guess what we still have some work to do before we can use that new disk. Now right click on the unallocated volume and select New volume….

win_5

Click Next on the new volume wizard.

win_6

Select the volume type. In this case Simple and click on Next.

win_7

In this screen you are being asked to select the disk and disk size. I want to use all of the available space, just click on Next to continue.

win_8

Just accept the default drive letter and click on Next.

win_10

Now this is important. You are being asked whether you want to format the drive with NTFS and the volume label. Don’t be lazy like me and give the volume label a proper name. Then just hit Next.

win_9

Again you are being presented with an overview of whats about to be done with the drive. If you agree, click on Finish.

win_11

The new drive will now be formatted, allow for some time.

win_12

After the formatting is done you can close the window and go to Start > My Computer and you should be able to see the new drive with the assign letter E.

win_13

Thank you for visiting Linhost.info. Hopefully, this material was of some help to you.

ServerManagerCmd basics

July 30th, 2009

While Microsoft server provides a great wizard to manipulate roles and features, you may be also interested in learning about it’s command-line counterpart ServermManagerCmd.exe. The command line oriented tool can be used to determine/install/uninstall roles, role services, and features.

ServerManagerCmd requires an elevated command prompt

Query the system

ServerManagerCmd is easy to lean and use. Let’s start by finding out which roles, role services, and features are installed on a system.

In the Windows command-line prompt type.

servermanagercmd -query > queryresults.txt
  • What this command does is query the system and print the results to a text file.
  • If you wish to can change the file extension from .txt to .xml, XML allows for the file to be used in conjunction with automation techniques.

ServerManagerCmd

Component installation

Using ServerManagerCmd to install components could not be easier, just use -install in front of servermanagercmd to indicate you wish to install a component.

In the Windows command-line prompt type.

servermanagercmd -install fs-fileserver -allsubfeatures
  • Notice the -allsubfeatures, what this does is install any other sub-feature required by the installation.

severmanager_install

For a complete list of components you should take a look at this page.

Component uninstallation

To uninstall or remove a component the process is almost the same as the installation, just use -remove to indicate you wish to remove a component.

In the Windows command-line type.

servermanagercmd -remove fs-fileserver -allsubfeatures
  • Notice the -allsubfeatures will also uninstall any subfeature required by the installation

servermanager_remove