LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   DIY NAS + database: boot off USB and spin down hdd? (https://www.linuxquestions.org/questions/linux-server-73/diy-nas-database-boot-off-usb-and-spin-down-hdd-4175448265/)

Frakk 02-01-2013 07:58 PM

DIY NAS + database: boot off USB and spin down hdd?
 
Hi,

I am about to build a little NAS, not really for streaming media but for sharing files, recieving backups and running a couple of database engines (Postgre and eventually MySql).

It will be very common that the NAS spends 2 or 3 days without being accessed so I was wondering if I could do someting to avoid having the hdd spinning at all time.

First I thought about system hibernation but I guess it can be troublesome having the DB engines there, so I am thinking about booting the OS off a USB pendrive (*) and storing my user data and DBs in a separate hard drive.

Then I remebered that in the past I had tried to make my hard drive spind down when idle and the OS just kept spining it on, eventually after some googling it was apparent that spining down the root fs was not possible or at least not realistic.

Has anyone tried and succeded at such configuration? (USB, Databases, spindown)

anyone has some insights to share?

(*) As I am not in the USA reasonable CF cards are rather expensive for the space they provide and SSD are almost prohibitively expensive, so a decent USB pendrive would be a better option.

Thanks in advance!
Frakk

MS3FGX 02-05-2013 08:35 PM

I came in this topic to suggest you use a CF card in a SATA/IDE adapter...but then you said you don't want to do that.

I'm sure the USB flash drive would work, but it's hardly ideal. Most are very slow, and they are certainly not intended for long-term usage. There is a very good reason that CF is more expensive.

Frakk 02-06-2013 09:53 AM

hi MS3FGX,

thanks for your reply.

I recongnise that i am trying to keep the cost as low as possible, but if it really makes a big difference I might bite te bullet and go for a CF card. Then again, from time to time I use full blown distros from USB pendrives and I can tolerate their performance.

I guess I should look into theirs current prices...

I vaguely remember that there were some recommended types for this and others that were too slow or to fragile?

Can you give me a hint?


Thanks in advance.

TenTenths 02-06-2013 11:15 AM

Depending on the amount of data you wish to store this could be an ideal project for a Raspberry PI with a suitable sized SSD card. Would be totally silent in operation and low power consumption.

Just something to think about.

Frakk 02-11-2013 08:46 AM

I just looked into the current costs of SSDs and CFs... CF is kinda expensive for the amount of space they offer I could stretch to a 8 GB but runing at X266, which doesn't look like a great performer really, but then I need the adapter and the combo raises the total cost about %50

SSD are simply too expensive here for their capacity. In my case that money would *way* better spent in a 1 TB hdd.


@TenTenths

I had considered that kind of hardware but decided that I need something more mainstream so I won´t have to dedicate so much time to set up the functions I want.


All times are GMT -5. The time now is 02:01 PM.