SSD plus Hard Disk

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

SSD plus Hard Disk

Postby rrb555 » Tue Jan 21, 2014 1:52 pm

Hi,

Does anyone here has a setup of SSD plus Hard Disk for Archiving purposes.

I want to build a new single server using SSD but since it has very limited space I would like to use hard disk for archiving purposes.

I know I would need to add the hard disk as /home partition but what I do not know is how will i transfer the recordings and can still use different Public IP Address from time to time
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: SSD plus Hard Disk

Postby williamconley » Sat Feb 01, 2014 6:31 pm

Vicibox has the ability to set up an archive server as one of the roles of any server. I believe your version may have been complex for this, but still possible. That being said: All an archive server Really Is ... is FTP. So: set up an FTP user whose home folder is inside /home somewhere ... and your archive system will be able to send recordings there.

This folder should also be served on the web (as an alias) in a different URL location (preferably with a different domain name) than the original recordings (note URL location has nothing to do with physical location!). This allows you at any time in the future to move this data drive to another machine (and move that DNS entry with it) without any changes to the running system (even the links in the DB will still work if you do it right!).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: SSD plus Hard Disk

Postby Noah » Tue Feb 04, 2014 5:14 pm

We have executed archiving in a couple different ways.

Just mount the drive space in linux if it's a local drive and set a cron to move recordings or whatever you would like to store to it.
I suspect that's the largest bit of data you would like to archive.

You could take one of the existing cron's and manipulate it to copy instead of delete.
Couple Examples:

Option 1
Cron Modification
24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/MP3 -maxdepth 1 -type f -mtime +7 -print | xargs cp /mounted_drive.
Then run the original delete script 20 mins after the copy.
44 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/MP3 -maxdepth 2 -type f -mtime +1 -print | xargs rm -f

Option 2

or if the drive is a NAS (Network attached storage device about $100) you could mount the drive using your /ect/fstab mount file
//x.x.x.x/share/ /a_local_drive/directory cifs username=if you need one,password=xxxxxx,_netdev 0 0

Option 3
The really nice thing about NAS devices, is many of them come with builtin FTP servers. Then you could use the built in archive stuff in VICI.
I believe the Archive script would also change the location of the file in the db.

Let us know if you need a hand. - Noah
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 86 guests