Author Topic: Looking to turn an old PC into a home server, advice welcome  (Read 4554 times)

0 Members and 1 Guest are viewing this topic.

Offline MicrodoserTopic starter

  • Frequent Contributor
  • **
  • Posts: 423
  • Country: gb
Looking to turn an old PC into a home server, advice welcome
« on: October 10, 2023, 03:58:25 pm »
I have a couple of old PCs and I would like to turn one of them into a home server, possibly to store video footage for editing. I'm thinking of getting a 2.5Gb network card for it, and a switch that has 4x2.5Gb ports and 2x10Gb ports, which should hopefully provide a little future proofing.

What I would like advice on, is what sort of filesystem (ideally free) is best to run on the server for maximum data security and performance? (I have a bunch of older spinning drives that in combination could easily max out a 2.5Gb network port) would I be better getting a CPU with more cores, even though it has a lower clock speed? (I've seen you can get an old Xeon with 16 cores/32 threads for £15 and a MB for £50) or would the current I5 4570 be enough? How much RAM would I need to avoid RAM being a bottleneck? (currently it has 16GB) Also, if I connect one port at 2.5Gb, will it operate at that speed even if 1Gb connections are made on other ports? (not so important, could just get 2.5Gb cards for the other machines)

We will be using a maximum of 2 remote computers to access the server, although it is possible that down the line, they would both want to edit video from it (not intensive stuff, getting the speed of a spinning hdd would be fine). Trying to keep costs down as much as possible, this is just a side project.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 17582
  • Country: lv
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #1 on: October 10, 2023, 04:07:38 pm »
Not the smartest thing to do. By using old junk you'd pay more in electricity that saving on buying new low power hardware or off the shelf NAS.
 

Offline MicrodoserTopic starter

  • Frequent Contributor
  • **
  • Posts: 423
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #2 on: October 10, 2023, 05:58:54 pm »
Not the smartest thing to do. By using old junk you'd pay more in electricity that saving on buying new low power hardware or off the shelf NAS.

Electricity and basic hardware I got. I don't have upfront costs for new low power hardware or a NAS.
 

Online themadhippy

  • Super Contributor
  • ***
  • Posts: 2968
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #3 on: October 10, 2023, 06:06:34 pm »
Quote
. I don't have upfront costs for new low power hardware or a NAS.
Cheapskate "nas" option,usb drive case plugged into the usb port on your modem (if its got one) 
 
The following users thanked this post: Microdoser

Offline wraper

  • Supporter
  • ****
  • Posts: 17582
  • Country: lv
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #4 on: October 10, 2023, 06:17:20 pm »
Not the smartest thing to do. By using old junk you'd pay more in electricity that saving on buying new low power hardware or off the shelf NAS.

Electricity and basic hardware I got. I don't have upfront costs for new low power hardware or a NAS.
You'd likely break even in a year or less. If it's just a file server, you do not need expensive HW. I just googled UK residential electricity price being 34p/kWh. If you say buy HW with 20W lower power consumption and running 24/7, then it would be £175175kWh/£59.5 difference in electricity bill annually.
« Last Edit: October 10, 2023, 09:45:08 pm by wraper »
 

Offline Bicurico

  • Super Contributor
  • ***
  • Posts: 1765
  • Country: pt
    • VMA's Satellite Blog
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #5 on: October 10, 2023, 06:57:20 pm »
I tried It all: old PC as file server, cheap NAS, ..., Synology NAS in Rack Format.

At the end, my conclusion was to just fit all hard disks into my (new) main computer and let it run 24/7. Much more convenient, comes with all the protocols I need, Serviio turns it into the ideal media server for smart TV and alikes.

And it is cheaper than having yet another device running in parallel.

Offline MicrodoserTopic starter

  • Frequent Contributor
  • **
  • Posts: 423
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #6 on: October 10, 2023, 07:38:07 pm »
Not the smartest thing to do. By using old junk you'd pay more in electricity that saving on buying new low power hardware or off the shelf NAS.

Electricity and basic hardware I got. I don't have upfront costs for new low power hardware or a NAS.
You'd likely break even in a year or less. If it's just a file server, you do not need expensive HW. I just googled UK residential electricity price being 34p/kWh. If you say buy HW with 20W lower power consumption and running 24/7, then it would be £175 difference in electricity bill annually.

I'll try again. I don't pay for electricity, so I would be down whatever the upfront costs are.
 

Offline MicrodoserTopic starter

  • Frequent Contributor
  • **
  • Posts: 423
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #7 on: October 10, 2023, 07:38:42 pm »
Quote
. I don't have upfront costs for new low power hardware or a NAS.
Cheapskate "nas" option,usb drive case plugged into the usb port on your modem (if its got one)

Unfortunately no
 

Offline MicrodoserTopic starter

  • Frequent Contributor
  • **
  • Posts: 423
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #8 on: October 10, 2023, 07:53:32 pm »
OK, I can see this thread suffering the standard 'geekspread' and losing focus in discussions about things that aren't relevant, like rack systems, AC, power consumption and so on. Start a different thread if you want to talk about that, please.

I already have a case, motherboard, CPU, 16GB DDR4, 256GB SSD, many spinning hard drives. The downside is it only has a 1Gb ethernet connection and I5 4570. I don't pay for electricity, our solar easily covers far more than we use even in winter. We have a hefty house battery system that can nearly last us a week, so no worries for non-sunny days.

I'm wanting to get a server together so that we are not dependent on either of our main computers being active for either of us to access a shared pool of data. We'd both like to minimise the desk space for our main computers and have a box sat somewhere else that takes care of looking after the drives, reporting problems, maybe running some light network based QOL apps.

I'd like to saturate a 2.5Gb connection, and I have enough spinning drives to do that. I know seek times will be terrible, but I have a few SSD drives, so I could set up nearly a terabyte of cache. I know there are many filesystems and setups that can be used, ZFS, TrueNAS, and so on. Do any of these benefit from more than 4 cores? Are there benefits to using one over another? Are any of them free?

 

Offline abeyer

  • Frequent Contributor
  • **
  • Posts: 370
  • Country: us
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #9 on: October 10, 2023, 08:04:15 pm »
I know there are many filesystems and setups that can be used, ZFS, TrueNAS, and so on

AFAIK TrueNAS is just a layer of tools on top of the opensource implementation of ZFS, not a different filesystem.
 
The following users thanked this post: Microdoser

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6854
  • Country: fi
    • My home page and email address
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #10 on: October 10, 2023, 08:24:14 pm »
I already have a case, motherboard, CPU, 16GB DDR4, 256GB SSD, many spinning hard drives. The downside is it only has a 1Gb ethernet connection and I5 4570. I don't pay for electricity, our solar easily covers far more than we use even in winter. [...] I'd like to saturate a 2.5Gb connection, and I have enough spinning drives to do that. I know seek times will be terrible, but I have a few SSD drives, so I could set up nearly a terabyte of cache. I know there are many filesystems and setups that can be used, ZFS, TrueNAS, and so on. Do any of these benefit from more than 4 cores? Are there benefits to using one over another? Are any of them free?
You have ample resources for a NAS right there when using anything other than Windows.  I take it do-it-yourself Linux is out of the question?

In general, you don't need much CPU at all to stuff a 2.5G ethernet as full as it can be (typically limited by packets-per-second, and not actual bandwidth, by your hardware) given enough storage bandwidth (for example, using software RAID 0 or 1 on a bunch of spinny-rust drives).  Just add a 2.5G PCIe ethernet card (say, TP-LINK TX201), or even trunk the connection if your switch supports trunked connections (combining more than one Ethernet cable into one effective connection), install a suitable Linux distribution, configure it, and then maintain it.  If you pick a NAS-oriented Linux distribution, like TrueNAS core, the distribution can help you with the three last steps.

You could also go the BSD route, just verify the network interface card(s) you use are supported.

The only thing that you'd need to pay for above is for the added ethernet card, if you do add one.
 
The following users thanked this post: Ed.Kloonk, Microdoser

Offline Shonky

  • Frequent Contributor
  • **
  • Posts: 298
  • Country: au
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #11 on: October 10, 2023, 08:57:42 pm »
Not the smartest thing to do. By using old junk you'd pay more in electricity that saving on buying new low power hardware or off the shelf NAS.

Electricity and basic hardware I got. I don't have upfront costs for new low power hardware or a NAS.
You'd likely break even in a year or less. If it's just a file server, you do not need expensive HW. I just googled UK residential electricity price being 34p/kWh. If you say buy HW with 20W lower power consumption and running 24/7, then it would be £175 difference in electricity bill annually.
Concept is correct. Maths is wrong

0.02kW x 24 x 365 x 0.34 GBP/kWh = 59.57 GBP

Remember thought that generated power is not exactly "free" if you have feed in tariffs. If your electricity provider pays you for generated energy fed back to the grid you would get less payback so effectively it costs you money.

I5-4570 is perfectly capable of NAS type functions mentioned. It should be able to saturate 2.5Gbps assuming the disk hardware is capable. A single spinning disk particularly older ones would not be able to read / write at that kind of speed.
« Last Edit: October 10, 2023, 09:03:28 pm by Shonky »
 

Offline wraper

  • Supporter
  • ****
  • Posts: 17582
  • Country: lv
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #12 on: October 10, 2023, 09:45:47 pm »
Concept is correct. Maths is wrong

0.02kW x 24 x 365 x 0.34 GBP/kWh = 59.57 GBP
I calculated exactly like this but apparently somehow did not multiply by 0.34 at the end, so it turned out plain kWh, not the price. Anyway when comparing running old 16 core xeon, and modern NAS the difference in consumption will be way more than 20W.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5920
  • Country: au
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #13 on: October 10, 2023, 11:50:02 pm »
TrueNAS.

Free, powerful, and the pools use ZFS which is far superior to traditional RAID setups. It's probably not suitable for beginners, but if you have a reasonable amount of knowledge on networking, configuring disks, setting ACLs etc... you'll be fine.



Tom Lawrence does some excellent videos showing you many aspects of TrueNAS.
 
The following users thanked this post: Microdoser

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15300
  • Country: fr
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #14 on: October 11, 2023, 01:05:47 am »
Concept is correct. Maths is wrong

0.02kW x 24 x 365 x 0.34 GBP/kWh = 59.57 GBP
I calculated exactly like this but apparently somehow did not multiply by 0.34 at the end, so it turned out plain kWh, not the price. Anyway when comparing running old 16 core xeon, and modern NAS the difference in consumption will be way more than 20W.

No kidding, you'll never get a 20W power draw with an old Xeon-based system, not even in idle, even in the OP's wildest dreams. It'll be more like 100W to 150W just idling. Now the cost per year is not exactly the same indeed.
 

Offline darkspr1te

  • Frequent Contributor
  • **
  • Posts: 353
  • Country: zm
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #15 on: October 11, 2023, 06:55:36 am »
As many have mentioned there is TrueNAS & FreeNAS linux based file servers but I would not recommend as entry setups though, I know many a youtuber sings the praise of them but when they go wrong and trust me they will do on older h/w due to some quirks of that software, it's a little unforgiving and can kick drives out for some silly reasons leading you down a data recovery nightmare rabbit hole.
If it's the learning you want and a solid start will "less frustration" then a LAMPS server will give you all round tools to start building and adding to your home server, very easy to setup shares , backups, home web pages, home media servers, VM's for other systems too like automation servers, personal vpns, solar tracking systems.


There are some "out of the box" server OS's out there too like Zentyal which was centos LAMP server with web page for app/user/tool management , I started with these but due to what ever reason packages would break I found myself more at command line fixing things so I fell away from a lot of web managed servers for my minor setups.
Another option is something like Proxmox which you can host multiple Virtual PC's on and setup and play with what ever server you want. it has in app house keeping tools for mirror and backup which are easy to understand
As you may have guessed , running any server system be it new or old at some point will need repair/fixing so you might as well learn on the cheapest h/w and learn how they are made , what makes em tick, whats different between what you build and say what QNAP sell as one stop solution for home/small business.


When you decide to upgrade major H/w you will find you already have the tools and knowledge to transfer to your shiny new power house should you wish,


OS wise I would try and stick to debian/arch based systems first , while some of the other OS's do offer some powerful features like ZFS they also can go bang real easy , I cannot remember which BSD based setup it was , but a command to save a drive used  P for recovery and little p for "drop the drive forever" , you can imagine the pain that caused to new players made worse by the OS's designer's questionable choice of terminal font and screen resolution and no scrollback. Anyway my point is that there has been a lot of work done on those mentioned distro's to assist new users and support some of the more Elderly hardware


Anyway, thats my 2 cents in the Home server side.




darkspr1te

 
The following users thanked this post: Microdoser

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3574
  • Country: fr
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #16 on: October 11, 2023, 07:54:02 am »
rasbery pi, or arduino

tiny size/power

Use only SSDs

j
Jean-Paul  the Internet Dinosaur
 

Offline AndyBeez

  • Frequent Contributor
  • **
  • Posts: 856
  • Country: nu
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #17 on: October 11, 2023, 09:54:58 am »
Free electricity? Cool: As well as running FreeNAS, you might want to consider pooled crypto mining too? Antpool, Binance, BTC.com... etc. No billing, no loss.

Just replace the HDD with a SSD, max the RAM, max the CPU and replace your OS with a Linux distribution.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 9390
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #18 on: October 11, 2023, 10:17:18 am »
Not the smartest thing to do. By using old junk you'd pay more in electricity that saving on buying new low power hardware or off the shelf NAS.

Electricity and basic hardware I got. I don't have upfront costs for new low power hardware or a NAS.
You'd likely break even in a year or less. If it's just a file server, you do not need expensive HW. I just googled UK residential electricity price being 34p/kWh. If you say buy HW with 20W lower power consumption and running 24/7, then it would be £175175kWh/£59.5 difference in electricity bill annually.
PC idle consumption has been all over the place over the last 2 decades. However. most generations of medium performance Intel CPU based PCs idle at something like 10W-12W with a couple of big low power hard disks. How are you going to save 20W from that, unless your family keeps the server busy and high consuming for most of the day? Using Intel's own motherboards really helps idle consumption. Using things like WD Green disks saves a lot over using, say, WD Black drives. Old modest performance PCs can work well repurposed as a family server. PCs which were build for high performance probably have a horrible idle consumption you wouldn't like with current electricity prices.
 

Offline Bicurico

  • Super Contributor
  • ***
  • Posts: 1765
  • Country: pt
    • VMA's Satellite Blog
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #19 on: October 11, 2023, 02:58:58 pm »
OP explained he wants to use his existing hardware and that power consumption is not an issue.

Moving on, my contribution is to vote for TrueNAS, formerly known as FreeNAS. I used this myself in the past (FreeNAS) and it had all required functionality, including feeding TV's with multimedia files.

The only issue I had back then was that USB drives would never get the signal to enter sleep mode. This was an issue for me, not due to increased power consumption, but obviously the reduction in life expectancy of a drive which has the motor spinning at 7200 rpm 24/7.

I hope that this is fixed by now.

The other option would be to just use Windows 10/11 and share the drive. I liked this option over FreeNAS, because a PC running 24/7 is a great gateway and server for much more than just a file server.
 
The following users thanked this post: Microdoser

Offline wraper

  • Supporter
  • ****
  • Posts: 17582
  • Country: lv
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #20 on: October 11, 2023, 03:22:56 pm »
PC idle consumption has been all over the place over the last 2 decades. However. most generations of medium performance Intel CPU based PCs idle at something like 10W-12W with a couple of big low power hard disks. How are you going to save 20W from that, unless your family keeps the server busy and high consuming for most of the day? Using Intel's own motherboards really helps idle consumption. Using things like WD Green disks saves a lot over using, say, WD Black drives. Old modest performance PCs can work well repurposed as a family server. PCs which were build for high performance probably have a horrible idle consumption you wouldn't like with current electricity prices.
Your power consumption numbers make no sense for older and most of newer desktop systems. I could believe for CPU alone, but not the whole system. Here some real numbers from 2011 with no GPU. https://www.legitreviews.com/intel-core-i3-2120-3-3ghz-sandy-bridge-processor-review_1650/16

« Last Edit: October 11, 2023, 03:33:10 pm by wraper »
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5133
  • Country: bt
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #21 on: October 11, 2023, 04:02:44 pm »
My notebook (I've been writing this post on) is almost identical setup as the OP's one (I5 dualcore_max2.5GHz/16GB_ram/500GB_SSD/GPU_on_I5) and it pulls ~13-18W displ on, ~9-11W displ off (watching the meter now).
Add up say 4 HDDs, 2.5Gb netw card and the switch and you are at ~50-55W while writing the post.. :)
« Last Edit: October 11, 2023, 04:15:29 pm by iMo »
Readers discretion is advised..
 

Offline darkspr1te

  • Frequent Contributor
  • **
  • Posts: 353
  • Country: zm
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #22 on: October 11, 2023, 04:18:43 pm »


Quote from: Bicurico on Today at 04:58:58 pm
OP explained he wants to use his existing hardware and that power consumption is not an issue.

Moving on, my contribution is to vote for TrueNAS, formerly known as FreeNAS. I used this myself in the past (FreeNAS) and it had all required functionality, including feeding TV's with multimedia files.

The only issue I had back then was that USB drives would never get the signal to enter sleep mode. This was an issue for me, not due to increased power consumption, but obviously the reduction in life expectancy of a drive which has the motor spinning at 7200 rpm 24/7.

I hope that this is fixed by now.

The other option would be to just use Windows 10/11 and share the drive. I liked this option over FreeNAS, because a PC running 24/7 is a great gateway and server for much more than just a file server.


I had this same issues, along with many others i wont go into, most were a noob's understanding issue of terminology between devices/systems/hardware support/software support etc
it's kinda why i didnt push it first over maybe a blank ubuntu and apt install samba and edit one file and make a folder  , later maybe add a cron rsync to another drive , I mean you gonna hit that command line at some point ?

  Dont get me wrong, i dont dislike them , i have some licensed sites as part of my company, i just think that not having to think around the many layers that can be setup from the freenas/truenas/nas4free that could create a simple JBOD to a encrypted raid with 0 pool addition ability (at this time you could not add USB to a ZFS array) and end up in failure mode of no additional disk's or ability to expand the pool.

Dont ask me how i know this.

I also did think about the windows option to suggest then i remembered that the last two times i installed windows was 11 then 10, win 11 i was a 1 and 30 mins in with questions and updates that changed my install on the fly despite my "fixed and minimal windows iso"  so i gave up and went back to 10 from usb-iso and in 30 mins i was playing games again. not saying that windows 11 is filled with telematics and undefined options but it's download size make my african 4Mbp/s connection quiver



darkspr1te
« Last Edit: October 11, 2023, 04:21:46 pm by darkspr1te »
 

Offline wraper

  • Supporter
  • ****
  • Posts: 17582
  • Country: lv
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #23 on: October 11, 2023, 04:26:35 pm »
My notebook (I've been writing this post on) is almost identical setup as the OP's one (I5 dualcore_max2.5GHz/16GB_ram/500GB_SSD/GPU_on_I5) and it pulls ~13-18W displ on, ~9-11W displ off (watching the meter now).
Add up say 4 HDDs, 2.5Gb netw card and the switch and you are at ~50-55W while writing the post.. :)
Laptop power consumption is not relevant to the desktop. Not to say it's not similar at all. Half number of the cores and much lower frequency.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 9390
  • Country: gb
Re: Looking to turn an old PC into a home server, advice welcome
« Reply #24 on: October 11, 2023, 05:01:07 pm »
PC idle consumption has been all over the place over the last 2 decades. However. most generations of medium performance Intel CPU based PCs idle at something like 10W-12W with a couple of big low power hard disks. How are you going to save 20W from that, unless your family keeps the server busy and high consuming for most of the day? Using Intel's own motherboards really helps idle consumption. Using things like WD Green disks saves a lot over using, say, WD Black drives. Old modest performance PCs can work well repurposed as a family server. PCs which were build for high performance probably have a horrible idle consumption you wouldn't like with current electricity prices.
Your power consumption numbers make no sense for older and most of newer desktop systems. I could believe for CPU alone, but not the whole system. Here some real numbers from 2011 with no GPU. https://www.legitreviews.com/intel-core-i3-2120-3-3ghz-sandy-bridge-processor-review_1650/16

I happen to have a Sandy bridge i3 box here. I just checked its consumption from the wall. I'm not sure which speed grade CPU it has, but its on an Intel mATX board. There are 2 WD Green 2TB drives in the box. There is 16GB of RAM, although that probably makes little difference. It has an Antec ECO bronze PSU. Its idling at 15W-16W, bouncing around a little.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf