Brian,
I'm also on 10.2 M020 in a virtual environment. I have a .bat file that manually stops the services on the test system, copies the files from production, then runs the rehosting utility. It pauses prior to the rehost step to give me time to export and re-import the database. I do all of this with the production system online and I do not use a second staging area.
The projects.properties file contains just this one line:
clone.prod=InfoEngine,Database,Apache,IEAdapter,WVSAgent
Here are the steps I use:
Production Database Server
- Backup Windchill database to disk (SQL script)
Test Database Server
- Copy database backup file from production server
- Restore Database
- Fix Windchill user account
USE windchill
GO
sp_change_users_login @Action='Report'
GO
EXEC sp_change_users_login 'Auto_Fix', 'windchill'
GO
- Delete the entry from RMISTUBS table in the database. See CS150162.
delete from windchill.RMIStubs where RMIStubs.Name ='CacheMaster'
Test Application Server
Scripted Steps
- Stop Windchill Services
- Copy Application Data
- Copy File Vault
- Replace WVS Agent.ini File (single CAD worker for test environment)
- Customize GUI for DEV (differnt color background, header message, etc.)
- Clear Tomcat Cache
- Delete Windchill Log Files
- Delete Apache Log Files
- Delete Directory Server Log Files
- Start Windchill DS
- Run Rehost Utility
Manually Steps
- Stop WindchillDS
- Clear Tomcat Cache
- Update Trusted Hosts (for different CAD worker)
- Start Windchill Services
- Manually remove the remote file server
- Clear out the visualization queues
- Delete extra publisher queues
windchill wt.queue.QueueManager