Move 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 from the old machine (original machine) to the new machine (target machine).
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 Core 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 old 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 old server, run the following command:
This allows all revisions of all files to be verified by using p4 verify after the move in Step 11. |
6. Stop the server. | Run p4 admin stop to shut down the old Helix Core Server. This will prevent access to the server while it is being relocated. |
7. Copy the versioned files to the new machine.
|
Copy over the versioned files from the old machine to the directory on the new machine. 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 old server. On Unix serversRun rsync (or the equivalent). cd old-server-P4ROOT 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 old-server-P4ROOT cd depot xcopy *.* S:\perforce /s /d /c /e /i /h /y where It is possible to copy most of the files earlier, then update the versioned files later using the |
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.
|
Do not remove any files from the old server until you are confident that the new server is in a good state. 1. On the old machine, take a checkpoint A backup copy of the underlying metadata at a particular moment in time. A checkpoint can recreate db.user, db.protect, and other db.* files. See also metadata.. The checkpoint creates a checkpoint file, To take a checkpoint, run this command on the old machine: cd old-server-P4ROOT p4d -r old-server-P4ROOT -J D:\perforce\journal -jc where After the checkpoint operation completes successfully, copy the checkpoint file from the old server to the 2. Before restoring a checkpoint, on the new machine, erase any existing Make sure that you are erasing 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 Start the Helix Core Server and Configure the server. In a separate command prompt, check that that the most recent dates, times, and changelist numbers submitted to the old server are present on the new machine by running this command:
|
11. Verify versioned files on the new server. | To ensure that all archive files A special depot into which versioned files (also known as archive files) can be transferred. were copied successfully, verify the versioned files on the new server that same way that you did on the old server. See Step 4. Verify the versioned files. |
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:
|