If you need to move the content library due to failed disk or out of space it’s a simple task with the ConfigMgr Toolkit.  There is a utility called ContentLibraryTransfer.exe which needs to be run from an administrative command prompt.

Location(your install directory may vary):

C:\Program Files (x86)\ConfigMgr 2012 Toolkit R2\ServerTools\ContentLibraryTransfer.exe

Syntax:

ContentLibraryTransfer.exe -SourceDrive <drive letter of source> -TargetDrive <drive letter of target>

Example:

ContentLibraryTransfer.exe -SourceDrive D -TargetDrive E

The reason why I’m writing this post is because the utility is very basic, one of the issues I had was it was getting stuck with not enough disk space errors when there clearly was enough space for the library.  Not really an issue if you are moving the library due to disk space issues as the new drive will be larger.  I was moving the library due to disk corruption issues.  The utility is only comparing the total drive size and not the actual size of the library, the new disk was slightly smaller than the current disk.

The workaround:

Shrink the existing volume using disk manager to be smaller than the new disk.

 

Also if you have WSUS installed, you may have to move that content store too.  Use WSUSUTIL.exe to move that content.

Location(your install directory may vary):

C:\Program Files\Update Services\Tools\WSUSUTIL.exe

Syntax:

wsusutil.exe movecontent <content path> <log file name and location>

Example:

wsusutil.exe movecontent F:\WSUS F:\WSUS\WSUS.log