Application Delivery Management
Application Modernization & Connectivity
IT Operations Management
CyberRes
We are moving from ZENworks 7 to ZCM very shortly, and unfortunately for us what we used as our test environment for ZCM very quickly became the server we wanted to use (all the content was as we wanted it), except the hardware wasn’t! Short of re-converting all our applications again (a rather large and uninviting task), how do you move a primary server (including embedded database) from one place to another?
Initial machine:
XEN Virtual machine
SLES10SP1 32bit
2GB RAM
ZCM 10.1.1 using the embedded Sybase database
Production machine:
XEN virtual machine
SLES10SP1 64bit
4GB RAM
ZCM 10.1.1 using the embedded Sybase database
So we had re-built all our applications, policies, etc on our test box – how do we move that all to the new server?
First step – backup everything required on the current machine:
We used an external certificate authority, so it was just a matter of copying/FTP’ing the three certificates (SSL certificate, SSL private key, and root CA key) off the test system. If you used an internal certificate authority have a look at ZENworks Server and Certificate Authority Backup and Restore documentation: http://www.novell.com/documentation/zcm10/zcm10_system_admin/index.html?page=/documentation/zcm10/zcm10_system_admin/data/bam65st.html
To manually create a backup of the database, at a command prompt:
Copy/FTP them somewhere safe!
At a command prompt (as root):
Zman zenserver-backup /root/zcm_backups/zone_backup.bak
Copy/FTP that file somewhere as well.
There are many ways to do this, I used NFS to put the data in an intermediate location, ready to be copied back to the new server –
Edited /etc/exports (on the test ZCM server) and added this line:
/data (rw,no_root_squash)
Started the NFS server:
rcnfsserver start
Then on the intermediate machine:
Mkdir /mnt/nfs
Mount :/data /mnt/nfs
Cp –R /mnt/nfs/content-repo /tmp/content-repo
That should be all you need – you should now have (somewhere other than your ZCM server)
The next step is to build the new server, install ZCM, and then import all the above data onto our new machine.
Mkdir /var/certs
And FTP’ed the files into that directory.
Mkdir /mnt/iso
Mount –o loop ZCM_10.1.0.iso
Cd /mnt/iso
./setup.sh –e
Although I’m not sure if it’s required, I used the same zone name as my previous install.
Copy/FTP the zone backup made above to /root/zcm_backups, then:
Zman zenserver-restore /root/zcm_backups/zone_backup.bak
When prompted, enter a ZENworks administrator username and password.
When prompted, enter the passphrase you entered when creating the backup.
Copy/FTP the database backup you created earlier to /root/zcm_backups/dbBackup, then:
Change to /opt/novell/zenworks/bin, and enter the following command:
./ZenworksLinuxDBRestore.sh –F "/root/zcm_backup/dbBackup/zenworks_zone_name.db"
Up to you how you do this, with NFS or from another backup.
You should now have a working ZENworks server again!
Pages of interest:
Server backup and restore forum discussion:
http://forums.novell.com/novell-product-support-fo...
Novell documentation:
Restoring a ZENworks server
http://www.novell.com/documentation/zcm10/zcm10_sy...
Backing up the embedded Sybase database
http://www.novell.com/documentation/zcm10/zcm10_sy...
Restoring the embedded Sybase database
http://www.novell.com/documentation/zcm10/zcm10_sy...