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 [8] 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 [9] (including embedded database [10]) from one place to another?
Initial machine:
XEN Virtual machine
SLES10SP1 32bit
2GB RAM [11]
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 [12] certificate, SSL private key [13], 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 [14]
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 [16] 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... [21]
Novell documentation:
Restoring a ZENworks serverhttp://www.novell.com/documentation/zcm10/zcm10_sy... [22]
Backing up the embedded Sybase databasehttp://www.novell.com/documentation/zcm10/zcm10_sy... [23]
Restoring the embedded Sybase databasehttp://www.novell.com/documentation/zcm10/zcm10_sy... [23]
Links:
[1] http://www.novell.com/communities/user/5159
[2] http://www.novell.com/communities/blog/5159
[3] http://www.novell.com/communities/taxonomy/term/3737
[4] http://www.novell.com/communities/taxonomy/term/26
[5] http://www.novell.com/communities/taxonomy/term/146
[6] http://www.novell.com/communities/taxonomy/term/30
[7] http://www.novell.com/communities/site-tags
[8] http://www.novell.com/communities/zh-hans/glossary/term/2314
[9] http://www.novell.com/communities/zh-hans/glossary/term/2078
[10] http://www.novell.com/communities/zh-hans/glossary/term/540
[11] http://www.novell.com/communities/zh-hans/glossary/term/2169
[12] http://www.novell.com/communities/zh-hans/glossary/term/2378
[13] http://www.novell.com/communities/zh-hans/glossary/term/2113
[14] http://www.novell.com/documentation/zcm10/zcm10_system_admin/index.html?page=/documentation/zcm10/zcm10_system_admin/data/bam65st.html
[15] http://www.novell.com/communities/zh-hans/glossary/term/933
[16] http://www.novell.com/communities/zh-hans/glossary/term/1879
[17] http://www.novell.com/communities/zh-hans/glossary/term/766
[18] http://www.novell.com/communities/zh-hans/glossary/term/1292
[19] http://www.novell.com/communities/zh-hans/glossary/term/1586
[20] http://www.novell.com/support/php/search.do?cmd=displayKC&docType=kc&externalId=7000913&sliceId=1&docTypeID=DT_TID_1_1&dialogID=14706463&stateId=0%200%204537835
[21] http://forums.novell.com/novell-product-support-forums/zenworks/configuration-management/zcm-server-install/352328-server-backup-restore.html
[22] http://www.novell.com/documentation/zcm10/zcm10_system_admin/index.html?page=/documentation/zcm10/zcm10_system_admin/data/bookinfo.html
[23] http://www.novell.com/documentation/zcm10/zcm10_system_admin/index.html?page=/documentation/zcm10/zcm10_system_admin/data/bb2j9ml.html#bb2j9ml
0