Relocating Blob Stores

The steps below allow you to move blob stores, with all data intact. In addition to moving the blob store directory ('sample', in the examples below), you are required to change a blob store definition in the OrientDB config database so that it points to a different location.

Linux and MacOS

  1. Shut down your repository manager from the terminal.
  2. Back up your data directory.
  3. Move the specified blob store directory to its new location, e.g. mv /sonatype-work/nexus3/blobs/sample /new/blobstore/location.
  4. Access the OrientDB console application to update the configuration database:
    • Go the repository manager installation directory, e.g. cd /opt/nexus.
    • Run java -jar nexus/lib/support/nexus-orient-console.jar.
  5. Enter these commands (replace ${karaf.data} with location of data directory):
    • connect plocal:${karaf.data}/db/config admin admin
    • update repository_blobstore set attributes.file.path='/new/blobstore/location' where name='sample'
    • disconnect
    • exit
  6. Start up the repository manager.
  7. Log into the repository manager with your username and password.
  8. Click 'sample', from the Blob Stores screen in the Administration menu to view the new location of the blob store you configured in the OrientDB console (i.e. /new/blobstore/location).

Windows

  1. Shut down your repository manager from the command prompt, e.g. nexus.exe /run.
  2. Back up your data directory
  3. Move the specified blob store from the path to new location, e.g. move C:\sonatype-work\nexus3\blobs\sample \new\blobstore\location
  4. Access the OrientDB console application to update the configuration database:
    • Go the repository manager installation directory, e.g. cd \opt\sonatype.
    • java -jar nexus\lib\support\nexus-orient-console.jar.
  5. Enter these commands (replace ${karaf.data} with location of data directory):
    • connect plocal:${karaf.data}\db\config admin admin
    • update repository_blobstore set attributes.file.path='\new\blobstore\location' where name='sample'
    • disconnect
    • exit
  6. Start up the repository manager.
  7. Log into the repository manager with your username and password.
  8. Click 'sample', from the Blob Stores screen in the Administration menu to view the new location of the blob store you configured in the OrientDB console (i.e. \new\blobstore\location).
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk