[p4] Moving a depot

Arthur van Dongen Arthur.van.Dongen at TSolve.com
Tue May 23 07:59:42 PDT 2006


Hi List,

 

Few years ago we created a depot as a subdirectory of the P4ROOT
directory. Now we want to separate the archive and the database so they
exist on separate filesystems. One of the reasons is that we use Amanda
for backup and the archive + database + checkpoints do not fit on a
tape.

 

The server is running on Linux, so I imagine we could do the following:

- Stop the p4d daemon

- Move the depot to a different partition

- Create a symbolic link in the original location so the p4d process
sees the files on the original path

- Start the pd process

- Modify the depot configuration so the p4d process accesses the files
directly instead of through the created symbolic link

- Remove the symbolic link

 

Without the link the p4d process would run without the archive being
available on the expected path. And the depot cannot be reconfigured on
a stopped server.

 

What is the preferred way to do this? Any comments are welcome.

 

Regards,

Arthur van Dongen



More information about the perforce-user mailing list