I’m trying to figure out an easy way to recover from a complete failed server. If I have two servers which are the same in every way is it possible to image one (bit for bit copy of a hard-drive) and drop the image on the replacement? I understand I would need to tie an IP to the NIC as the MAC address would have changed. Would this break the modules I licensed?
I’ve been using Clonezilla and Pendrivelinux (Universal USB Installer - Easy as 1 2 3). The PenDriveLinux will take the Clonezilla ISO and place it on a thumb drive. I place the thumb drive in the server boot, connect my external USB HD and snag the image. Crazy easy. Not so easy is the commercial keys…my poison pills that kills my solution.
My commiserations, mondoarchive will do it while you are online and every Friday if you want and restore precisely even on a VM, if you change the network hardware, then you will either need to spoof the mac address (trivial in linux or in a VM) or re-register your deployment if you accepted commercial modules.
Yes, you can, and you don’t even need to worry about the MAC - just remove the MAC line from /etc/sysconfig/network-scripts/ifcfg-eth0 and delete the file /etc/udev/rules.d/70-persistent-net.rules and everything will be back up and working. (Obviously, this is RHEL/CentOS/FreePBX Distro, but it’s very similar on all the rest of them).
However, you’re over-engineering this, by a long way. Go to the backup module. Enable ‘backup to S3’. Set it so it backs up every day.
After a few days, and you’ve checked the the backups are being sent to S3, set the machine on fire, then shoot it, then throw it off a cliff, then run over it with a tank, and then dump it into the ocean somewhere.
Now, go and find another machine somewhere, download the latest ISO that matches your FreePBX version (hopefully, 13), install, and then restore the backup you downloaded from S3.
Your phones are now back up and working, with only the downtime of you disposing of your previous server in an environmentally sensitive manner, like above.
The only issue I have with the warm spare is the wiki seems to be incomplete to create a “warm spare”. As written it would break all my IVR’s as the custom voice prompts will be lost as it only calls out - “Full Backup” and “Exclude Backup Settings”.
Will MondoArchive work with the default raid setup that the Distro uses? I have tried clonezilla in the past and it doesn’t always work so hot. Typically breaks the raid.