Hard disk failure

All installation and configuration problems and questions

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

Hard disk failure

Postby ftan » Fri Sep 03, 2021 1:16 pm

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.
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby GenXOutsourcing » Fri Sep 03, 2021 2:57 pm

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/
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: Hard disk failure

Postby ftan » Fri Sep 03, 2021 7:16 pm

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.
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby ambiorixg12 » Fri Sep 03, 2021 7:43 pm

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
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Hard disk failure

Postby ftan » Fri Sep 03, 2021 7:51 pm

Do i just copy the files from /var/lib/mysql then paste them on the new server?
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby ambiorixg12 » Sat Sep 04, 2021 7:44 am

You need to locate the frm files, and from there start your journey

https://stackoverflow.com/questions/109 ... -frm-files


Regardless 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.
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Hard disk failure

Postby ftan » Tue Sep 07, 2021 12:56 am

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?
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby GenXOutsourcing » Tue Sep 07, 2021 8:49 am

did you update the SVN?

how about update the database to the schema that matches the SVN?
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: Hard disk failure

Postby ftan » Thu Sep 09, 2021 12:28 pm

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.
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby carpenox » Thu Sep 09, 2021 3:08 pm

Did you change the server ip with ADMIN_update_server.pl and does your carrier have the new ip address as allowed?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2420
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Hard disk failure

Postby ambiorixg12 » Thu Sep 09, 2021 3:17 pm

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
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Hard disk failure

Postby ftan » Fri Sep 10, 2021 12:00 am

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
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby ftan » Mon Sep 13, 2021 6:51 am

should i also copy the contents of /etc/asterisk to the new server?
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby carpenox » Mon Sep 13, 2021 1:11 pm

If you use the ADMIN_backup.pl script it does all that for you, but yes copy your conf files
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2420
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Hard disk failure

Postby ftan » Mon Sep 13, 2021 9:41 pm

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?
ftan
 
Posts: 19
Joined: Fri Aug 27, 2021 10:14 am

Re: Hard disk failure

Postby carpenox » Tue Sep 14, 2021 8:18 am

/etc/asterisk - crontab - /var/spool/asterisk/monitorDONE - /srv/www/htdocs
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2420
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 112 guests