Author Topic: Migrating cache only instance  (Read 1875 times)

kbsiva

  • Guest
Migrating cache only instance
« on: March 26, 2014, 08:45:25 AM »
Hello Folks,
  We have one test instance not much data but the storage is cache only. We have to stand up a clone of that instance in another name. I have copied the cache file system and the schema with all the ars tables have been cloned as well. However when I try to pull up a document it is giving me an error ondemand is not able to determine the link for the file. Any thoughts on this? I would like to know what would be the best way to do this . Thanks,

Siva

kbsiva

  • Guest
Re: Migrating cache only instance
« Reply #1 on: March 26, 2014, 01:49:35 PM »
This one is resolved. So basically in the cache directory  under the retr folder, it had links that referred to the old instance name . So in the cache directory I copied the old instance and then I create a symbolic link under the new instance name pointing to old one. Not sure if this is the best way but it works for now.

ls -l

lrwxrwxrwx    1 root     system            4 Mar 26 new_instance ->/old_instance


Thanks,
Siva


Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Migrating cache only instance
« Reply #2 on: March 27, 2014, 02:17:10 AM »
Hi Siva.

The links that CMOD creates in the cache are 'absolute' links -- they start at the root directory ("/") and 'absolutely' identify a file on the system.

You'll need to go into the retr directories and change the links to point to the files under the new structure.  You'll want to try and write a script for this, since typing all those commands would be tedious.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR