General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Jul 24, 2017 6:51 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Feb 03, 2017 2:41 pm 
Offline

Joined: Fri Feb 03, 2017 2:11 pm
Posts: 2
Is there a way to use an SSD (on USB) for read/write caching upon the disks? The purpose is to let the disks power off and chill when lightly used like seeding or listening to music from it, etc.

I've read about bcache and lvmcache but I can't find either of them in ffp repos and no clue how to compile and install them.
What I really would like to tell which folder to cache and install it next to an already loaded disk cluster. As I've read they are block level caches, not file but I still hope there's a way to do this.

Any ideas?


Top
 Profile  
 
PostPosted: Mon Feb 06, 2017 9:00 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Theoretically it should be possible, but not using FFP. A NSA3xx doesn't have LVM. (A NAS5xx does, but that's another forum), so you should use bcache. Using bcache you have to assemble a virtual filesystem containing your data partition and your SSD, and mount that. If you wait until FFP is started, the data partition is already mounted, and you can't unmount it because it's busy.

Using an usb_key_func.sh stick you can patch some firmware scripts before the firmware assembles and mounts the raid array. You can intercept the mount command, and let it assemble the virtual filesystem and mount it, when the firmware tries to mount the raid array.
Maybe intercepting 'mount' won't work. It didn't work on an NSA320, and you didn 't tell which box you have.


Top
 Profile  
 
PostPosted: Mon Feb 06, 2017 3:38 pm 
Offline

Joined: Fri Feb 03, 2017 2:11 pm
Posts: 2
Well, thanks for confirming that there's a chance! (you know the scene from Dumb and dumber. I feel like that know :) )
My device is the NSA325 btw.
I'll start experimenting based on your conception when I have some spare time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 56 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group