Showing posts with label RAID. Show all posts
Showing posts with label RAID. Show all posts

Monday, November 26, 2012

DIY simple NAS on budget

Please note, that this is not intended as detailed plan how to do NAS.  But you might find useful idea or two when reading my rant.

    


OK, I admit - it happened to me also. WD Passport which was used as external drive, started to die. Seems it was slow and painful death, since at first it became terribily slow and it took ages for it to be available in operating system. For all, that are not familiar with WD Passport, it is external HDD that connects to computer trough USB. Thing was just out of warranty. After I opened it, there was WD green 1TB HDD in there. I hoped that controller could be used with another hard drive, but it seems that is not so simple for my specific model. I am not completely certain why, since I did not have much time to investigate this further. But I suspect, that there is "special" partition on HDD that make possible to use controller with HDD. So new HDD without this partition won't work with USB controller.
Anyway, as soon as problems were evident, I connected this drive to computer running Fedora operating system and right away OS informed me that S.M.A.R.T. status of device looks bad. Microsoft: why don't you add this functionality in a Windows operating system? I think it would save user or two a lot of time.
Anyway, what is done is done. Next step was copying everything from faulty HDD to another one in order to save data. It took about 3 weeks of day to day copying to save few 100 GB of data, but in the end, everything important is saved! YES!

OK, since this was sort of lesson to me, I decided to get myself NAS to use it as backup for important data. After further price checking and check of computer parts "inventory" at home I decided to built NAS by myself. And that is also good opportunity to defend my collecting of old computer parts at home! ;-)
Also, since data safety is most important I went for mirroring of 2 drives in my NAS.


So, what I had at home?

  • 2GBs of RAM
  • Athlon 64 X2 5000+
  • mini ITX motherboard IEI Kino-690AM2
What I needed?
  • Hard drives
  • system drive
  • power supply
  • chassis
After little investigation I decided to go with WD RED HDDs, which were developed especially for NAS and RAID.
For system I have chosen 4GB USB thumb drive.
Power supply I have chosen FLEX ATX from Seasonic - model SS-250SU.
So, once I had all hardware, I started to think about chassis. Since this was budget project I wanted to spend as little as possible. So in the end I decided to built extremely simple chassis by myself.


Top view - you can see part of HDD cage here
I  used 3mm sandwich panel, known also as  aluminium composite plate. This was lying around and material is very easy to work with and it is strong enough for what I used it for. I simpy cut two panels and screwed motherboard and power supply on one panel. For HDDs I took HDD cage from old computer chassis I had lying around. I had to cut it little bit, but in the end it does its job very good. Both panels are joined together with long screws and I made spacers from alu tube.





Connections view - you can see tiny USB drive

I admit that my computer parts are not most power saving and definitely I would chose passively cooled motherboard if I would buy components. But since this is primarily meant as backup storage it does not run all the time. I just turn it on when I need it. Because it is capable of WOL, I can put it in remote location in apartment and as long as there is network connection and power, it will work. So it is not silent and it its power consumption is not greatest. On the other hand it was cheapest solution for me, since I had few components at hand already and I was able to built chassis for peanuts. Good news is also, that motherboard has dual Gb LAN ports, so if I upgrade home network, everything will work faster.
Regarding NAS software, I used FreeNAS. It is quiet easy to set up, even for first time user, as myself. Interesting thing was, that altough I set RAID in BIOS, FreeNAS found 2 hard drives and I had to set both drives as Mirror in FreeNAS settings. I also had some minor problems with user rights, but managed to solve them quickly.
So far I am happy with my solution and hope it will work longer and more reliably as WD passport HDD.



Spacer can be also used as handle to carry NAS.

Friday, February 22, 2008

Setting Raid on HP Pavilion a6115 Desktop PC win XP


Recently friend of mine purchased computer HP Pavilion a6115. This was his enter into dual core processing world, since his last machine was quiet old. He also decided to use 2 500 GB HDD in RAID 1 array.



He got nice and shiny hp box. He soon realized, that Vista OS is just not what he hoped for, so he opted for more familiar and faster Windows XP System. It turned out, that HP does not support XP out of the box, so we had to do it other way. Even Motherboard mentioned as Asus P5LP-LE was not found on Asus web page.
So few trials and errors were needed to sucessfully set RAID and install Win XP.
Well let's start from beginning...

Strangely, but that's how things work even today, for setting windows on RAID array you should use Floppy with dedicated drivers.
Pavilion does not have such drive, which is not surprising... Second thing as mentioned before, XP drivers are not directly available from HP support pages.

But, after going trough computer specification: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01080268&lc=en&cc=us&dlc=en&product=3463943, it is clear that you need to use Intel drivers for Onboard RAID controller: ICH7-DH - 945G chipset. In order to install win xp to RAID array, you have to get 32-bit Floppy Configuration Utility for Intel® Matrix Storage Manager. Download available here This program from Intel creates floppy with drivers to install during win xp installation (F6 option). But since there is no floppy available, I will show you little trick...
First of all you need software that will emulate floppy drive: http://chitchat.at.infoseek.co.jp/vmware/vfd.html#download
After running and setting this program, you should see Floppy drive icon in Windows XP under My Computer.
When "floppy drive" is available, run Intel floppy configuration utility. It will automatically create all files etc.
After this is done, next step is to add these drivers into installation CD for WIn XP. (Remember, we don't have Floppy drive nor Floppy available :-)
One of the easiest ways to add drivers to installation disc is to use program nLite. http://www.nliteos.com/
This is very powerful tool to manage WinXP installation cd - you can add various data, remove unnecessary software etc.
To proceed, Win XP installation disc is needed. Please check http://www.nliteos.com/ for detailed information how to integrate drivers into installation. When finished, you must create new Bootable ISO image and burn it on blank CD-R.
You can now install windows XP on Pavillion a6115 with RAID enabled.

All software used is freely available from WWW, except Win XP.

Good luck!