Page 1 of 1
Hard disk failure
Posted:
Fri Sep 03, 2021 1:16 pm
by ftan
Hello,
We have a linux server running vicidial. The hard disk recently failed and we do not have a backup of the system.
When we put the hard disk on another pc we can still access some files.
What files/directories should i copy so I can get the configuration of Vicidial and just load it on another server.
Thanks.
Re: Hard disk failure
Posted:
Fri Sep 03, 2021 2:57 pm
by GenXOutsourcing
The main thing that you will need is the database. Depending on how you installed it, and which OS was used, the file should be in /var/lib/mysql
Also, if you are trying to recover the recordings, they are in /var/spool/asterisk/monitorDONE/
Re: Hard disk failure
Posted:
Fri Sep 03, 2021 7:16 pm
by ftan
Hi,
It seems goautodial3 was used but everything was done in vicidial.
I don't need recordings just the configs so i can get the box running again.
Do i need files under /etc/asterisk?
Do i just copy everything in the /var/lib/mysql directory?
Thanks.
Re: Hard disk failure
Posted:
Fri Sep 03, 2021 7:43 pm
by ambiorixg12
Most of the VICI configuration is done and save it on a MySQL db called Asterisk, related to /etc/asterisk if you have custom context on the dial plan you should backup the extensions.conf file it and it is worth to take also sip configuration from sip.conf and sip-vicidial.conf just in case you dont know how to set up the carrier
Re: Hard disk failure
Posted:
Fri Sep 03, 2021 7:51 pm
by ftan
Do i just copy the files from /var/lib/mysql then paste them on the new server?
Re: Hard disk failure
Posted:
Sat Sep 04, 2021 7:44 am
by ambiorixg12
You need to locate the frm files, and from there start your journey
https://stackoverflow.com/questions/109 ... -frm-filesRegardless of the storage engine you choose, every MySQL table you create is represented on disk by a .frm file that describes the table's format (that is, the table definition). The file bears the same name as the table, with an .frm extension. The .frm format is the same on all platforms, but in the description of the .frm format that follows, the examples come from tables created under the Linux operating system.
Re: Hard disk failure
Posted:
Tue Sep 07, 2021 12:56 am
by ftan
i was able to get the contents of the \var\lib\mysql directory.
What i did was i just copied all the contents in that folder to the new server.
when i login to vicidial the carriers and did are there. But it seems the agents inound groups and campaigns are not.
Any idea what i missed?
Re: Hard disk failure
Posted:
Tue Sep 07, 2021 8:49 am
by GenXOutsourcing
did you update the SVN?
how about update the database to the schema that matches the SVN?
Re: Hard disk failure
Posted:
Thu Sep 09, 2021 12:28 pm
by ftan
update:
I copied all the contents of /var/lib/mysql and pasted it in the same location of the new server. It seems everything loaded. The DID, campaigns, and others are all there. Even the agents and the passwords
We tried taking an inbound call but it did not work. We have not made any changes to configration so i'm not sure.
Did i miss copying something over? Any idea on how i should trouble shoot this.
Re: Hard disk failure
Posted:
Thu Sep 09, 2021 3:08 pm
by carpenox
Did you change the server ip with ADMIN_update_server.pl and does your carrier have the new ip address as allowed?
Re: Hard disk failure
Posted:
Thu Sep 09, 2021 3:17 pm
by ambiorixg12
We tried taking an inbound call but it did not work. We have not made any changes to configration so i'm not sure.
How is the inbound calls setup on your carrier with the dialer
1) SIP URI : carrier send call to a FIXED IP.
2 )Registration : Your dialer register as SIP client to your carrier
Re: Hard disk failure
Posted:
Fri Sep 10, 2021 12:00 am
by ftan
Yes, We updated the IP.
Our carrier is currently currently setup to connect by IAX to another PBX. Our connection is trunkinbound.
[Carrier}
disallow=all
allow=gsm
allow=ulaw
type=friend
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
nat=yes
host=IP of remote server
allow=alaw
Re: Hard disk failure
Posted:
Mon Sep 13, 2021 6:51 am
by ftan
should i also copy the contents of /etc/asterisk to the new server?
Re: Hard disk failure
Posted:
Mon Sep 13, 2021 1:11 pm
by carpenox
If you use the ADMIN_backup.pl script it does all that for you, but yes copy your conf files
Re: Hard disk failure
Posted:
Mon Sep 13, 2021 9:41 pm
by ftan
I was not able to use the script since the hard disk was broken.
I am doing a copy and paste from the old disk to the new disk.
Any other folders files/dir you can think of that i need to copy to get this all working?
Re: Hard disk failure
Posted:
Tue Sep 14, 2021 8:18 am
by carpenox
/etc/asterisk - crontab - /var/spool/asterisk/monitorDONE - /srv/www/htdocs