You are not logged in.
Hi all,
I have approximately 40,000 files (documents, photos, videos and audio) and need to share them on my local network. I have tried nfs and samba but I am having serious delays from connecting to displaying the files.
Do you have any ideas about the best way to serve these file and be able to browse these files?
I am thinking about putting them on an intranet server, with gallery pages for image/photos.
Do you think this is a good idea?
TOH wants 'instant access to the photos'.
Any ideas or comments would be greatly appreciated.
Diesel1.
Registered GNU/Linux user #140607.
Offline
Offline
I have approximately 40,000 files (documents, photos, videos and audio) and need to share them on my local network.
That shouldn't be a problem... I have over 120,000 files on one server shared.
As falconindy mentioned, they're not all in one directory are they? ![]()
Last edited by fukawi2 (2010-07-22 01:50:24)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
40K files in one directory, sounds like a real nightmare.... Reorganization is almost mandatory in such a case.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
#!/bin/bash
find . -maxdepth 1 -type f | while read file; do
upper_name=`basename "$file" | tr '[:lower:]' '[:upper:]'`
new_path="`dirname "$file"`/${upper_name:0:1}"
mkdir -p "$new_path"
mv "$file" "$new_path"
doneOffline
#!/bin/bash find . -maxdepth 1 -type f | while read file; do upper_name=`basename "$file" | tr '[:lower:]' '[:upper:]'` new_path="`dirname "$file"`/${upper_name:0:1}" mkdir -p "$new_path" mv "$file" "$new_path" done
Brilliant ![]()
Deej
Offline
Or....
#!/bin/bash
find . -maxdepth 1 -type f | while read file; do
ext=`echo ${file#*.} | tr '[:lower:]' '[:upper:]'`
new_path="`dirname "$file"`/${ext}"
mkdir -p "$new_path"
mv "$file" "$new_path"
done![]()
Last edited by fukawi2 (2010-07-22 06:25:10)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Or....
#!/bin/bash find . -maxdepth 1 -type f | while read file; do ext=`echo ${file#*.} | tr '[:lower:]' '[:upper:]'` new_path="`dirname "$file"`/${ext}" mkdir -p "$new_path" mv "$file" "$new_path" done
Ah, dare I say - even better !
To save others the studying / testing, this script creates folders named after the file and puts the file within it's own folder, whilst Wintervenoms' creates folders based on
the first character of the file and puts all files beginning with that character within.
I smell a contest looming...
Deej
Last edited by deej (2010-07-22 07:04:42)
Offline
> I am thinking about putting them on an intranet server, with gallery pages for image/photos.
How many people are expected to access it - avg & tops?
Offline
Hi all,
The most files in a single directory is approximately 500 and definitely not more than 1000.
The maximum number of users at any one time would be 2or 3 but usually just the wife.
Should I use a CMS or just point apache at the files, or should I try again with nfs or samba?
Diesel1.
Registered GNU/Linux user #140607.
Offline
How ofter would the files change:, the dir structure / filenames, how many GB / per day new data?
I'm _really_ not into networking but Apache sounds a bit heavyweight - aren't there any simple fileservers?
Offline
What about simple anonymous FTP server with access restricted only to local network?
Offline
What about simple anonymous FTP server with access restricted only to local network?
Does it support thumbnails of photos / videos?
Offline
ProgDan wrote:What about simple anonymous FTP server with access restricted only to local network?
Does it support thumbnails of photos / videos?
That depends on the client. By default, FTP does not provide any feature like that. But for example Dolphin is capable of creating and displaying thumbnails for FTP images: it downloads the file, creates thumbnail and displays it (maybe it's not Dolphin's feature but KIO's feature). I'm not 100% sure, but I think that it even stores the thumbs in local cache.
EDIT: videos are not supported I think, it would be quite silly to download hundreds of MB of video just to cut off a simple frame and then throw it all away ![]()
Last edited by ProgDan (2010-07-22 10:10:51)
Offline
Hi all,
The files do not change very often but some editing and copying does take place.
Sometimes I add a few MB and sometimes I might add 20-30GB but that would usually be 10-15 videos.
Diesel1.
Registered GNU/Linux user #140607.
Offline
> TOH wants 'instant access to the photos'.
How big is your photo collection?
Videos are huge, but maybe every user can have his / her own copy locally?
Offline
what about sshfs?
Offline
> TOH wants 'instant access to the photos'.
How big is your photo collection?Videos are huge, but maybe every user can have his / her own copy locally?
The collection is photos and videos in folders by category and date, there are 20,000 files taking 200GB.
I would rather not duplicate the collection (other than for backups).
Diesel1.
Registered GNU/Linux user #140607.
Offline
Would it be possible to duplicate just the photos?
Offline
Would it be possible to duplicate just the photos?
I really do not want to duplicate any files. I have the original content and if any user wishes to edit/modify photos they copy them locally. I don't want multiple versions of files on multiple systems.
Diesel1.
Registered GNU/Linux user #140607.
Offline
It might be worth looking at the bottlenecks, hard drive speed, network card, filesystem, etc. as 500 files in a folder shouldn't be too slow, I'd have thought. ![]()
I have some image folders on my server with approaching that many and there's no obvious delay using samba (for me or for the missus's xp netbook). I put them all up on flickr too (additional bonus of off-site back-up), which used to be her access to them, but the local access is far quicker - as you'd expect.
There is a pause sometimes in downloading a 5+mb image (or multiple) when moving/viewing/editing etc. but that's probably wireless speeds as much as anything as with moving at least there's 10+mb being shifted.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
It might be worth looking at the bottlenecks, hard drive speed, network card, filesystem, etc. as 500 files in a folder shouldn't be too slow, I'd have thought.
I have some image folders on my server with approaching that many and there's no obvious delay using samba (for me or for the missus's xp netbook). I put them all up on flickr too (additional bonus of off-site back-up), which used to be her access to them, but the local access is far quicker - as you'd expect.
There is a pause sometimes in downloading a 5+mb image (or multiple) when moving/viewing/editing etc. but that's probably wireless speeds as much as anything as with moving at least there's 10+mb being shifted.
Hey, nice to hear from another Yorkshire Arch user!
I used to have no problems with nfs and samba but in the last year things seem to be so slow as to be unusable. I think you are probably right about wireless speeds and also I have been using lots of cpu time with folding clients on the file sharing system. also my photo files are now 5-7MB (Canon 500D camera) where before they were around 1-2MB. Maybe I should set up a dedicated nfs/samba file server.
Diesel1.
Registered GNU/Linux user #140607.
Offline
> I have been using lots of cpu time with folding clients on the file sharing system. also my photo files are now 5-7MB (Canon 500D camera)
I think I can help you with the latter problem: send me the camera and go back to the 1-2 MB files :-)
Offline
> I have been using lots of cpu time with folding clients on the file sharing system. also my photo files are now 5-7MB (Canon 500D camera)
I think I can help you with the latter problem: send me the camera and go back to the 1-2 MB files :-)
That sounds like a really good idea, send me your full contact details and I will forward it to you without delay! ![]()
Last edited by diesel1 (2010-07-22 21:16:58)
Registered GNU/Linux user #140607.
Offline
Hey, nice to hear from another Yorkshire Arch user!
I hope we're not the only two. ![]()
Maybe I should set up a dedicated nfs/samba file server.
Yes, I should have said that mine is dedicated - it's a (not especially old) laptop with a fried video card. I wired it to the router, so only the client sides are wireless. Any flickr uploading is initiated via ssh from the server, and at some point within the rest of my lifetime I'll probably set-up an abs and/or pacman cache etc. etc. on it.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline