Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Redirect FS-writes to Ramdisk and sync every 4 hours to HDD?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
boerns
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 164

PostPosted: Sun Jan 04, 2015 5:42 pm    Post subject: Redirect FS-writes to Ramdisk and sync every 4 hours to HDD? Reply with quote

Hi there,

after 6 years my gentoo-box need to be redone. New hardware, new installation.

I am dreaming of the following setup and would like to get tips from you how to do it:

- I will have 2 HDD and 1 SSD in the box and 32 GB ram.

- 2HDD will be a RADI1 mirror for data, home etc. SSD will be root.

Because it is my home-server, most of the time the server is in idle. I want the harddisks and SSDs be sleeping as long as possible.

----> Herefore I thing of unionfs, overlayfs or similar:

I want all data written to the server be written to an overlay-file-system to ram and synced every 4 hours to the disks, or if ramdisk is full.

Any Ideas how I can handle this best?


Greetings

Alexander Bruns
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun Jan 04, 2015 6:24 pm    Post subject: Reply with quote

Look into laptop mode, there is already a feature meant for this.
Back to top
View user's profile Send private message
boerns
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 164

PostPosted: Sun Jan 04, 2015 6:48 pm    Post subject: Reply with quote

Big smile ;-)))

That is exactly what I wanted!!!

Thank you very much!

Alex
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5762

PostPosted: Sun Jan 04, 2015 8:45 pm    Post subject: Reply with quote

laptop-mode can actually handle a 4 hour timeout like that? That's kinda neat.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum