Page 1 of 1

SSD plus Hard Disk

PostPosted: Tue Jan 21, 2014 1:52 pm
by rrb555
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

Re: SSD plus Hard Disk

PostPosted: Sat Feb 01, 2014 6:31 pm
by williamconley
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!).

Re: SSD plus Hard Disk

PostPosted: Tue Feb 04, 2014 5:14 pm
by Noah
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