Elastix cloning

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0
#1
When we clone a Hard disk with an Elastix v1.5.2-2.3 installation (using say Acronis) and restore the image on a different sized Hard disk on a totally different machine, we find that most of Elastix works except the PBX configuration page.

How and where do we change all three SSH keys?

Any reason why we get a blank page after logging in at
Code:
https://elastix-ip-address/
and proceeding to the PBX link -
Code:
https://elastix-ip-address/?menu=pbxadmin
or
Code:
https://elastix-ip-address/?menu=pbxconfig
?

The
Code:
https://elastix-ip-address/?menu=tools
and other PBX pages work fine though!
 

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0
#2
The following critical files were missing in the clone:
Code:
/usr/share/pear/DB.php
/usr/share/pear/DB/* (all except the sqlite3 were missing)
/usr/share/pear/.registry/db.reg
/usr/share/pear/.pkgxml/DB.xml
The folder path and file names are case sensitive.

Other irrelevant missing files were from:
Code:
/usr/share/pear/test/*
The following command was executed in the clone:
Code:
yum install php-pear
Then the missing files were restored and yum update performed.
It now works fine!
 

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0
#5
As for changing the SSH keys, the instructions at ProxMox PiaF locks us out of SSH and SFTP and are hence at best incomplete for Elastix.

Solution: A fresh install of Elastix is done on the target machine on a new hard disk and the contents of the folder /etc/ssh/ are copied from it to the cloned hard disk.

It works now!

A possible fresh install in VMWare or KVM may have sufficed as well to extract a new set of SSH keys.
 

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0
#6
REF: 1 & 2
The recent yum update caused CentOS 5.4 to uninstall the php-pear and all its addons and the new pear was installed with only sqlite3 for pear/DB.
Hence the need to do the following:
Code:
pear channel-update pear.php.net
pear upgrade-all
pear upgrade --force http://pear.php.net/get/Archive_Tar http://pear.php.net/get/XML_Parser http://pear.php.net/get/Console_Getopt 
pear install db
pear install Auth_SASL Date File
pear install HTTP_Request
pear install Log MDB2 MDB2_Driver_mysql
pear install Mail Mail_Mime Net_SMTP Net_Sieve
It should result in (bold entries came in automatically):
[root@elastix ~]# pear list

Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.3 stable
Auth_SASL 1.0.3 stable
Console_Getopt 1.2.3 stable
DB 1.7.13 stable
Date 1.4.7 stable
File 1.3.0 stable
HTTP_Request 1.4.4 stable
Log 1.11.5 stable
MDB2 2.4.1 stable
MDB2_Driver_mysql 1.4.1 stable
Mail 1.1.14 stable
Mail_Mime 1.5.2 stable
Mail_mimeDecode 1.5.0 stable
Net_SMTP 1.3.3 stable
Net_Sieve 1.1.7 stable
Net_Socket 1.0.9 stable
Net_URL 1.0.15 stable
PEAR 1.9.0 stable
Structures_Graph 1.0.3 stable
XML_Parser 1.3.2 stable
XML_RPC 1.5.2 stable
XML_Util 1.2.1 stable
 

itjumper

Joined
Jul 22, 2008
Messages
81
Likes
0
Points
0
#7
why would files be missing if the HD was cloned ?? Shouldn't it be exactly the same as the original?
 

apmuthu

Joined
Aug 1, 2009
Messages
60
Likes
0
Points
0
#8
I too was baffled at seeing some files missing. It is possibly because I overwrote the following files:
Code:
/etc/fstab 
/etc/mtab 
/etc/ssh/*
from a fresh install on the target machine into the cloned version on the target machine
- OR -
possibly I ran a
Code:
yum update
on the cloned version on the target machine soon thereafter and had the php-pear on CentOS 5.4 uninstall the earlier version before installing a skeletal new version of itself.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,900
Messages
130,884
Members
17,561
Latest member
marouen
Top