Showing posts with label computers. Show all posts
Showing posts with label computers. 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.

Wednesday, July 18, 2012

CPU hunger or how I met Mr. Wordpress

One of my hobbies is also web page design and developement. I also like idea of open source, so I tend to use joomla as my main web page platform. But sure, there are instances, when some other solutions are more suited to users.
So, lately,  customer had need for more "blogging" approach to a web page. So, I decided to give a try to a Wordpress. Installation was super easy. Administrator section is straight forward and really "click'n play". So, I created nice theme, choose needed plugins and we were up and running in no time! Users found adding articles very easy, translation in our language was available from a start. I created nice simple tutorial for users and tought this is done deal!
Man, was I wrong.
After a few months, I got mail from hosting company that CPU usage is too high for this page and they limited CPU usage. So, we had a lot of "page non available" problems etc.
So, research started.
First thing I noticed is, that customer added a lot of galleries on a front page and it seems that plugin I chose made a mess of CPU. So, firstly I removed plugin. Actually I could not do it trough administrator console, since page was not acessible. I simply removed folder with plugin trough FTP. Wordpress is "smart" enough that it notice plugin folder missing and does not make any fuss of it. So, at least this is good. And that is also one hint for all you avid readers.
Anyway, after deletion of plugin, page was at least acessible again and CPU usage went down little bit. Next thing I learned is, that wordpress comes with absolutely no caching or any web page optimization. So I installed additional plugin which take care of optimization. And I replaced galllery plugin with another one, which seems to do fine.

So, what to write in conclusion?
On one hand it seems Wordpress could use some code optimization and they should built some sort of caching in it. But on the other hand it is extremly user friendly. Which is big +.
Use with caution.

Wednesday, November 30, 2011

Motherboard P5LP-LE in HP and Compaq

In past I was big supporter of HP products, especially computer systems. But in last year I lost my trust in their products. Firstly, my home workstation from HP started to malfunction. It was high class product - i7 920 with 1TB HDD and 8 GBs of RAM. It was really nice computer which offered a lot of bang for a buck. Unfortunatelly I write in a past tense - one day I started to get BSODs in Win7. After some further research I found that is known problem with i7 processors. A lot of users managed to solve such errors with settings of voltage for processor. But HPs motherboard did not have such options in BIOS. Also, it was just little bit out of warranty, so no luck for me. To make story short - I threw that junk into a dumpster and got myself proper components and built my machine from scratch. And I intend to do that in afuture, becouse of things like that.
Anyway, back to newest findings, that some other might benefit. P5LP-LE motherboard. I know it is old machine, but at work I have Compaq machine that has this MOBO built into. Lately I was working on some processor intensive software and I got green light to upgrade computer as much as possible. Surely, I quickly found web page with listed specifications for this M/B.
Processor upgrade information state:
Core 2 Duo E6x00
Core 2 Duo E4x00
Pentium D 9x0 Dual Core
Pentium D 8xx Dual Core
Pentium 4 6x1 series
Celeron D 3xx series

So, I simply checked on-line stores and surely quickly found http://www.blogger.com/img/blank.gifE6700 processor.
I was thrilled, since it is 3.2 GHz processor vs current E4300 1.8 GHz processor. I was eagerly waiting delivery of CPU and as soon as time ermited I built new CPU in a machine. I connected all together and ... NOTHING. Black screen, vents were spinning, thats all. Ok, I figured I should update BIOS to get support for a new CPU. After searching I found my Compaq computer on HP support page. After I choose my OS (Win XP) I did not get any BIOS upgrade to download. I remembered that computer came with preset vista OS, so I choose this one, and sure enough there was BIOS update available. I downloaded exe file and use RAR to extract its content to a folder. There was *.ROM file that is actual BIOS code and program Winflash. With Winflash I simply updated BIOS from my WinXP OS, which is not supported?
Anyway, everything went smoothly and I again built my new CPU in a machine. But still, computer was not working.
So, back to research and internet forums...
And, conclusion is - Intel made two E6700s processors. The one, that would function with P5LP-LE M/B has 4MB cach, 2,66 GHz and was introduced in 2006. It was made in 65nm technology and has code name Conroe. The one I got was introduced in 2008, is made in 45nm and has code name Wolfdale.
So, if only HP would state on its support site, that processor must be Conroe, or if Intel would employ person to think of new model names...
Well, I would not loose my precious time over nothing and you would not read this...

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!