Long time since I been here.
Reason is probably that server has functioned well.
That is until a few weeks ago, when my old P4 10.04 LTS server died.
I suspect a recent power outage is to blame where the power came on and off several times, unfortunately this was in my absence.
Anyway a few days after, the server shut down by itself, and will not come on again.
Well I had for some time planned an upgrade anyway, so instead of trying to revive it, I decided to build a new one.
I'm hoping I can save the some of the content of the disks though, not that any critical is there, but it would be a big hassle to recreate it.
Current setup was a 5 mixed IDE/SATA disk setup, where 2 of them was in a software raid 0, (Yea I know, not safe).
Anyway, my new server that is partially built, and partially in the post, will have a whole lot more space and power.
I need some advice on disk setup, and also some thoughts on UPS.
MB: Asus P8H77I Mini ITX.
CPU: Intel Core i7 3770
System disk: Samsung 128GB SSD
Data Disks: 5x3TB WD RED
The server will do a few different tasks, Backup for other computers in the house, HTPC back-end, Virtualization, Video Surveillance server, Low traffic Web server. Well you get the idea, big mix.
So I need a good disk setup.
I was first thinking about Raid-5, but read that with very big disks this is not a good idea due to re-sync time.
Then I was thinking about going ZFS, but sounds complicated.
Now i'm wondering if I should just go a two disk Raid 1, and a three disk Raid 0.
Or two disk Raid 1, with a spare and a two disk Raid 0
To balance reliability and performance.
Unfortunately I was not able to order them from different batch, so 4 disks are from the same date, and the fifth is a week newer than the rest.
I will probably try later to get some more disks, and replace them in the server so I get a better spread.
One thing that is required is data disks should be encrypted.
My second question is on UPS.
I have little experience in this area, and would like some advice on what to get.
I was thinking to get a UPS rated at about 500W and 8-10 minutes at full load.
My calculations are that the server will use about 100W on Idle, and up to perhaps 300W on medium load, these are pure guestimates.
My question is:
Is it possible to detect that the server is on battery instead of mains, and then execute some scipts, to turn of non critical services, and basically go to low power mode.
For example, spin down disks, switch of cpu intensive tasks, etc.
And when the battery level is low, perform a graceful shutdown.
If power comes back then it would go back to normal mode.
Is this possible, and what hardware (UPS) would you advice?