Moving between machines of the same byte order
If the architecture of the two machines uses the same byte order, such as
Computer Architecture | Byte Order |
---|---|
SPARC/SPARC | big-endian |
Windows x86/x86, x64/x64, or x86/x64 | little-endian |
the versioned files and database can be copied directly between the machines.
This process involves stopping the server (Step 6), so choose a time that has minimal impact on your users.
Step |
Instructions |
---|---|
1. Update the license file. |
If the IP address of the new machine is different from the old machine and the Helix Server license is current, obtain a new license file to reflect the new IP address. Fill out a Change of Server Request. |
2. Install Helix Core Server on the new machine. |
Install the Helix Core Server software on the new machine. Use the same release on the new machine as on the original machine. However, we recommend that you to use the latest patch of that release from the download page for Helix Core (P4D) Server. |
3. Locate the versioned files
|
By default, depots that contain the versioned files Source files stored in the depot, including one or more revisions to each file. Also known as archive files, archives, and depot files. Versioned files typically use the naming convention 'filename,v' or '1.changelist.gz'. that the server manages are located relative to the Depots might be located elsewhere, so do the following:
|
4. Verify the versioned files.
|
Make sure that there are no missing or corrupted versioned files.
|
5. Compute missing checksums. |
To provide signatures for any files that do not already have them, on the original server, run the following command:
This allows all revisions of all files to be checked using p4 verify after the move in Step 11. |
6. Stop the server. | Run p4 admin stop to shut down the original Helix server. This will prevent access to the server while it is being relocated. |
7. Copy the versioned files to the new location.
|
Copy over the versioned files. Files and directories can be moved using rsync, tar, ftp, a network copy, or any other method that preserves the files as they were on the original server. On Unix serversRun rsync (or the equivalent). cd <Perforce original root> rsync -avz ./depot perforce@gabriel:/home/perforce Where Copy over all the versioned file directories. Note the following:
On Windows serversRun xcopy (or the equivalent): cd <Perforce original root> cd depot xcopy *.* S:\perforce /s /d /c /e /i /h /y where Note the following:
|
8. Install the new license file. | Copy the new license file into the new Helix Core Server P4ROOT in place of the old license file. |
9. Rebuild the database files.
|
Note that the original 1. On the new machine, rebuild the database ( To take a checkpoint, run the command: cd <old server P4ROOT> p4d -r P4ROOT -J D:\perforce\journal -jc where After the checkpoint operation completes successfully, copy the checkpoint file from the original server to the 2. Before restoring a checkpoint, on the new machine, erase any existing Important
Make sure that you are erasing new On UNIX, open a terminal window and restore the checkpoint using: cd <new server P4ROOT> rm db.* rm *.lbr rm -r server.locks p4d -r <new server P4ROOT> -jr checkpoint On Windows, open a command prompt and restore the checkpoint using: cd <new server P4ROOT> erase db.* erase *.lbr rmdir /s server.locks p4d -r <new server P4ROOT> -jr checkpoint 3. If you use LDAP or Active Directory, copy the ldap directory from the master to the replica. |
10. Start the new Server privately.
|
This step is optional, but recommended to prevent unwanted connections while performing work on the new server. Use For example, open a command prompt and run:
or
This will start the server listening for network connections. Be aware that the command prompt will not return. See Starting the Helix Server and Configuring the server. In a separate command prompt, check that that the most recent dates, times, and changelist numbers submitted to the original server are present on the new machine by running this command:
|
11. Verify archives on the new Server. | To ensure that all archive files were copied successfully, run Step 3 on the new Server the same way you ran Step 3 on the old Server. |
12. Check three variables
|
Check whether the If not, follow the instructions of Moving Helix Core Server Components on the Same Machine at the Perforce Support Center. |
13. Stop and restart the new Server.
|
Stop and restart the new server using the production host and port number to allow full access. 1. To stop the server, run the
2. Stop the old server. 3. Change the port number on the old server so users will not accidentally connect to the wrong server. For example, |
14. Check for any automated processes that might access the new server.
|
Check for the following to see if any need to be updated, migrated, and tested:
|
15. Notify users
|
Notify your users:
|