RAID – James Batchelor https://james-batchelor.com Useful I.T & VoIP Ramblings Mon, 18 Apr 2016 17:44:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 https://james-batchelor.com/wp-content/uploads/2025/05/cropped-cropped-logo-jb-202505-32x32.png RAID – James Batchelor https://james-batchelor.com 32 32 Upgrading RAID Disks https://james-batchelor.com/index.php/2015/05/15/upgrading-raid-hard-disks/ https://james-batchelor.com/index.php/2015/05/15/upgrading-raid-hard-disks/#respond Fri, 15 May 2015 17:10:30 +0000 http://james-batchelor.com/?p=263 Continue reading "Upgrading RAID Disks"]]> The time came when my 1TB drives were full, having a data clearout reclaimed a bit of free space but it was time to upgrade.

The HP Microserver I am running has four HDD bays all populated with 1TB drives in RAID 1 configuration, so to increase capacity I had to replace two of the disks. I went for two Western Digital Green 2TB disks as the 1TB variants I currently had proved reliable.

Moving the data over to a new disk would be tricky, the simplest solution would be to put the old drives into a USB caddy and plug into the server, but I had previously found that USB drives don’t like RAID. But since RAID1 means redundancy, I could tackle this another way…

Step1:

Know your hard drive configuration both in Windows and physically, the disks may have been installed for years and the order you installed them may be long forgotten. The HP Microserver is a compact unit so it’s impossible to follow the SATA cables from the drive to motherboard, so an online search did the trick.

Hard Drive arrangement on a HP Microserver N54L
Hard Drive arrangement on a HP Microserver N54L

Step2:

Knowing the hard drive layout, it’s time to break the RAID mirror by removing a disk and replacing with a larger one. Open the Computer Management window (Right click My Computer and choose Manage) then click Disk Management.

Drive Management Console on Windows 2003
Drive Management Console on Windows 2003

On this system I will be upgrading the volume labelled Data, therefore either Disk 2 or Disk 3 can be pulled out, after shutting the system down of course.

Step3:

After a restart to swap the drives Windows will detect the new blank drive, so a visit to the Disk Management console will greet you with this:

HDD Convert Wizard

Follow the wizard to create a new BASIC partition, perform a quick format in NTFS, assign a drive letter, in this case I kept the label as New Volume.

Step 4:

Time to copy the data to a new drive, I prefer to use the xcopy command line as once run it does not interrupt and stop for user input such as copying system or read only files.

xcopy A: B: /s /c

Where A: represents the old data full drive, and B: the new empty one. Here the /s switch copies all sub-directories, the whole drive in the case of this command, and /c ignores errors that would interrupt the transfer.

The benefit is you can set it to run in the evening and it will copy unattended all night, great as it will take a while for a full 1TB drive.

Once completed its worth looking at the drive space to make sure it’s all transferred. At this size it may be a Gigabyte out but this is good enough.

HDD Properties

Step 5:

Shut down and remove the final remaining old drive, and replace with the other new drive. Upon starting up again the Disk Management now looks a mess:

Disk Management Mess

Not to fear, this requires a little housekeeping. Firstly remove the Missing drives that represent the drive you removed as the wont need to be represented on here anymore, right click on the missing drive’s volume and choose Delete Volume.

Then right click on the Missing drive icon and choose Delete Drive.

Repeat for the second missing volume and the old drives are no more.

Step 6:

Finally it’s time to mirror your new drives, this can be done the same as when your first mirror was set up. Right click the icon for the New Volume, choose Convert To Dynamic Disk

HDD Convert To Dynamic

Then on the Simple Volume right click then Add Mirror, in the pop up dialog select the other new disk, identified as the one with all the Unallocated Space. Allow many hours for the mirror to rebuild and everything is back to normal, with added free space.

HDD 2TB RAID

]]>
https://james-batchelor.com/index.php/2015/05/15/upgrading-raid-hard-disks/feed/ 0
Major Outage https://james-batchelor.com/index.php/2014/11/22/major-outage-2/ https://james-batchelor.com/index.php/2014/11/22/major-outage-2/#respond Sat, 22 Nov 2014 18:03:47 +0000 http://james-batchelor.com/?p=232 Continue reading "Major Outage"]]> It had to happen, after years of reliability (apart from an ISP related failure), I had my first hardware related downtime, caused by a power cut that lasted all of one second.

In the electric free event, only a few electricals switched off, my HP Microserver was one that lost power and restarted. Looking at the headless unit after boot, all lights were on, HDD light on full and the network lamp was flickering away as normal. However trying to access the server, even down to a simple ping, it was unresponsive.

Time for investigation, and it was ripped out of its kitchen cupboard home and connected to a TV along with a keyboard and mouse. From there it was painfully apparent that the RAID mirror had been corrupted and the BIOS couldn’t find the OS. The OS drive was in a RAID 1 mirror so I took out the primary master disk (first on the BIOS boot priority) and tried to boot the remaining mirror. This time it started Windows. All was back on track it seemed, waited for the other mirror holding data to re-sync then changed the boot priority in Windows (not BIOS) to use the good OS drive first. A restart to plug the un-synced HDD in and it booted fine, no SMART errors reported with the removed drive and it started to rebuild the system mirror.

Things then took an ugly turn, using the desktop would be as normal for around 90 seconds, then the system would freeze, apart from the mouse for minutes at a time, before coming back to life and displayed applications requested before the freeze. It seemed as if the system was having big problems trying to read from the disk, it would run fine simply moving the mouse around, but when selecting a program it would freeze, and depending on what you requested to load it could be up to 20 minutes. While in this state of freeze, the HDD lamp on the Microserver would be solid, so naturally it pointed to either a bad hard drive or the RAID mirror was having problems.

The HP Microserver in a state of repair
The HP Microserver in a state of repair

Not finding a solution, I admitted defeat and did a fresh install of windows, but still wanted to get the latest backup, the data mirror was easy to recover by just removing the drives as they can be imported on a new install. The OS drive was a bit trickier, the system would freeze if I tried to copy files as is. Luckily I had the old 250GB drive that came with the Microserver, it had Windows 2003 on it and ran on the system until more capacity was required, it was swapped out for a 1TB drive. Not so lucky was that the only software found to copy files from a Foreign RAID mirror cost £50, I shelled out this money as my data was more valuable than the asking fee. Along with an extra 1TB drive to hold the data while I juggle drives it ended up costing me a few quid.

All this from a 1 second power cut.

RAID 1 on a system disk:

Research says this is not a good idea. While it will run with no issues during normal operation, after an unexpected shutdown a RAID controller just can’t tell the difference between a good file and an un-synced, corrupt file, so the controller will either guess, which could restore an out of data file, or create a mismatch of current and out of date files that ultimately brings your OS to a halt.

]]>
https://james-batchelor.com/index.php/2014/11/22/major-outage-2/feed/ 0