The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
As you know, Linux does mount his Harddrives into Folders.
So let me describe a Scenario:
I order Server with lets say 2x500 GB Harddrives.
I use Harddrive 1 for System ( means httpd too )
I use Harddrive 2 for Backups ( with rsync, but that doesn't matter )
As you see above i have around 500gb space for Videos.
Now my videos take about 400gb and i order a THIRD drive and I mount it into /adultvideoscript/media2
My question now is: IS the current path of the videos written into the sql db ( i know it, there is an table for it....)
Is it possible to change the path of the videos without losing the existing videos? IF yes i would call that scalabilty
Easymode: Attach a HDD and have more Space. Easy as that.
Offline
Hmmm...it doesnt work this way :-(. If you would have another server it would work out of the box with the multi-server. Its more complicated because you use lighttpd for streaming, and the path for mod_secdownload can have only one target directory (a parent directory, currently its media/videos and then flv/ and mp4/ depending on the file type).
It could work this way (3 methods):
1. Create a new user on the server, mount the hard drive on the users public_html, have another lighttpd running on port 82. Add a server for multi-server in admin. New videos will be uploaded and using FTP will be moved to the new storage folder. I could modify so that copy/rename is used and not FTP, since the storage directory is ont he same server.
2. Attach new harddrive, move old videos to the new partition, mark the old videos with a path in the database. I think this would be the easiest method. In lighttpd have another domain with another secdownload path.
3. Creating a new storage space (/media from both hard drives) using LVM (i never did this before, but i could do some research).
There's no easy way at this point :-( I could try to add a database field for the videos, eg: storage or something, and keep the information for the path there, but even this way lighttpd will have problems.
PS: Still sleepy...so if the above doesnt make sense....i'll write again one i wake up completly :-)
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
I see you made your thoughts about his issue.
I had bad expirience with LVM Drives because the badest thing happened to me: I had a drive failure and the whole partition (2.5TB was LOST) on pussylove.in. I searched for a reason to start again. I found it. It was AVP i think you can help me, IF i need to add more drive space.
Offline
Offline
Not really, because the complete path has no importance because you stream with lighttpd. Lighttpd does not care about the path as it automatically detects it with secdownload. So when you decide this here's how we will do it:
1. Have the storage path in mysql (does matter if complete or not, because i can manipulate it in php).
2. Change the lighttpd secdownload configuration to take into consideration both: /media/videos and /media/videos2
3. Change the video upload/csv code to add new videos to the new storage (thumbs will still go to old storage, to have thumbs on another storage, the entire script needs to be modified, in the final version there will be a CDN method for thumbs also).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Pages: 1